Skip to content

Instantly share code, notes, and snippets.

Grazfather

Block or report user

Report or block Grazfather

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View install-trinity.sh
#!/bin/bash
#
# Install/update Capstone/Keystone/Unicorn from GitHub with Python/Python3 bindings
# First time, run:
# $ sudo apt-get install git cmake gcc g++ pkg-config libglib2.0-dev
#
LOGFILE=/tmp/update-trinity.log
NB_CPU="$(grep -c processor /proc/cpuinfo)"
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
@Grazfather
Grazfather / delphi.py
Last active Feb 22, 2017
BSsidesSF CTF 2017 "delphi-status" crypto 250
View delphi.py
# From BsidesSF CTF 2017
import itertools
import requests
import sys
from binascii import hexlify, unhexlify
uh = unhexlify
h = hexlify
@Grazfather
Grazfather / bt.py
Last active Feb 22, 2017
BsidesSF 2017 CTF b-64-b-tuff solution
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
@Grazfather
Grazfather / RC3-cardmaker.py
Last active Jun 4, 2017
RC3 PWN 500 Card maker solution
View RC3-cardmaker.py
#!/usr/bin/env python
import sys
from pwn import *
port = 8080
strtol_addr = 0x6030B0
@Grazfather
Grazfather / soln.py
Created Nov 21, 2016
RC3 IMS-easy PWN 150 solution
View soln.py
#!/usr/bin/env python
import sys
from pwn import *
ADD = "1"
VIEW = "3"
QUIT = "4"
@Grazfather
Grazfather / Makefile
Created Nov 19, 2016
QiwiCTF 2016 RE300_3 simulation code
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.
#
You can’t perform that action at this time.