This Python project implements a basic remote shell using sockets for communication. It allows for remote command execution, file uploads, and downloads.
-
Server Setup:
-
Run the
client.pyscript on the machine you want to control remotely.python client.py
-
The server will listen for incoming connections on IP address
192.168.1.12and port5555.
-
-
Client Setup:
-
Run the
client.pyscript on the target machine. -
The client will connect to the server, and you will get a remote shell prompt.
-
-
Commands:
-
Enter commands on the shell, and they will be executed on the target machine.
-
Supported commands:
quit: Terminate the connection.clear: Clear the screen.cd <directory>: Change the current working directory on the target machine.download <file>: Download a file from the target machine.upload <file>: Upload a file to the target machine.
-
server.py: Contains the server-side code.client.py: Contains the client-side code.
This project relies on the following Python modules, which are part of the standard library:
socketjsonos
This project is intended for educational purposes only. Use it responsibly and ensure that you have appropriate authorization before attempting to control remote machines.