Skip to content

Instantly share code, notes, and snippets.

View qemu-config-windows-guest.txt
configure bridged network as described here:
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto br0
iface br0 inet dhcp
pakt /
Created Aug 25, 2015
control eip with a bug in json encoding
import _json as j
import array
import struct
import sys
ver = sys.version_info[0]
eip = 0x11223344
eip_control = struct.pack("@I", 0) + \
struct.pack("@I", eip) + \
pakt /
Created Aug 15, 2015
Direct read/write access to Python's memory
# read/write access to python's memory, using a custom bytearray.
# some code taken from:
# tested on:
# Python 2.7.10, ubuntu 32bit
# Python 2.7.8, win32
# example of correct output:
# inspecting int=0x41424344, at 0x0228f898
View fread.diff
diff --git a/pintraces/pin_taint.cpp b/pintraces/pin_taint.cpp
index 659ddc1..3a69392 100644
--- a/pintraces/pin_taint.cpp
+++ b/pintraces/pin_taint.cpp
@@ -218,6 +218,21 @@ context TaintTracker::getMemory()
FrameOption_t TaintTracker::introMemTaint(uint32_t addr, uint32_t length, const char *source, int64_t offset) {
FrameOption_t fb;
+ uint32_t buffer_size;
+ uint8_t value;
sudo apt-get install aptitude curl vim git subversion zsh
sudo bash
curl -L | sh
sudo chsh -s /usr/bin/zsh
rm .zshrc
git clone
ln -s vim/.vimrc .vimrc
View .zshrc
# Path to your oh-my-zsh configuration.
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# Example aliases
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
pakt /
Created Nov 9, 2012
fixed asan_symbolize
#!/usr/bin/env python
#===- lib/asan/scripts/ -----------------------------------===#
# The LLVM Compiler Infrastructure
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
import bisect
View gist:3181434
import itertools as it
from z3 import *
SEED = 0x48AEEFD486289CFB
TAPS = 0x9B1ADEDF847D3481
def possible_buttons():
possible_taps = []
for i in range(16):
pakt / .vimrc
Created Dec 14, 2011
simple linux .vimrc
View .vimrc
filetype plugin on
set enc=utf-8
set relativenumber "beware: mutually exclusive with :set number :p
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar