View csaw2017-quals tablez.py
# Run from within gdb (e.g. `pi <enter>` and paste)
need = [0x27, 0xb3, 0x73, 0x9d, 0xf5, 0x11, 0xe7, 0xb1, 0xb3, 0xbe, 0x99, 0xb3, 0xf9, 0xf9, 0xf4, 0x30, 0x1b, 0x71, 0x99, 0x73, 0x23, 0x65, 0x99, 0xb1, 0x65, 0x11, 0x11, 0xbe, 0x23, 0x99, 0x27, 0xf9, 0x23, 0x99, 0x05, 0x65, 0xce]
map = {}
for i in range(0xfe):
r = gdb.execute("call get_tbl_entry({})".format(i), False, True)
v = int(r.rstrip().split()[-1], 16)
map[v] = i
s = ""
View Tokyo Western 2017 - rev rev rev.py
# Taken from the binary
gh = "A)\xd9e\xa1\xf1\xe1\xc9\x19\t\x93\x13\xa1\t\xb9I\xb9\x89\xdda1i\xa1\xf1q!\x9d\xd5=\x15\xd5"
mh = ""
def mirror_bits(c):
return (
(c & 1) << 7 |
(c & 2) << 5 |
(c & 4) << 3 |
(c & 8) << 1 |
View Polictf 2017 - Tower.py
from pwn import *
from collections import defaultdict
def add_row(graph, y, row):
for x, col in enumerate(row):
true_x = x/2
if col == " ": # Can do down or left
if not x & 1: # This is the left wall part
View delphi.py
# From BsidesSF CTF 2017
import itertools
import requests
import sys
from binascii import hexlify, unhexlify
uh = unhexlify
h = hexlify
View bt.py
import sys
from pwn import *
def exploit():
r.recvuntil("start: ")
addr = r.recv(10)
addr = int(addr, 16)
print hex(addr)
View pylint.md

Original report:

************* Module gef
W:2774, 0: TODO: add more customizable items (fixme)
W:100, 0: Anomalous backslash in string: '\-'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
C:173, 0: Exactly one space required around comparison
    if len(sys.argv)==2 and sys.argv[1]=="--update":
                    ^^ (bad-whitespace)
C:173, 0: Exactly one space required around comparison
View RC3-cardmaker.py
#!/usr/bin/env python
import sys
from pwn import *
port = 8080
strtol_addr = 0x6030B0
View soln.py
#!/usr/bin/env python
import sys
from pwn import *
ADD = "1"
VIEW = "3"
QUIT = "4"
View Makefile
#
# Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
#
# This file is part of simavr.
#
# simavr is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
View ultra-encryption.py
# This was done after the ctf
cts = [
"BUEF9r9AOjw6w8XSgaZJeD==",
"B9cb4emh7PKbfdg/OmKwl1==",
"CjbfcYrqVbnZt04GGy5Esn==",
"EMmqj/C0uWU8u2CMsvVtwl==",
"EkkUe6ukmUA90AvCXnJSTG==",
"Exjf76M+iY5s54GPGewKzj==",
"KLBgknyMMvzHtcHPMQeEl2==",