From 52dd876c2e07e318bba95cbba47ed48bbe7b8f0d Mon Sep 17 00:00:00 2001 From: Giulio Date: Sun, 19 Jul 2020 16:57:02 +0200 Subject: [PATCH] Fixed flag in webpanel --- build.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 0745c8e..32a2e9a 100755 --- a/build.sh +++ b/build.sh @@ -23,6 +23,13 @@ mkdir -p target/overlay/var/www/html echo "[+] Cloning buildroot" git clone https://github.com/buildroot/buildroot.git target/buildroot +echo "[+] Adding customization files" +cp -R buildroot/* target/buildroot # copy buildroot configs +sed -i "s/###ROOTPASSWORD###/$password/g" target/buildroot/configs/pcengines_apu2_defconfig +cp -R conf/* target/overlay # copy target system config files +cp -R webpanel/* target/overlay/var/www/html # copy the webpanel +cp -R update/update.sh target/overlay #copy the update script and certificate + echo "[+] Writing flags" sed -i "s/##FLAG1##/$flag1/g" target/overlay/var/www/html/include/config.php echo $flag2 > target/overlay/flag @@ -32,13 +39,6 @@ chmod 700 target/overlay/root echo $flag3 > target/overlay/root/flag chmod 400 target/overlay/root/flag -echo "[+] Adding customization files" -cp -R buildroot/* target/buildroot # copy buildroot configs -sed -i "s/###ROOTPASSWORD###/$password/g" target/buildroot/configs/pcengines_apu2_defconfig -cp -R conf/* target/overlay # copy target system config files -cp -R webpanel/* target/overlay/var/www/html # copy the webpanel -cp -R update/update.sh target/overlay #copy the update script and certificate - echo "[+] Building the keygen" mkdir -p target/overlay/usr/sbin gcc -o target/overlay/usr/sbin/cfgbin keygen/keygen.c -static -lm