rMETApy - A Python3 port for rMETAshell, a Reverse Shell Metadata Injection and One-Liner Generation Toolkit
rMETAshell is a command-line tool for injecting a reverse shell command into the metadata and generating one-liner execution methods.
rMETAshell takes a reverse shell command and an image, video or text file as input. It then injects the command into the file using metadata comments. After injection, it generates a one-liner execution method for retrieving and executing the injected command from a remote location.
Metadata-Based Shell Injection: Inject reverse shell commands into image, video, and text file, ensuring seamless integration with target systems.
One-Liner Generation: Automatically generate one-liners for quick and efficient remote shell access. Choose from a variety of execution methods tailored to different file formats.
Supported File Formats: rMETAshell supports the following file formats for shell injection and one-liner generation:
- Image Formats: JPEG, PNG, BMP, and more.
- Video Formats: MP4, AVI, MKV, and others.
- Text Formats: TXT, CSV, XML, and more.
Linux-based operating system (Tested on Kali 2023.3,Ubuntu 20.04 LTS and Termux) Dependencies: ExifTool, Exiv2, ImageMagick (identify), FFprobe, Curl, Sed Compatible file formats: Media (e.g., images, videos), Text files (e.g., TXT, HTML, XML) Zip and Rar archive support
Clone the repository:
git clone https://github.com/git5loxosec/rMETAshell
Navigate to the rMETAshell directory:
cd rMETAshell
Run the script with the desired options:
./rMETAshell [OPTIONS] <REVERSE_SHELL_COMMAND> <filename> <URL>
Replace [OPTIONS], <REVERSE_SHELL_COMMAND>, <filename>, and <URL>
with the appropriate values. For more details, use the -h or --help option.
Follow the prompts to select an execution method based on the file format. Warning: Ethical and Responsible Use Only rMETAshell is intended for legitimate and ethical purposes, such as penetration testing, cybersecurity assessments, and educational use. Unauthorized use of this tool for malicious activities is strictly prohibited and may have serious legal consequences. Ensure that you have proper authorization and adhere to all applicable laws and regulations before using rMETAshell.
This project is licensed under the AGPL-3.0 license.