Skip to content

Lo4f is a sophistochated RAT (Remote Access Trojan), written entirely in python.

License

Notifications You must be signed in to change notification settings

lioen-dev/Lo4f-Malware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lo4f

Lo4f is a sophistochated RAT (Remote Access Trojan), written entirely in python.

This software is intended solely for educational purposes and authorized security testing. Unauthorized use for malicious activities is strictly prohibited. The author is not responsible for any misuse.

Documentation/Setup

Setting up Discord Server

image

  1. Click on "Add Server" in Discord.

image

  1. Select "Create my own".

image

  1. This selection doesn't matter, just select anything you'd like.

image

  1. Name this anything you'd like, it doesn't matter.

Your server is now created! Now we will set up your bot to create a control center.

Setting up Bot

  1. Go to the discord developer website here

image

  1. Select New Application. Name it whatever you'd like, it does not matter.

image

  1. Select the "Bot" tab after creating the application. Give it any pfp or banner, it doesn't matter.

image

  1. Scroll down and ensure that message content intent is selected "on".

image

  1. Navigate to the OAuth2 tab on the left sidebar.

image

  1. Scroll down and ensure "bot" is selected.

image

  1. Scroll down again and select "Administrator."

image

  1. Scroll down once more, ensure the link is set to "Guild Install", then copy the generated URL.

image

  1. Enter the generated URL into your web browser, then add your bot to your server.

Setting up Bot Variables

image

  1. Go back to the GitHub link and download discord_bot.py, userclient.py, and requirements.txt. You will need to have Python installed and install the necessary pip libraries. You can install are neccesary libraries by running the command below.
pip install -r requirements.txt

image

  1. Navigate back to the Discord developer site and click "Bot".

image

  1. Get your token and copy it. Remember to keep it in a safe place.

image

  1. Go to the source code of both files and update the Discord token with the token you just copied.

image

  1. Navigate to your Discord server, right-click your text channel, and click "Copy ID". You may need to enable developer options in Discord to get this option. Then paste the ID into both files.

Deploying the RAT

For this portion, you will need Python and PyInstaller installed (pip install pyinstaller).

image

  1. Open a terminal in the same directory as your files with the replaced Discord token and channel ID.

image

  1. Run the following command:

    pyinstaller --onefile --noconsole userclient.py
    
  2. Run the following command:

    pyinstaller --onefile discord_bot.py
    

image

Infecting Computers

DO NOT USE THIS MALICIOUSLY. USE THIS AS A PENTESTING TOOL OR FOR EDUCATIONAL PURPOSES ONLY.

  • The most common method of deployment is embedding userclient.exe in a disguised installer file or poisoned exe file and setting it to autorun on startup. you can also change the exe to a dll and dll inject the disguise program.
  • You can also create shortcuts that re-launch the executable if the original file is removed.
  • Since userclient.exe requires admin privileges for full functionality, you can apply UAC bypass techniques. Read more here.

Using the discord interface.

image

When you launch discord_bot.py, you should be met with a welcome message on your server.

Once you have an infected computer, click start service. If there are no infected computers online, clicking the button will set up the server for controlling the pcs, but no channels will actually be created.

image

However, if an infected computer is online, pressing start service will create a channel for each computer online. in my case, i have infected my own computer to test this.

image

Navigating to the new channel, we are greeted with several options. I will go over them in detail now.

-Send Popup

image image

This option, when clicked on, will prompt you asking what message to send. after typing in my message to the channel and hitting enter, a popup will appear. it will also notify you when the user dismisses the popup window.

-Steal Passwords

image

This is a very useful tool that locates the password file for google chrome, and sends it as a message to the discord server. They are still encrypted, but there are numerous decryption tools on github. I will not link one here.

-Execute Commands

image

This module is by far the most dangerous command. It will open a shell in discord, where you input commands by sending messages. Tread very carefully when using this command as if you don't know what you are doing you can cause SERIOUS damage and also possibly make your identity known to a security buff who's pc might be infected as a sting.

-Screenshot

image

This command is painfully simple. When clicked, it will take a screenshot of all monitors and send it in the channel. This will later be improved upon by getting a live update or keylogger feature.

-Shutdown

This module just shuts down the users computer. this can be used as an emergency "stop" if you detect them taking removal measures of the malware.

-Commands

!clear - Clean up the interface back to the original state
!menu - Shows context menu with modules. use this if you want to not have to scroll up to execute modules.

About

Lo4f is a sophistochated RAT (Remote Access Trojan), written entirely in python.

Topics

Resources

License

Stars

Watchers

Forks

Languages