Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import pwn
from pwn import *
p = pwn.process("./flea_attack.elf")
# p = pwn.remote("problem.harekaze.com",20175)
raw_input("<ATTACH NOW>")
p.recv()
# the size is 0x04.
#!/usr/bin/python
import pwn
from pwn import *
p = pwn.process("./flea_attack.elf")
# p = pwn.remote("problem.harekaze.com",20175)
raw_input("<ATTACH NOW>")
p.recv()
# the size is 0x04.
from pwn import *
from struct import *
#https://blog.techorganic.com/2016/03/18/64-bit-linux-stack-smashing-tutorial-part-3/
#NX is on
#64-bit bin
#going to require us to ROP!
#there is 184 bytes between our input_buf and our saved EIP.
#p 0x7fffffffe458 - 0x7fffffffe3a0 = 184
#the helper function allows us to leak _i think_
#!/usr/bin/python
import sys
nc = 0
f = open("paths.lst","r")
for l in f.readlines():
data_text = l.rstrip().split(" d=\"")
if len(data_text) <= 1:
#!/usr/bin/python
import pwn
import struct
OFFSET_HEADSHOT = struct.pack("<L",0x080483A0)
OFFSET_RETN = struct.pack("<L",0x080484EA)
OFFSET_PLT = struct.pack("<L",0x08049874)
OFFSET_ROPBREAK = struct.pack("<L",0x41424344)
#include <Hash.h>
void setup() {
Serial.begin(9600);
Serial.println("Welcome to the glitchtastic adventure!");
}
int g1 = 0;
String data = "A";
#!/usr/bin/python -w
f = open("1.bin","rb")
data = f.read()
f.close()
out = ""
for i in range(0,23):
ref_char = data[(i * 17) + 4]
#!/usr/bin/python
import pwn
target = "a?!=-,':_ .%($&/+)!0*#;$!"
soln = {}
p = pwn.remote("neverending.tuctf.com",12345)
#!/usr/bin/env python
# checkkey(S,R) :- lt_paren(S,S1), key(S1,S2,V1), rt_paren(S2,R), V1 is 82944.
# key(S,R,V) :- oct(S,S1,V1), amper(S1,S2), oct(S2,R,V2), V is V1 * V2.
# oct(S,R,V) :- quad(S,S1,V1), hyphen(S1,S2), quad(S2,R,V2), V is V1 + V2.
# quad(S,R,V) :- pair(S,S1,V1), comma(S1,S2), pair(S2,R,V2), V is V1* V2.
# pair(S,R,V) :- digit(S,S1,V1), digit(S1,R,V2), V is V1 + V2.
# nc grammarlesson.tuctf.com 6661
# (96,57-57,72&35,53-79,77)
#!/usr/bin/env python
from z3 import *
import string
solver = z3.Solver()
for x in range(0,5):
for y in range(0,5):
varname = "mat_%i_%i" % (x,y)
globals()[varname] = BitVec(varname,32)