Skip to content

Instantly share code, notes, and snippets.

@spnow
spnow / quick_ioctl_decoder.py
Created August 17, 2016 10:23 — forked from herrcore/quick_ioctl_decoder.py
IDA Python plugin - Decode IOCTL Codes
############################################################################################
##
## Quick IOCTL Decoder!
##
## All credit for actual IOCTL decode logic:
## http://www.osronline.com/article.cfm?article=229
##
##
## To install:
## Copy script into plugins directory, i.e: C:\Program Files\IDA 6.8\plugins
@spnow
spnow / analyze.py
Created August 17, 2016 10:28 — forked from endeav0r/analyze.py
This is a quick, static taint-analysis script targetting PHP as seen on: http://rainbowsandpwnies.com/~endeavor/blog/finding-sqli-through-taint-analysis.html . It may be a bit hackish.
from phply.phpparse import parser
import phply.phplex as phplex
from phply.phpast import *
import sys
import copy
import os.path
import pickle
import subprocess
import traceback
@spnow
spnow / crackme.c
Created August 17, 2016 10:50 — forked from trietptm/crackme.c
A demonstration of Markus Gaasedelen's method for reversing a binary - see URL in find_password.py
#include <stdlib.h>
#include <stdio.h>
void main(int argc, char *argv[])
{
if( argv[1][0] == 'f' ) {
if( argv[1][1] == 'o' ) {
if( argv[1][2] == 'o' ) {
if( argv[1][3] == '\x00' ) {
printf( "good password\n" );
@spnow
spnow / bluelog_stdout_parser.py
Created August 17, 2016 10:52 — forked from TylerOderkirk/bluelog_stdout_parser.py
bluelog_stdout_parser.py
#!/usr/bin/env python
import subprocess, time, os, sys
#TODO: kill any already-running bluelog instances
cmd = ['./bluelog', '-m', '-t', '-f', '-a0', '-n', '-v']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
mru_macs = []
@spnow
spnow / notes.md
Created August 17, 2016 10:57
z3 for ctf
@spnow
spnow / ODbgScript.txt
Created August 17, 2016 17:31 — forked from trietptm/ODbgScript.txt
ODbgScript.txt
-------------------------------
ODbgScript english plugin by E3
site : http://odbgscript.sf.net
-------------------------------
1. About OllyScript and ODbgScript
2. Status
2.1 What's new?
3. Documentation
3.1 Language
@spnow
spnow / disable_wsh.reg
Created August 17, 2016 17:31 — forked from trietptm/disable_wsh.reg
Disable Windows Script Host (for prevention of recent ransomware phishing attacks)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows Script Host\Settings]
"Enabled"="0"
@spnow
spnow / zeus.osc
Created August 17, 2016 17:31 — forked from trietptm/zeus.osc
ODbgScript for unpacking Zeus malware (ResumeThread)
// Generic Zeus malware unpacker (ResumeThread)
// by Miroslav Stampar (@stamparm)
// http://about.me/stamparm
VAR ResumeThread
VAR msg
VAR xname
VAR xloc
VAR xsize
# -*- coding: utf-8 -*-
# LICENSE INFORMATION:
# Please treat this script as CC0
from immlib import *
imm = Debugger()
class KamikazeHook(LogBpHook):
@spnow
spnow / Process32First_Process32Next.py
Created August 17, 2016 17:35 — forked from trietptm/Process32First_Process32Next.py
Process32First_Process32Next.py
from immlib import *
from immutils import *
import getopt
import pefile
imm = Debugger()
def main(args):
if args:
usage()