Minor changes

This commit is contained in:
Giulio 2020-07-19 16:22:28 +02:00
parent 0d69b630f8
commit 3dd9967f47

View File

@ -15,6 +15,7 @@
flag1="cc{prima_flag}" flag1="cc{prima_flag}"
flag2="cc{seconda_flag}" flag2="cc{seconda_flag}"
flag3="cc{terza_flag}" flag3="cc{terza_flag}"
password=`hexdump -n 32 -e '4/4 "%08X"' /dev/urandom`
echo "[+] Starting build script..." echo "[+] Starting build script..."
mkdir -p target/overlay/var/www/html 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/ chmod -R 600 target/overlay/root/.ssh/
echo "[+] Generating the root password" echo "[+] Generating the root password"
password=`hexdump -n 32 -e '4/4 "%08X"' /dev/urandom`
hash=`mkpasswd $password` hash=`mkpasswd $password`
echo $password > target/keys/rootpassword echo $password > target/keys/rootpassword