flozz/p0wny-shell ? reverse-engineered prompt

Reverse engineered prompt

Build me a single file PHP web shell page that I can drop on a server for quick command execution during a PHP app pentest. It should open in the browser and feel like a simple terminal, with a prompt showing the current user, host, and working directory.

I want command history with the up and down arrows, tab completion for command names and files, and a cd command so I can move around the remote filesystem. Please also include clear and practical file transfer commands, one to upload a local file to the server and one to download a remote file back to me. Make it responsive so it works well on desktop and mobile, and keep it lightweight with no extra dependencies if possible. If some server functions are disabled, try a few different ways to run commands so it still works when it can. Also add a clear command and make the whole thing easy to run in Docker for a quick demo.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab