Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@seanwupi
seanwupi / picturemgr2.py
Last active August 16, 2017 08:14
DEFCON 2017 CTF picturemgr sprintf Stack Overflow Exploit
#!/usr/bin/env python
# By Sean @ HITCON
import re
import socket
import sys
import string
import random
@seanwupi
seanwupi / spectre-gen.py
Created April 21, 2019 15:59
Plaid CTF 2019 Wirteups
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwn import *
import re
context.arch = "amd64"
register = {"r8":0,"r9":1,"r10":2,"r11":3,"r12":4,"r13":5,"r14":6,"r15":0x7}
idx = 0
def epilogue():
# pop r15_r14_r13_r12_r11_r10_r9_r8_rbp_rdi_rsi_ret
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.