
Single-file PHP shell
p0wny@shell:~# is a very basic, single-file, PHP shell. It can be used to quickly execute commands on a server when pentesting a PHP application. Use it with caution: this script represents a security risk for the server.
Features:
↑ ↓)Tab key)cd command)upload <destination_file_name> command)download <file_name> command)WARNING: THIS SCRIPT IS A SECURITY HOLE. DO NOT UPLOAD IT ON A SERVER UNLESS YOU KNOW WHAT YOU ARE DOING!

Demo with Docker:
docker build -t p0wny .
docker run -it -p 8080:8080 -d p0wny
# open with your browser http://127.0.0.1:8080/shell.php
If you have any question, you can:
Please open an issue on GitHub with as much information as possible if you found a bug:
PHP-FPM 8.1, Apache mod_php 7.4,...)Nginx 1.23, Apache 2.4.55,...)Please consider filing a bug before starting to work on a new feature; it will allow us to discuss the best way to do it. It is obviously unnecessary if you just want to fix a typo or small errors in the code.
Want to support this project?
exec, shell_exec, system, passthru, popen, proc_open) to run commands to bypass disabled functions (@cli-ish, #31, #32)cd command (cd ~, cd ~username,...)clear command to clear the terminal (@izharaazmi #12)