Giter VIP home page Giter VIP logo

lons-c2's Introduction

LONS-C2 : socket-based command and control server

Python
Banner

Table of Contents

Introduction

Listener-Oriented Network Server (LONS) is a socket-based command and control server, designed to allow pentesters and security enthusiasts to centralize and manage in an easy manner terminal sessions in different machines.

Features

  • Simple CLI with client selection
  • Easy to use
  • Running commands in remote clients
  • Retrieve network information
  • Upload files to clients
  • Retrieve files from clients
  • Take screenshots from clients and visualize them

Usage

Installing requirements

$ pip install -r requirements.txt

Server

Default port is 1337. User may specify a custom port

$ python server/main.py [port]

Client

$ python client/main.py <server_ip> <server_port>

Running LONS-C2

Help

Server listening in 0.0.0.0:1337...
Type help to see options
mario@lons> help
Available commands:

		 sessions - Display active sessions and choose one

		 delete - Display active sessions and delete one

		 exit - Stop server and threads, and exit the program

Selecting a session

mario@lons> sessions
		1 - 127.0.0.1:59269 - OS: Windows
		back - Go back without choosing a session
session nº> 1
Type help to see options
mario@lons-session1>

Help - Session

mario@lons-session1> help
Available commands:

		 upload_file <local_file_path> <remote_file_path> - Uploads the file given in the current local machine to the remote file path specified.

		 download_file <remote_file_path> <local_file_path> - Downloads the file remote file path specified and saves it in the local file path given.

		 screenshot <local_image_path> - Takes a screenshot in the client machine, and saves the image in the local path specified.

		 netinfo - Displays the most relevant net information, such as open ports and network interfaces.

		 run <command> - Runs the given command in the client and displays the information.

		 back - Exit current session

Running a system command

mario@lons-session1> run whoami
Executing Submodule Run - This module handles the process of executing a system command in the remote client.
desktop-testing\mario

Display network information

mario@lons-session1> netinfo
Executing Submodule NetInfo - This module gathers network information from the remote client, processes it and shows the most important information.
Ports open on all interfaces:
		0.0.0.0:135
		0.0.0.0:445
		0.0.0.0:903
		0.0.0.0:913
		0.0.0.0:1337

Ports open on a single interface:
		127.0.0.1:1337
		127.0.0.1:6942
		192.168.37.1:139
		192.168.56.1:139
		192.168.79.1:139

Interface in network range 192.168.56.0/24 with IP address 192.168.56.1
Interface in network range 192.168.37.0/24 with IP address 192.168.37.1
Interface in network range 192.168.79.0/24 with IP address 192.168.79.1
Interface in network range 192.168.0.0/24 with IP address 192.168.0.7

Usage Demo

lons_demo.mp4

License

This project is under the GPL-3.0 License - see the LICENSE for more details

lons-c2's People

Contributors

m4riio21 avatar

Stargazers

ꪶ࿋྄ིᤢꫂFคէaliէy avatar  avatar ruycr4ft avatar  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.