This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 | |
set guioptions-=r "remove right-hand scroll bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) + \ |
OlderNewer