- This is to demonstrate how to work with
angr
on a static/stripped binary
- Source
angrtest.c
#include <stdio.h>
function ProgressHack() { | |
progressObject = null | |
intProgress = Interceptor.attach(Module.findExportByName("libRealRacing3.so", "_ZNK10Characters14CareerProgress16IsStreamUnlockedEi"), { | |
onEnter: function(args) { | |
progressObject = args[0] | |
}, | |
onLeave: function(result) { | |
} | |
}); |
function unlockHack() { | |
playerObject = null | |
interceptPlayer = Interceptor.attach(Module.findExportByName("Fruit", "_ZN16FruitNinjaPlayer11GetInstanceEv"), { | |
onEnter: function(args) { | |
}, | |
onLeave: function(result) { | |
playerObject = ptr(result.toInt32()) | |
} | |
}); |
### Add this specific input | |
- input_type: log | |
paths: | |
- /var/log/ufw.log | |
tags: ["iptables"] |
#!/bin/bash | |
# | |
# Script requires `brew` | |
# - `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` | |
# | |
# Variables | |
# - $IPA -> Source IPA | |
# - $MOBILEPROVISION -> Source embedded.mobileprovision | |
# find ~/Library/Developer/Xcode | grep embedded.mobileprovision |
//Use this function to show an object's contents. | |
function showObject(obj) { | |
var result = null | |
if (obj && obj.constructor === Array) { | |
result = [] | |
} | |
else if (obj === null) { | |
return null | |
} | |
else { |
function getGenericInterceptor(className, func, parameters) { | |
args = [] | |
for (i = 0; i < parameters.length; i++) { | |
args.push('arg_' + i) | |
} | |
var script = "result = this.__FUNCNAME__(__SEPARATED_ARG_NAMES__);\nlogmessage = '__CLASSNAME__.__FUNCNAME__(' + __SEPARATED_ARG_NAMES__ + ') => ' + result;\nconsole.log(logmessage);\nreturn result;" | |
script = script.replace(/__FUNCNAME__/g, func); | |
script = script.replace(/__SEPARATED_ARG_NAMES__/g, args.join(', ')); | |
script = script.replace(/__CLASSNAME__/g, className); |
FROM ubuntu:latest | |
MAINTAINER Frank Spierings | |
# Base setup | |
RUN dpkg --add-architecture i386 && \ | |
apt-get update && apt-get upgrade -y && \ | |
apt-get install libstdc++6:i386 -y | |
# Locales setup | |
RUN apt-get install locales -y && locale-gen en_US.UTF-8 |
ext.dtd
ext.dtd