View macho.js
// to speed up, I removed all data validation
function MemoryBuffer(address, size) {
this.base = address
if (!size) {
// const range = Process.findRangeByAddress(address)
// if (!range)
// throw new Error('invalid address: ' + address)
View Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := loader
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := loader.c
LOCAL_CPPFLAGS := -std=gnu++0x -Wall
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog -pie -fPIE
View iOS-checksec.py
#!/usr/bin/env python3
import struct
import lief
from lief.MachO import LOAD_COMMAND_TYPES, HEADER_FLAGS
def check(filename):
macho = lief.parse(filename)
# check this?
View fixheader.sh
#!/bin/bash
#
# NOTE: You need to `brew install gnu-sed` on Mac
#
# by @codecolorist
# http://github.com/chichou
#
# fix some compilation error of headers generated by class-dump
#
# usage: fixheader.sh DIRECTORY
View httplib2_sock.diff
diff --git a/python2/httplib2/socks.py b/python2/httplib2/socks.py
index ab516ca..4e8048c 100644
--- a/python2/httplib2/socks.py
+++ b/python2/httplib2/socks.py
@@ -411,6 +411,11 @@ class socksocket(socket.socket):
# Do a minimal input check first
if (not type(destpair) in (list,tuple)) or (len(destpair) < 2) or (not isinstance(destpair[0], basestring)) or (type(destpair[1]) != int):
raise GeneralProxyError((5, _generalerrors[5]))
+
+ if isinstance(destpair[0], unicode):
View google-code-stylebot.css
/**
Stylebot for Chrome:
https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha
Stylish for Safari:
http://sobolev.us/stylish/
**/
View nameit.py
#!/usr/bin/env python3
# git clone https://github.com/dwyl/english-words.git
# cd english-words
# wget https://gist.github.com/ChiChou/d3d90b026f45017a98e8e39157d3caae/raw/nameit.py
# pip3 install lxml beautifulsoup4 requests
# ./nameit.py
import random
import os
View google_query_parser.py
#!/usr/bin/env python
import shlex
def parse_query(query):
tokens = shlex.split(query)
dsl = {'search': []}
key = ''
for token in tokens:
if token.endswith(':'):
View eval.stripper.js
/**
* requires node.js with ES6 support, or babel
*/
'use strict';
const vm = require('vm');
const fs = require('fs');
const __loggers__ = {};
function log(tag) {
View dark.clr
[DISASM]
626262 //Instruction
d28b26 //Directive
756e58 //Macro name
626262 //Register name
a1a193 //Other keywords
969483 //Dummy data name
d28b26 //Dummy code name
d28b26 //Dummy unexplored name
d28b26 //Hidden name