mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 12:47:21 +00:00
basic script WIP
This commit is contained in:
1 parent
09f28bfa46
commit
baeb9af985
1 file changed
+14
@@ -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"
|
||||
Reference in new issue
Block a user