Just change IPs to your attacker machine.
How to check your ip?
Linux: Open Terminal and type command: ifconfig
Windows: Open CMD (Command Prompt) and type command: ipconfig
Dependencies to be installed on Victim python machine
pip install pyautogui
pip install opencv-python
How it works:
- Run "python hacker.py" on attacker machine (Kali Linux).
- Run "python victim.py" on victim machine (Windows 10 or 11)
Commands:
cd - change directory
ls - list
pwd - present working directory
download - to download files from victim machine
upload - to upload files to victim machine
desktop - Take screenshot
camera - capture victim picture
DISCLAIMER: This script is intended for **educational purposes only** and to help cybersecurity professionals and students understand reverse shell behavior, file transfer over sockets, and system interaction using Python.
By using or modifying this script, you agree to use it responsibly and only in environments where you have proper authorization, such as test labs, CTFs, or training environments.
The author and contributors are not responsible for any misuse or damages caused by this code.