The php-shell is a simple and user-friendly PHP web shell designed for penetration testing purposes. It allows users to execute shell commands on a server directly through a web interface, facilitating tasks such as command execution, file uploads, and downloads.
admin
R00t
- Command Execution: Run shell commands directly from the web interface.
- File Management: Upload and download files to and from the server.
- Session Management: Utilize command history navigation with arrow keys.
To deploy php-shell
, use curl
or wget
to download the PHP-SSH-Shell.php
file to your server's web directory:
curl https://raw.githubusercontent.com/RootShelll/PHP-SSH-Shell/refs/heads/main/PHP-SSH-Shell.php -o /var/www/html/PHP-SSH-Shell.php
or
wget https://raw.githubusercontent.com/RootShelll/PHP-SSH-Shell/refs/heads/main/PHP-SSH-Shell.php -O /var/www/html/PHP-SSH-Shell.php
After downloading, access the shell via your web browser:
http://yourserver.com/PHP-SSH-Shell.php
Type your desired shell command and press Enter to execute.
Use the Up and Down arrow keys to scroll through previous commands.
exit
: Logs out of the shell session.cd [directory]
: Changes the current directory.cls
: Clears the command output on the screen.rshell [IP] [PORT]
: Initiates a reverse shell to the specified IP and port.upload
: Prompts for a file to upload to the current directory.download [file]
: Downloads the specified file from the server.
Deploying php-shell poses significant security risks, as it grants extensive access to the server. It is imperative to use this tool exclusively in controlled environments, such as during authorized penetration testing, and ensure it is removed immediately after use to prevent unauthorized access.
To ensure the php-shell page is optimized for search engines:
- Meta Tags: Include relevant meta tags in the
<head>
section. - Header Tags: Use appropriate header tags (
<h1>
,<h2>
, etc.) to structure your content. - Alt Text for Images: Provide descriptive alt text for images to improve accessibility and SEO.
For users unfamiliar with web shells, php-shell serves as a web-based interface that allows you to execute shell commands on a server directly from your browser. This can be particularly useful for system administrators and developers who need to manage servers without direct terminal access.
- Download the
PHP-SSH-Shell.php
file to your server's web directory usingcurl
orwget
. - Ensure the web server has the necessary permissions to execute PHP scripts.
Open your web browser and navigate to:
http://yourserver.com/PHP-SSH-Shell.php
You will be presented with a command input field where you can enter your shell commands.
Type any valid shell command into the input field and press Enter. The output of the command will be displayed on the screen.
Type upload
and press Enter. A file selection dialog will appear. Choose the file you wish to upload. The selected file will be uploaded to the current directory on the server.
Type download [filename]
(replace [filename]
with the actual file name) and press Enter. The specified file will be downloaded to your local machine.
<div class="login-form">
<h2>Shell login password</h2>
<input type="text" value="admin">
<input value="R00t" required>
</div>
This project is licensed under the MIT License - see the LICENSE file for details.