A simple hexdump module for Python.
The preferred installation method is:
pip install simple-hexdump
# see https://httptoolkit.tech/blog/chrome-android-certificate-transparency/ | |
# put your Burp cacert.der in the current working directory! | |
FINGERPRINT=`openssl x509 -in cacert.der -inform der -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64` | |
echo "chrome --ignore-certificate-errors-spki-list=$FINGERPRINT" > chrome.sh | |
adb push chrome.sh /data/local/tmp/chrome.sh | |
adb shell su -c cp /data/local/tmp/chrome.sh /data/local/chrome-command-line | |
adb shell su -c cp /data/local/tmp/chrome.sh /data/local/android-webview-command-line |
#!/bin/bash | |
# | |
# patch ramdisk.img (for installing Magisk on x64 Android emulator) | |
# | |
# x86_64 on Android 12 (API Level 32) is supported/tested currently | |
# | |
# install AVD: | |
# | |
# sudo sdkmanager 'system-images;android-32;google_apis_playstore;x86_64' |
import android.app.AppComponentFactory; | |
import android.content.pm.ApplicationInfo; | |
import android.util.Log; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.Channels; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.zip.ZipFile; |
// Mangled as __dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_mbS5_ in /system/bin/linker64 | |
template <typename F> | |
static void call_array(const char* array_name __unused, | |
F* functions, | |
size_t count, | |
bool reverse, | |
const char* realpath) { | |
if (functions == nullptr) { | |
return; |
#define _GNU_SOURCE | |
#include <bcc/libbpf.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <linux/bpf.h> | |
#include <linux/bpf_perf_event.h> | |
#include <linux/hw_breakpoint.h> | |
#include <linux/perf_event.h> | |
#include <pthread.h> | |
#include <signal.h> |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
#include <iostream> | |
#include <iomanip> | |
#include <cstdlib> | |
#include <cstdint> | |
#include <cstring> | |
#include <jni.h> | |
#include <set> | |
#include "LIEF/ELF.hpp" |
#!/usr/bin/python3 | |
''' | |
author: ceres-c | |
usage: ./frida-extract-keystore.py | |
Once the keystore(s) have been exported you have to convert them to PKCS12 using keytool | |
''' | |
import frida, sys, time |