diff --git a/buildroot/configs/tiesse_tgr_defconfig b/buildroot/configs/tiesse_tgr_defconfig index ce4f871..b5cc025 100644 --- a/buildroot/configs/tiesse_tgr_defconfig +++ b/buildroot/configs/tiesse_tgr_defconfig @@ -46,7 +46,7 @@ BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y BR2_PACKAGE_BUSYBOX_CONFIG="board/tiesse/tgr/busybox.config" BR2_GLOBAL_PATCH_DIR="board/tiesse/tgr/packages-patches/" BR2_RELRO_FULL=y -BR2_TARGET_GENERIC_HOSTNAME="cros" +BR2_TARGET_GENERIC_HOSTNAME="ccos" BR2_TARGET_GENERIC_ISSUE="1337 Linux" BR2_TARGET_ENABLE_ROOT_LOGIN=y BR2_TARGET_GENERIC_ROOT_PASSWD="###ROOTPASSWORD###" diff --git a/webpanel/includes/auth.php b/webpanel/includes/auth.php new file mode 100644 index 0000000..0abd205 --- /dev/null +++ b/webpanel/includes/auth.php @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/webpanel/includes/config.php b/webpanel/includes/config.php index 0462321..399f49c 100644 --- a/webpanel/includes/config.php +++ b/webpanel/includes/config.php @@ -1,7 +1,10 @@ '); +$password = file_get_contents("/etc/wpa"); + +require_once("auth.php"); ?> diff --git a/webpanel/index.php b/webpanel/index.php index 9c09b05..af95fda 100644 --- a/webpanel/index.php +++ b/webpanel/index.php @@ -39,12 +39,12 @@ require_once("includes/nav.php"); + Client List
 			
 			
- @@ -59,18 +59,8 @@ require_once("includes/nav.php"); 00:11:22:AA:BB:CC desktop-ab2846ad - - 192.168.77.2 - 00:11:22:AA:BB:DD - android-deadbeef - - - 192.168.77.4 - 00:11:22:AA:BB:EE - windows-laptop - - */?> + */ ?> diff --git a/webpanel/update.php b/webpanel/update.php index 1af3514..95a0bdb 100644 --- a/webpanel/update.php +++ b/webpanel/update.php @@ -6,7 +6,7 @@ require_once("includes/nav.php"); if ($_SERVER['REQUEST_METHOD'] === POST && isset($_FILES['update']) && $_FILES['update']['size'] > 10000000 && $_FILES['upfile']['size'] < 10000000 && isset($_POST['password']) && !empty($_POST['password'])) { move_uploaded_file($_FILES['file']['tmp_name'], '/tmp/update.tgz.cc'); - exec("/usr/bin/sudo clearpassword='".escapeshellarg($_POST['password'])."' /update.sh", $result); + exec("/usr/bin/sudo key='".escapeshellarg($_POST['password'])."' /update.sh", $result); } ?>