diff --git a/build.sh b/build.sh index 12489ce..e3289ae 100755 --- a/build.sh +++ b/build.sh @@ -15,6 +15,7 @@ flag1="cc{prima_flag}" flag2="cc{seconda_flag}" flag3="cc{terza_flag}" +password=`hexdump -n 32 -e '4/4 "%08X"' /dev/urandom` echo "[+] Starting build script..." mkdir -p target/overlay/var/www/html @@ -53,7 +54,6 @@ cp target/keys/sshkey target/overlay/root/.ssh/authorized_keys chmod -R 600 target/overlay/root/.ssh/ echo "[+] Generating the root password" -password=`hexdump -n 32 -e '4/4 "%08X"' /dev/urandom` hash=`mkpasswd $password` echo $password > target/keys/rootpassword