Created
March 7, 2017 09:54
-
-
Save barkink/da085ade8ac70a1737036d90b4377878 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import * | |
c = CDLL("libc.so.6") | |
fd = c.syscall(319,"tempmem",0) | |
c.sendfile(fd,0,0,0x7ffff000) | |
c.fexecve(fd,byref(c_char_p()),byref(c_char_p())) | |
print "fexecve failed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment