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.
- 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
$ pip install -r requirements.txt
Default port is 1337. User may specify a custom port
$ python server/main.py [port]
$ python client/main.py <server_ip> <server_port>
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
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>
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
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
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
lons_demo.mp4
This project is under the GPL-3.0 License - see the LICENSE for more details