This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''' | |
PwnPineappleApplePwn | |
https://www.youtube.com/watch?v=0E00Zuayv9Q | |
'''' | |
from pwn import * | |
context.arch = 'amd64' | |
#context.log_level = 'debug' | |
p = process('./tinypad') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |