This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided | |
* by Oracle in the LICENSE file that accompanied this code. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.deoptimizeEverything() | |
Java.perform(function () { | |
hookCrypto() | |
enable_cert_unpinning() | |
}); | |
var printBacktrace = function () { | |
Java.perform(function() { | |
var JLog = Java.use('android.util.Log'), JException = Java.use('java.lang.Exception'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from adb.client import Client as AdbClient | |
from sys import * | |
import os | |
if __name__=="__main__": | |
print("[*] Simple script to automatize LD_PRELOAD process on android applications.") | |
if len(argv)!=3: | |
print("[-] Specify PACKAGE_NAME and PATH_LIB.") | |
exit(0) | |
package=argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Script generated by the Inno Setup Script Wizard. | |
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | |
#define MyAppName "{APPNAME}" | |
#define MyAppVersion "{VERSION}" | |
#define MyAppPublisher "{PUBLISHER}" | |
#define MyAppURL "{URL}" | |
[Setup] | |
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by jcalabres | |
""" | |
$1=APK PATH | |
""" | |
import os | |
from os import system | |
from sys import * | |
PRODUCTION=False | |
UNPACKER="FRIDA-DEXDump" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb root | |
function jdwp-attach(){ | |
adb jdwp | |
adb forward tcp:7777 jdwp:$1 | |
echo "suspend"; cat; } | jdb -attach localhost:7777 | |
} | |
function get-package(){ | |
adb shell pm list packages | grep $1 | cut -d ":" -f 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process.enumerateModules({ | |
onMatch: function(module){ | |
console.log('Module name: ' + module.name + " - " + "Base Address: " + module.base.toString()); | |
if (module.name=="libnative-lib.so"){ | |
var secret="" | |
Interceptor.attach(module.base.add(0x06cf), function() { | |
var x = this.context.eax; | |
var y = this.context.ecx; | |
var z = x ^ y; | |
secret+=String.fromCharCode(z) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout --orphan latest_branch && \ | |
git add -A && \ | |
git commit -am "initial commit" && \ | |
git branch -D master && \ | |
git branch -m master && \ | |
git push -f origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download all public gist for a user | |
# by using v3 gist api (https://developer.github.com/v3/gists/) | |
import requests, json | |
from pathlib import Path | |
headers = {"content-type" : "application/json"} | |
url = 'https://api.github.com/users/jcalabres/gists' | |
r = requests.get(url, headers = headers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#by jcalabres | |
import ghidra.framework.Platform | |
fileinput=open("/root/ghidra_scripts/functions.txt","r") | |
fileoutput=open("/root/ghidra_scripts/functions_out.txt","w") | |
separator = "*" | |
def printAndWrite(line): | |
print(line) | |
fileoutput.write(line+"\n") |
NewerOlder