Skip to content

The python port of rMETAshell, which takes any command (although with reverse shell commands works best) 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.

License

Notifications You must be signed in to change notification settings

CyberCoral/rMETApy

 
 

Repository files navigation

LATEST UPDATE: 8:34 PM Sunday, October 1, 2023 Coordinated Universal Time (UTC)

THIS PROJECT IS UNDER CONSTANT DEVELOPMENT!

rMETApy - A Python3 port for rMETAshell, a Reverse Shell Metadata Injection and One-Liner Generation Toolkit

Now, the README.md from rMETAshell:

Sponsor Kali Linux Compatible Language Static

Clean image file no reverse shell.

The reverse shell injection method used here wont affect the integrity of the image file.

Connection established, mission accomplished!

Description:

rMETAshell is a command-line tool for injecting a reverse shell command into the metadata and generating one-liner execution methods.

How It Works:

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.

Features:

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.

Requirements:

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

Installation:

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.

License

This project is licensed under the AGPL-3.0 license.

About

The python port of rMETAshell, which takes any command (although with reverse shell commands works best) 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.9%
  • Shell 48.1%