Skip to content

Instantly share code, notes, and snippets.

@endeav0r
endeav0r / gist:6213b4069ccce06d309c
Created October 20, 2014 13:22
luadebug and queso
require ('ldebug')
require ('lqueso')
function map (f, t)
local result = {}
for k,v in pairs(t) do
result[k] = f(v)
end
return result
end
@endeav0r
endeav0r / gist:7e7c92ecbec2cceca7ea
Created October 13, 2014 04:08
BEAT NAVY! License
BEAT NAVY! License
Copyright (c) 2014, Alex Eubanks <[email protected]>
BEAT NAVY!
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer, to
@endeav0r
endeav0r / gist:5279181
Created March 31, 2013 02:05
requires darm ( https://github.com/jbremer/darm ). set start and end to the beginning of PLT entries, and end to the end of PLT. will go through and label PLT entries in hopper.
import darm
start = 0xbac0
end = 0xc860
doc = Document.getCurrentDocument()
seg = doc.getCurrentSegment()
def label_plt_entry(adr) :
@endeav0r
endeav0r / analyze.py
Created March 15, 2013 21:39
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
@endeav0r
endeav0r / solve.py
Created December 5, 2011 19:35
Operating Systems Project 5 Solution
import binascii
import subprocess
import sys
bench_files = ['bench_database.txt',
'bench_kiosk.txt',
'bench_mixed.txt',
'bench_test.txt',
'bench_webapp.txt']
@endeav0r
endeav0r / ntfind.py
Created November 30, 2011 02:07
Takes a case-insensitive plaintext (perhaps from a LM hash) and a corresponding NT hash, and finds the appropriate case-sensitive password
#!/usr/bin/python
import hashlib
import sys
if len(sys.argv) != 3 :
print("usage: " + sys.argv[0] + " <CASE_INSENSITIVE_PASSWORD> <NTLM_HASH>")
sys.exit(-1)
def nt_hash (plaintext) :
@endeav0r
endeav0r / hud.vim
Created October 20, 2011 03:56
VIM Syntax Highlighting for hudson
" Vim syntax file
" Language: Hudson
" Maintainer: Alex Eubanks <endeavor at rainbowsandpwnies dot com>
" Last Change: Oct 19 2011
" Comments: Modified from lua.vim found in default arch repos 19 Oct 2011
syntax clear
syn case match
@endeav0r
endeav0r / hex.c
Created June 24, 2011 18:13
display file in hex
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char * argv[]) {
int filesize;
int i;
unsigned char byte;
char string[41];