Added automatic root password

This commit is contained in:
Giulio 2020-07-19 16:30:37 +02:00
parent 3dd9967f47
commit cc9ac5cd36
3 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,7 @@ 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

View File

@ -5,6 +5,8 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y
BR2_TARGET_GENERIC_HOSTNAME="cros"
BR2_TARGET_GENERIC_ISSUE="1337 Linux"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_TARGET_ENABLE_ROOT_LOGIN=y
BR2_TARGET_GENERIC_ROOT_PASSWD="###ROOTPASSWORD###"
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_OVERLAY="../overlay"
BR2_LINUX_KERNEL=y

View File

@ -1,6 +1,6 @@
<?php
$site = "crOS";
$flag = "##FLAG1##";
$flag = "###FLAG1###";
$interface = "wlan0";
$blacklist = array(';', '#', '(', ')', '|', '&', ' ', "\t", '<', '>');