Git Product home page Git Product logo

lightc2's Introduction

Lightweight Adversary simulation command and control platform created by @PPh3nX


Overview

LightC2 is an modulable lightweight Adversary simulation command and control platform. It includes modules execution, cli interface, web api, custom agents/shellcodes, custom methods ...

This platform is destinated to cybersecurity experts for pentest/red team operations purposes. It is currently under development

image

Installation

The installation process is pretty simple:

sudo apt install python3 python3-pip
git clone https://github.com/Ph3nX-Z/LightC2.git
cd LightC2
python3 -m pip install argon2-cffi Flask readchar
nimble install winim

You can now use LightC2 ๐Ÿ˜

Usage

Global usage:

usage: LightC2 [-h] [--password PASSWORD] [--user USER] [--register] [--register-key REGISTER_KEY] [--teamserver TEAMSERVER] mode

Minimalist C2 for short offensive missions

positional arguments:
  mode                  Specify if the script is in server mode (teamserver), or in client mode

options:
  -h, --help            show this help message and exit
  --password PASSWORD, -p PASSWORD
                        Specify a password for client mode
  --user USER, -u USER  Specify a user for client mode
  --register, -r        If set, will register the user you passed in argument (need the register key)
  --register-key REGISTER_KEY, -k REGISTER_KEY
                        Specify the key to register to team server in client mode
  --teamserver TEAMSERVER, -t TEAMSERVER
                        Specify the host (https://host:port) to connect to the team server in client mode

Server side example:

python3 main.py server

Client side example:

python3 main.py client -u "user" -p "password" --teamserver "https://127.0.0.1:8080"

Client side example with register (will register user and password):

python3 main.py client -u "user" -p "password" --teamserver "https://127.0.0.1:8080" --register --register-key <registerkey from teamserver>

tool usage:

image

image

Features

Feature Category Status
Argon2 Password hashing Implemented
XChaCha20 Vault Storage Implemented
Sqlite3 Global Storage Implemented
Multiprocess Global Api Implemented
HTTP/S Listener Implemented
Tasking in db Jobs Implemented
Nim Agent Agent In progress
thread safe input func Cli Client Implemented
thread safe print func Cli Client Implemented
Ekko sleep obfuscation Agent Implemented

Note to me

Generate (following the listener id)

  • Stager --> generate client side (and specify the listener specified in generate)
  • shellcode for stage 0 : generate client side --> send to ts (host shellcode following the listener specified in the generate)

Modules:

  • shellcode for modules : generated client side --> send to ts (hosted on all the listeners)
  • when module is called, method:module sent to the agent --> basic shellcode loader and output looting in the default named pipe.

To add:

  • Token Vault (steal token in session and reuse it in another session)

lightc2's People

Contributors

ph3nx-z avatar

Stargazers

 avatar HERTRICH avatar Capt-p 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.