Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am zzoru on github.
* I am zzoru (https://keybase.io/zzoru) on keybase.
* I have a public key whose fingerprint is C3D4 A7D9 B71F 44BE CAAD C39C 03B8 1F15 DD56 666E
To claim this, I am signing this object:
''''
PwnPineappleApplePwn
https://www.youtube.com/watch?v=0E00Zuayv9Q
''''
from pwn import *
context.arch = 'amd64'
#context.log_level = 'debug'
p = process('./tinypad')
@zzoru
zzoru / feap.py
Last active May 9, 2016 09:07
asis ctf 2016
from pwn import *
address = 'feap.asis-ctf.ir'
port = 7331
context(os='linux',arch='amd64')
def debug(address):
gdb.attach(p, 'b *0x%x' % address)
raw_input()
#!/usr/bin/env python
import sys
class Memoize:
def __init__(self, fn):
self.fn = fn
self.memo = {}
def __call__(self, arg):
if arg not in self.memo:
self.memo[arg] = self.fn(arg)
@zzoru
zzoru / gist:9b0bf4182fb2cdd2aa07
Last active March 10, 2016 16:46
mma CTF 1st 2015 RPS write up
from pwn import *
import ctypes
import time
#conn = process('./rps')
conn = remote('milkyway.chal.mmactf.link', 1641)
seed = 'a' * 4
LIBC = ctypes.cdll.LoadLibrary("/lib/x86_64-linux-gnu/libc.so.6")
LIBC.srand(u32(seed))