Coder Social home page Coder Social logo

yashsvig / rootkit Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 32 KB

This Linux rootkit project comprises Commander and Victim programs facilitating covert communication through encrypted channels. Leveraging features like keylogging, file transfer, and remote program execution, it provides a controlled and secure means of interacting with a Linux system.

License: GNU General Public License v3.0

Python 100.00%
cnc-controller cnc-programming directorywatcher fileware keylogger-python linux python3 rootkit github-codespaces github-pages learn student-vscode

rootkit's Introduction

Linux Rootkit

Overview

This repository contains two Python programs, Commander and Victim, designed for covert communication and control over a network. The Commander initiates a session by port knocking on the Victim, allowing the two programs to communicate through covert channels. The Victim responds to the Commander's commands, which include various actions like starting/stopping a keylogger, transferring files, watching files or directories, running programs, and more.

Key Points

  • All communication between the Commander and Victim is done through covert channels.
  • Communication is encrypted to ensure secure data transfer.
  • The session initiated by port knocking continues until the Commander selects the Disconnect option.
  • Output from programs run on the Victim is displayed on the Commander.

Dependencies

  • Both programs use Python and various libraries such as multiprocessing, inotify, and psutil.
  • Install all these dependencies using: pip install -r requirements.txt

Commander Program

Usage

Run the Commander program with the following command: python commander.py -ip <victim_ip_addr> -p <port_number> (Replace <victim_ip_addr> with the victim's IP address, <port_number> with the desired port number for communication.)

Follow the on-screen menu to interact with the Victim.

Menu Options

  • Disconnect from the Victim: End the current session and disconnect from the Victim.
  • Uninstall from the Victim: Uninstall the program from the Victim.
  • Start Keylogger on the Victim: Initiate the keylogger on the Victim.
  • Stop Keylogger on the Victim: Stop the keylogger on the Victim.
  • Transfer Keylog File from the Victim: Retrieve the keylog file from the Victim.
  • Transfer a File to the Victim: Send a file to the Victim.
  • Transfer a File from the Victim: Receive a file from the Victim.
  • Watch a File on the Victim: Monitor changes to a specific file on the Victim.
  • Watch a Directory on the Victim: Monitor changes to files within a directory on the Victim.
  • Run a Program on the Victim: Execute a command on the Victim, and view the output on the Commander.

Victim Program

Usage

Run the Victim program with the following command: python victim.py -p <port_number> (Replace <port_number> with the port number used by the Commander for communication.)

Wait for the Commander to initiate a session through port knocking.

Screenshot of the Rootkit running

Commander

image

Victim

image

Demo

final-video.mp4

rootkit's People

Contributors

yashsvig avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

e-sins

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.