View qemu-config-windows-guest.txt
configure bridged network as described here: | |
https://wiki.debian.org/QEMU#Host_and_guests_on_same_network | |
$ cat /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
auto br0 | |
iface br0 inet dhcp |
View eip_json.py
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) + \ |
View rdwr.py
# | |
# read/write access to python's memory, using a custom bytearray. | |
# some code taken from: http://tinyurl.com/q7duzxj | |
# | |
# 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; |
View install-stuff.sh
#!/bin/bash | |
sudo apt-get install aptitude curl vim git subversion zsh | |
sudo bash | |
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh | |
exit | |
sudo chsh -s /usr/bin/zsh | |
rm .zshrc | |
wget https://gist.github.com/pakt/6580295/raw/9c68359dd26720ab779cd5efbc98c15d555b3498/.zshrc | |
git clone https://github.com/pakt/vim.git | |
ln -s vim/.vimrc .vimrc |
View .zshrc
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# 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. | |
ZSH_THEME="blinks" | |
# 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 | |
HISTCONTROL=ignoreboth |
View asan_symbolize.py
#!/usr/bin/env python | |
#===- lib/asan/scripts/asan_symbolize.py -----------------------------------===# | |
# | |
# 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 | |
MASK=(1<<64)-1 | |
def possible_buttons(): | |
possible_taps = [] | |
for i in range(16): |
View .vimrc
" http://vimdoc.sourceforge.net/htmldoc/starting.html#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 |
NewerOlder