https://github.com/anshulkoshyari/reverse-shell
Reverse Shell written in Python.
https://github.com/anshulkoshyari/reverse-shell
network-programming pyhton socket-programming
Last synced: 10 months ago
JSON representation
Reverse Shell written in Python.
- Host: GitHub
- URL: https://github.com/anshulkoshyari/reverse-shell
- Owner: anshulkoshyari
- Created: 2020-03-12T09:23:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-05T23:17:50.000Z (over 1 year ago)
- Last Synced: 2025-06-28T22:36:47.743Z (about 1 year ago)
- Topics: network-programming, pyhton, socket-programming
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reverse Shell
This repository contains two Python scripts: `server.py` and `client.py`, which implement a basic reverse shell setup. The server listens for incoming client connections, and the client, once connected, listens for commands from the server to execute on the client's local machine.
## How It Works
- The **server** (running `server.py`) listens for incoming client connections on a specified port (default: `9999`).
- The **client** (running `client.py`) connects to the server at a given IP address and port.
- The server can then send commands to the client, which the client will execute and return the output back to the server.
This setup mimics a reverse shell where the server controls the client by sending commands.
## Prerequisites
- Python 3.x
- Basic knowledge of networking and sockets
- Ensure the server's IP address is accessible by the client (the server's firewall should allow the port, typically `9999`).