njRAT – Remote Access Trojan
njRAT is a RAT with powerful data-stealing capabilities. In addition to login keystrokes, it is capable of accessing a victim’s camera, stealing credentials stored in browsers, uploading and downloading files, performing the process and file manipulations, and viewing the victim’s desktop.
The njRAT Trojan can be used to control Botnets (network of computers), allowing the attacker to update, uninstall, disconnect, restart, close the RAT, and rename its compaign ID. The attacker can further create and configure the malware to spread through USB drives with the help of the Command and Control server software.
Objectives
- Create a server using njRAT.
- Access the target machine remotely.
Requisites
- Windows 10 (Attacker).
- Windows 7, 8 or Server (Target).
Download njRAT :
Password : adrikadi
Create an Executable Server with njRAT
- Log in to the Windows 10 and install the njRAT.
- Launch the njRAT, the GUI appears along with a pop-up, where you need to specify the port you want to use to interact with the target machine. Use the default port number 5552, and click Start.
- Click on Builder at lower-left corner.
- On the Builder dialog-box, enter the IP address of the Attacker machine – Windows 10, check the option Copy to StartUp and Registry StarUp, then click Build as shown below:
- Save the file on the Desktop and name as Example.exe.
- Now, we need to use any technique to send this server to the intended target through mail or any other way.
To make this easier in this lab, I copied the Example.exe file in the shared network location.
Also Read : How to Track Real-time Location of Any Telegram User
Execute the Server on the Target Machine
In this Lab I’m using Windows 7 SP1 virtual machine.
Note: Make sure to enable the Firewall on the target machine.
- Drag the Example.exe file to your Desktop and double-click it.
As you can see below, the connection was successfully established. - Switch back to the Windows 10 (Attacker). When the target double-clicks the server, the executable starts running and the njRAT GUI running on the Windows 10 establishes a persistent connection with the Target machine as show below:
The GUI displays the machine’s basic details such as the IP address, OS, user name and so on.
Note: Unless the attacker disconnects the server on his own, the victim machine remains under his control.
Also Read : Generate 100% FUD Backdoor with TheFatRat — Windows 10 Exploitation
Manipulate Files on Target machine
- Right-click on the detected Target machine and click Manager.
Double-click on any directory in the left pane. You can right-click any selected directory and manipulate it using the contextual options:
Manage the Processes
- Click on Process Manager on the top menu. You will be redirected to the Process Manager, where you can right-click any process and perform actions such as Kill, Delete, and Restart.
Manage the Connections
- Click on Connections on the top menu and select a specific connection, right-click on it, and click Kill Connection. This action kills the connection between two machines communicating through a particular port.
Manage the Registries
- Click on Registry on the top menu and choose a registry from the left pane, right-click on its associated registry files, a few options appear to manipulate them.
Launch a Remote Shell
- Click on Remote Shell on the top menu. This action launches a remote command prompt of the target machine.
Similarly, you can issue all the other commands that can be executed in the command prompt of the target.
Run File
- On the main window of njRAT, righ-click on the Target machine and select Run File. An attacker makes use of these options to execute scripts or files remotely from his/her machine.
Also Read :How to Hack Targeted CCTV Cameras — Public & Private
Launch a Remote Desktop Connection
- Righ-click on the Target machine and select Remote Desktop Connection
This launches a remote desktop connection without target’s consent. You will be able to remotely interact with the victim machine using the mouse or keyboard.
In the same way, you can select the Remote Cam and Microphone to spy on the target and track voice conversations.
Perform Key Logging
- Switch to the Windows 7 (Target machine). Let’s assume that you are a legitimate user and perform a few activities such as logging into any websites or typing text in some documents.
- Now, switch back to Windows 10 machine / njRAT GUI and right-click on the target machine, select the Keylogger option.
The keylogger window appears, displaying all the keystrokes performed by the target.
In case the victim/target, attempts to break the connection by restarting the machine, however, as soon the victim logs again, the njRAT client will automatically establishes a connection with the victim.