From 5c495a5425e94e75a9b6a1c75db85907176e575c Mon Sep 17 00:00:00 2001 From: "Robert E. Goodermote Jr." Date: Tue, 29 Oct 2024 17:46:12 -0400 Subject: [PATCH 1/2] Update index.php Added an additional button to start a script that updates the operating system. --- PPPwn/index.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/PPPwn/index.php b/PPPwn/index.php index b25a38a..ecd138a 100644 --- a/PPPwn/index.php +++ b/PPPwn/index.php @@ -518,7 +518,8 @@ function setEnd() { } -print("         +print("          
"); @@ -786,6 +787,15 @@ function setEnd() { } "); +if (isset($_POST['patch'])){ + exec('sudo bash /boot/firmware/PPPwn/patch.sh >> /dev/null &'); + print("logger.style.display = \"block\"; + var lbody = document.getElementsByClassName(\"logger-body\")[0]; + lbody.innerHTML = ''; + startLog('patch.log');"); +} + + if (isset($_POST['update'])){ exec('sudo bash /boot/firmware/PPPwn/update.sh >> /dev/null &'); print("logger.style.display = \"block\"; @@ -798,4 +808,4 @@ function setEnd() { "); -?> \ No newline at end of file +?> From 6b0037c92f73dfe8dad2023cd8727d8e99608e86 Mon Sep 17 00:00:00 2001 From: "Robert E. Goodermote Jr." Date: Wed, 30 Oct 2024 09:35:12 -0400 Subject: [PATCH 2/2] Typo --- PPPwn/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PPPwn/index.php b/PPPwn/index.php index ecd138a..0091626 100644 --- a/PPPwn/index.php +++ b/PPPwn/index.php @@ -519,7 +519,7 @@ function setEnd() { print("           +name=\"shutdown\">Shutdown PI    
"); @@ -795,7 +795,6 @@ function setEnd() { startLog('patch.log');"); } - if (isset($_POST['update'])){ exec('sudo bash /boot/firmware/PPPwn/update.sh >> /dev/null &'); print("logger.style.display = \"block\";