11 lines
196 B
Bash
Executable File
11 lines
196 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PlainTextPW=$(pwgen 16 1)
|
|
|
|
echo $PlainTextPW > Password.txt &&
|
|
htpasswd -nb admin "$PlainTextPW" | sed -e 's/\$/\$\$/g' > HashTextPW.txt
|
|
|
|
echo "PW is: $PlainTextPW"
|
|
cat HashTextPW.txt
|
|
|