Skip to content

Tiny WebShell written in PHP supports DNS core payload extraction.

License

Notifications You must be signed in to change notification settings

lawrenceamer/ghostshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GhostShell

The Tiny Web Shell Stager is a lightweight and efficient web shell written in PHP, designed to stealthily deploy and operate within a web environment. This tool leverages PHP's DNS functions to retrieve additional web shell functionality dynamically, enhancing its flexibility and reducing its footprint. It includes a number of features to ensure both security and concealment.

Features:

  • DNS-Based Payload Extraction: Utilizes PHP's dns_get_record function to dynamically retrieve and decode base64-encoded payloads from DNS TXT records. This method ensures that the core functionality of the web shell remains minimal and can be extended or modified without altering the main script.

  • Access Control with Passphrase: Ensures secure access to the web shell functionalities. Only users who provide the correct secret passphrase can utilize the tool, preventing unauthorized access. image

  • Stealth Mode: Mimics a 404 HTTP response when accessed without the secret passphrase. This feature hides the presence of the web shell from casual inspection and automated scanners, enhancing its stealth capabilities. image

Usage Scenario:

Ideal for penetration testers and security researchers, the Tiny Web Shell Stager can be deployed in environments where maintaining a low profile is crucial. Its innovative use of DNS-based payload extraction makes it adaptable and reduces the need for frequent updates to the core script.

Example Workflow:

Deployment: Upload the Tiny Web Shell Stager (home.php) to the target web server.

Configuration: Ensure DNS TXT records are set up with staged base64-encoded payload "remote.txt" with 250 length for each record, you need split the payload into multiple chunks, and assure the each chunk has a host value in alphabetical order image Access: Navigate to the web shell and provide the secret passphrase to unlock the advanced functionalities. image Stealth: When accessed without the correct passphrase, the tool will return a 404 HTTP response, blending in with standard error pages. By incorporating these features, the Tiny Web Shell Stager provides a robust and covert tool for secure remote access and command execution in web environments. image

About

Tiny WebShell written in PHP supports DNS core payload extraction.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages