mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 20:37:21 +00:00
14 lines
250 B
Bash
14 lines
250 B
Bash
#!/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" |