basic script WIP

This commit is contained in:
abrown38 committed 2025-01-22 14:06:12 +00:00
1 parent 09f28bfa46
commit baeb9af985
1 file changed
+14
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
declare -g PASSWORD=""
declare -gr WORDLIST="/usr/share/dict/words-custom"
END=4
for ((i=1;i<=END;i++)); do
LINE=$(($RANDOM + 1))
WORD=$(sed $LINE!d $WORDLIST)
PASSWORD+="${WORD}-"
done
PASSWORD+=$RANDOM
printf "$PASSWORD"