This is a Python-based reverse shell program that allows you to establish a connection between an attacker machine and a victim machine, giving you control over the victim's system. It consists of two Python scripts, one for the attacker side and the other for the victim side. CUrrently this program does do much other than being able to upload or download file from victim's computer and run other windows cmd commands. Plus there is a bug in the program that it break if some wrong input is given like cd to_some_direcory_that_doesnt_exists etc.
The attacker side program (attacker.py) is responsible for setting up a listener and handling incoming connections from the victim machine. It provides a simple shell interface to interact with the connected victim. The attacker can execute commands on the victim's machine, download files from the victim, and upload files to the victim.
Prerequisites:
- Python 3.x
Usage:
- Edit the IP address and replace it with your IP address
- Run the attacker script (
attacker.py) on your machine. - It will start listening for incoming connections on the specified IP address and port (IP:
<Your IP>, port: 5555). - Once a victim machine connects to the listener, the attacker can interact with the victim's machine through the shell interface.
Commands:
quit,exit,bye,deactivate,logout: Terminate the connection with the victim.clearorcls: Clear the screen on the attacker side.cd <directory>: Change the current directory on the victim machine.download <file>: Download a file from the victim's machine to the attacker's machine.upload <file>: Upload a file from the attacker's machine to the victim's machine.- Or any other Windows commands.
The victim side program (payload.py) is the payload that the attacker needs to run on the victim's machine. It connects back to the attacker's machine, allowing the attacker to execute commands on the victim's machine.
Prerequisites:
- Python 3.x
Usage:
- Compile the payload script using a tool like pyinstaller on a Windows machine to create an executable binary.
pyinstaller payload.py --onefile --noconsole - Transfer the compiled binary (
payload.exe) to the victim's machine. - Run the
payload.exeon the victim's machine. - It will establish a connection back to the attacker's machine and wait for commands.
Commands: The commands sent from the attacker will be executed on the victim's machine, and the results will be sent back to the attacker.
This program is intended for educational and ethical purposes only. Unauthorized use of this program on systems you don't own or have explicit permission to use is illegal. The authors are not responsible for any misuse or damage caused by this program.
- For testing purposes, make sure both the attacker and victim machines are on the same local network.
- Use this program responsibly and only on systems you have explicit permission to access.
This program was created by Abhinav Yadav.