How flozz/p0wny-shell works
p0wny@shell is a single-file PHP web shell for interactive command execution and remote file operations. A user enters commands in a browser terminal; the client sends requests to the PHP endpoint, which executes commands or handles filesystem actions and returns output and working-directory state. The interface also documents command history, autocomplete, and file transfer. The excerpts show the client request flows and some backend behavior, but omit portions of the PHP dispatch and completion implementation, so uncertain internal connections are left out.
Main entry points: shell.php Terminal UI
Components 12
Browser terminal
- Terminal UI
shell.php - Command history
shell.php - Autocomplete
shell.php - Request client
shell.php
PHP request handling
- Shell endpoint
shell.php - Command execution
shell.php - Completion handler
shell.php - Upload handler
shell.php - Download handler
shell.php
Server resources
- Server command environment
- Server filesystem
Other components
- User
Connections 15
- User → Terminal UI: enters commands
README.md - Terminal UI → Command history: records commands
shell.php - Terminal UI → Autocomplete: requests hints
README.md - Terminal UI → Request client: submits commands
shell.php - Request client → Shell endpoint: posts shell request
shell.php - Shell endpoint → Command execution: runs commands
shell.php - Command execution → Server command environment: executes on
shell.php - Terminal UI → Request client: uploads file data
shell.php - Request client → Upload handler: posts upload request
shell.php - Upload handler → Server filesystem: writes file
shell.php - Shell endpoint → Download handler: handles download
shell.php - Download handler → Server filesystem: reads file
shell.php - Terminal UI → Download handler: downloads result
README.md - Autocomplete → Request client: requests completion
shell.php - Completion handler → Server command environment: queries commands
shell.php