Skip to content

Instantly share code, notes, and snippets.

View nick0ve's full-sized avatar

Nicola Vella nick0ve

View GitHub Profile
@nick0ve
nick0ve / frida-inject.js
Created August 29, 2021 11:56
wmctf - Vault Game - Android
Java.perform(function () {
// Get PINActivity instance
var PINActivityInstance;
Java.choose('org.wormcon.vaultgame.PINActivity', {
onMatch: function (instance) {
PINActivityInstance = instance;
},
onComplete: function () { }
});
# Create a stub hook for exported functions, with a poormans backward-edges CFI check
#@author nick0ve
#@category elf
import os
from ghidra.program.model.symbol import RefType
from ghidra.app.util.opinion import ElfLoader
from ghidra.util import NumericUtilities
import dataclasses
class int32(int):
@staticmethod
def p(x):
return p32(x)
class int16(int):
@staticmethod
def p(x):
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software