Can’t afford to hire someone to hack a mobile phone? Here is what you can do.


TheFatRat is an exploiting tool which compiles a malware with famous payload, and then the compiled maware can be executed on Linux , Windows , Mac and Android. TheFatRat Provides An Easy way to create Backdoors and Payload which can bypass most anti-virus.

TheFatRat is an easy to use tool which helps in generating backdoors, system exploitation, post exploitation attacks, browser attacks, DLL files, FUD payloads against Linux, Mac OS X, Windows, and Android. It can be combined with msfvenom (Metasploit framework) which can be then utilized to utilise a reverse shell. It offers a lot of features, but in this article, I backdoor with msfvenom.

How to Install the FatRat?

In order to install the FatRat tool, we need to download/clone the package from Github using the following command.

git clone https://github.com/Screetsec/TheFatRat.git

The downloaded package contains the setup file that can be executed as follows.

cd TheFatRat
./setup.sh

[Note: If the setup.sh is not an executable format, then change the file permission using the chmod +x setup.sh command]

The FatRat setup

The installation process can take some time due to the installation of different bundles as shown in the following screenshot.

FatRat Installation progress

How FatRat Works?

After successful installation, the FatRat tool can be executed using the following command.

fatrat

The tool runs a dependency check before loading in the terminal.

dependencies check

After verifying the dependencies, the FatRat menu appears on the screen.

fatrat menu

As we can see in the above screenshot, there are a number of ways we can create the backdoors.  For instance, we can generate payloads through PwnWinds by selecting the sequence number (#6) from the list. The PwnWind has the following set of backdoors/payloads to be automatically generated by the tool.

PwnWind backdoors

Let’s generate a test (.exe) payload written in C# + Powershell (option#2). We need to embed the localhost IP address and desired port in the payload. The FatRat has the feature of automatically fetching the host IP and network details.

PWNWIND configuration

Once all the configurations are done, the tool displays the summary of the parameter used in the payload creation.

configuration summary

A payload file is generated in the root directory as shown below.

generated payload file

The next step is to share the payload file with the target operating system and listen for a connection through the METASPLOIT framework. The msfconsole also requires configuration like host IP, listening port, and payload type in order to exploit the target host. In the above example, we have used the windows/meterpreter/reverse_tcp option while generating the payload. We can select the same to configure Metasploit console.

msfconsole settings

The process of generating other payloads in the menu is similar to the aforementioned process. For example, we can generate the Word document payload by selecting the Office Backdoor module from the list. The MS Office has the following payload options.

microsoft payload options

Sometimes, we perform the stress test to assess the performance of different software and programs in penetration testing. Files of different sizes are often fed to the running processes to evaluate the response. The FatRat tool can be used to generate dummy files with any desired size by simply providing file path and desired size to the tool. From the main menu, select the File Pumping module and file to be resized.

original file size

The tool asks for the desired size in Kilo Bytes or Mega Bytes.

pumping process

The new size of the files can be confirmed by checking the file properties.

new size

Conclusion

The FatRat tool has some distinct advantages over other backdoor generating frameworks, such as a variety of backdoors with multiple payload extensions and automated execution through integrated frameworks. Some FatRat payloads can easily bypass some of the most advanced Anti-Virus (AV) solutions.