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 | |
import Image | |
import sys | |
def xorImage( infile ): | |
try: | |
im = Image.open( infile ) | |
except IOError: | |
print "Cant load", infile |
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/python | |
import zlib,sys,os | |
print 'Usage: %s <infile> <offset-addr> <length> <outfile>' % sys.argv[0] | |
if len(sys.argv) < 5: | |
exit(-1) | |
fr = open(sys.argv[1], 'rb') |
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
<!-- | |
... | |
--> | |
<option id="gnu.c.compiler.option.include.paths.651068615" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath"> | |
<listOptionValue builtIn="false" value="/usr/local/include/opencv"/> | |
</option> | |
<!-- | |
... | |
--> | |
<option id="gnu.cpp.link.option.libs.2101947007" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs"> |
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
#opencv | |
import cv2.cv as cv | |
import cv2 | |
import numpy as np | |
def build_filters(): | |
filters = [] | |
ksize = 31 | |
for theta in np.arange(0, np.pi, np.pi / 32): |
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
# intervals | |
equal.count(seq(0,10,1),4) |
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/python | |
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions. | |
# Michael Davis (mike.philip.davis@gmail.com) | |
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import select |
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 python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
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
# | |
# Upload a sample to VirusTotal and pretty print the report. All in a handy alias. | |
# | |
# Dependecies: | |
# | |
# * python > 2.7 | |
# * pip install Pygments==1.4 | |
# * curl | |
# * VirusTotal API key | |
# |
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
# ---------------------------------------------------------------------- | |
# Radare2 | |
# (Quick n'dirty) Cheat-Sheet | |
# lucam.ko@gmail.com | |
# ---------------------------------------------------------------------- | |
# See http://radare.org/doc/html/contents.html for details | |
# ---------------------------------------------------------------------- | |
# MISC |
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
/* | |
* Optimized egghunt shellcode for win32 (32 bytes) | |
* | |
* Credits: http://www.hick.org/~mmiller/shellcode/win32/egghunt_syscall.c | |
* | |
* Description | |
* | |
* This code works by abusing an NT syscall (NtAccessCheckAndAuditAlaram) | |
* whereby it uses the kernel to validate whether or not a set of addresses | |
* is valid, and, if it is, whether or not they match the 8 byte egg we're |