Reverse shell SERVER for unbureaucratic server/client connections with file transfer / screenshots
Project description
Reverse shell server for unbureaucratic server/client connections with file transfer / screenshots
pip install reverseshellserver
Tested against Windows 10 / Python 3.10 / Anaconda
Shell Server: A simple server-side application that allows multiple clients to connect, execute shell-like commands, taking screenshots, and exchange files over a network using sockets.
To install the client: https://pypi.org/project/reverseshellclient/
This server application implements a basic command shell that listens for client connections, executes user commands, and responds to the client with appropriate outputs or actions. Clients can connect to the server using a TCP/IP socket
The server and client communicate using a custom command encoding format to handle large data transmissions. The server can send data to the client, and the client can send data to the server.
Usage:
- Instantiate the ShellServer class with desired configurations (port, buffer size, commands, etc.).
- Start the server using the
do_actions()
method, which listens for incoming client connections and allows communication with clients. - Clients can connect to the server using a TCP/IP socket.
Note:
- The server can handle multiple clients simultaneously through multi-threading.
- When a client sends the 'quit' command, the client remains connected.
- When a client sends the 'exit' command, the client is disconnected from the server.
- The server supports the 'putfile' and 'getfile' commands to send and receive files between the server and clients.
- Screenshots can be taken using command_screenshot
from reverseshellserver import ShellServer
se = ShellServer(
port=12345,
listen=5,
byte_len=32768,
command_quit="quit",
command_disconnect="disconnect",
command_exit="exit",
command_putfile="putfile",
command_getfile="getfile",
command_screenshot="screenshot",
command_getcwd="getcwd",
command_putfile_sep=b"FILESEP",
command_start=b"START_START_START",
command_end=b"END_END_END",
)
se.do_actions()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for reverseshellserver-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54df7a8f331cd66f0e7e6aee44d619afc8f3d00a591b2332796987727f8787fc |
|
MD5 | 51d9520c9f7f424ba2f9e221c1c933bd |
|
BLAKE2b-256 | 2a91065b7c905be0077c842a8c028b04b821626cba2d945b0fcd137ce8c2a908 |