This script creates a simple reverse shell backdoor that allows a remote attacker to execute commands on the victim's machine. The script connects to a remote server at a specified IP address and port then continuously listens for commands by using python
-
Set Up the Connection
Replace'your ngrok link ip or ip or localhost
in the script with yourngrok
URL orlocalhost
IP if running locally. -
Run the Server
Startserver.py
in your terminal to establish the main server connection. -
Run on Target Machine
On the target machine, executeclient.py
to connect it to the server. -
Control the Target Machine
Use the following commands in the server terminal to interact with the target machine:
-
File Operations
cd
: Change directoryls
: List directory contentsmdir
: Make a directoryrvf
: Rename a filervd
: Rename a directoryrm
: Remove file or directorygsize
: Get file sizecwd
: Show current working directory
-
Additional Controls
camera
: Activate the camera to capture an imagescreen
: Capture a screen recordingdownload
: Download files or folders
Ensure ngrok
is properly set up and both server.py
and client.py
are correctly configured to allow full communication between devices. Follow security best practices when using these scripts.
1.First step
git clone https://github.com/xcyberspy/Xsbackdoor.git
2.Second step
cd Xsbackdoor
Disclaimer: This code is for educational purposes only. Using backdoors for unauthorized access is illegal and unethical. Always ensure that your work complies with ethical guidelines and legal requirements
Technologies used in the project:
- python
- vscode