在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ivan-sincek/php-reverse-shell开源软件地址(OpenSource Url):https://github.com/ivan-sincek/php-reverse-shell开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):PHP Reverse ShellJust a little refresh on the popular PHP reverse shell script pentestmonkey/php-reverse-shell. Credits to the original author! Works on Linux OS and macOS with Works with both Tested on XAMPP for Linux v7.3.19 (64-bit) with PHP v7.3.19 on Kali Linux v2020.2 (64-bit). Tested on XAMPP for OS X v7.4.10 (64-bit) with PHP v7.4.10 on macOS Catalina v10.15.6 (64-bit). Tested on XAMPP for Windows v7.4.3 (64-bit) with PHP v7.4.3 on Windows 10 Enterprise OS (64-bit). In addition, everything was tested on Docker images nouphet/docker-php4 with PHP v4.4.0 and steeze/php52-nginx with PHP v5.2.17. Made for educational purposes. I hope it will help! Process pipes on Windows OS do not support asynchronous operations so Table of ContentsReverse Shells/src/reverse/php_reverse_shell.php requires PHP v5.0.0 or greater, mainly because /src/reverse/php_reverse_shell_older.php requires PHP v4.3.0 or greater. Change the IP address and port number inside the scripts as necessary. Copy /src/reverse/php_reverse_shell.php to your server's web root directory (e.g. to /opt/lampp/htdocs/ on XAMPP) or upload it to your target's web server. Navigate to the file with your preferred web browser. Web ShellsCheck the simple PHP web shell based on HTTP POST request. Check the simple PHP web shell based on HTTP GET request. You must URL encode your commands. Check the simple PHP web shell v2 based on HTTP GET request. You must URL encode your commands. Find out more about PHP obfuscation techniques for older versions of PHP at lcatro/PHP-WebShell-Bypass-WAF. Credits to the author! File Upload/Download ScriptCheck the simple PHP file upload/download script based on HTTP POST request for file upload and HTTP GET request for file download. When downloading a file, you should URL encode the file path, and specify name of the output file. Depending on the server configuration, downloading a file through HTTP GET parameter might not always work, so you will have to hardcore the file path in the script. Case 1: Upload the Script to the Victim’s ServerNavigate to the script on the victim's server with your preferred web browser, or use cURL from you PC. Upload a file to the victim's server web root directory from your PC:
Download a file from the victim's PC to your PC:
If you use reverse shell and you have elevated your initial privileges, this script might not have the same privileges as your shell. To download a certain file, you might need to copy the file to the web root directory and give it necessary read permissions. Case 2: Upload the Script to Your ServerFrom your PHP reverse shell, run the following cURL commands. Upload a file from the victim's PC to your server web root directory:
Download a file from your PC to the victim's PC:
Set Up a ListenerTo set up a listener, open your preferred console on Kali Linux and run one of the examples below. Set up
Set up
ImagesFigure 1 - Ncat Figure 2 - Script's Dump |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论