mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-17 13:53:51 +02:00
edit dir
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
if [[ -f $(which uuencode 2>/dev/null) ]]
|
||||
then
|
||||
GEN_PW_SSH=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
GEN_PW_SSH_KEY=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-128
|
||||
done)
|
||||
GEN_PW_FTP=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
GEN_PW_MYSQL=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
GEN_PW_MAIL=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
echo "SSH-Password: $GEN_PW_SSH"
|
||||
echo "SSH-KEY-Password: $GEN_PW_SSH_KEY"
|
||||
echo "FTP User Password: $GEN_PW_FTP"
|
||||
echo "MYSQL User Password: $GEN_PW_MYSQL"
|
||||
echo "e-Mail User Password: $GEN_PW_MAIL"
|
||||
else
|
||||
GEN_PW_SSH=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
GEN_PW_SSH_KEY=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-128
|
||||
done)
|
||||
GEN_PW_FTP=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
GEN_PW_MYSQL=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
GEN_PW_MAIL=$(for ((n=0;n<1;n++))
|
||||
do dd if=/dev/urandom count=1 2> /dev/null | uuencode -m - | sed -ne 2p | cut -c-32
|
||||
done)
|
||||
apt update && apt install sharutils
|
||||
echo "SSH-Password: $GEN_PW_SSH"
|
||||
echo "SSH-KEY-Password: $GEN_PW_SSH_KEY"
|
||||
echo "FTP User Password: $GEN_PW_FTP"
|
||||
echo "MYSQL User Password: $GEN_PW_MYSQL"
|
||||
echo "e-Mail User Password: $GEN_PW_MAIL"
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user