This file contains hidden or 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
#!/system/bin/sh | |
# | |
# disables all trusted root certs on your Android 4.x | |
# by jduck of #droidsec | |
# | |
# requires a working openssl binary in /data/local/tmp | |
# (you can build one from AOSP "make openssl") | |
# | |
# run this as system!! for example: | |
# shell@flo:/data/local/tmp $ su system -c ./trustnocerts.sh |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am jduck on github. | |
* I am jduck (https://keybase.io/jduck) on keybase. | |
* I have a public key whose fingerprint is 6418 2CD3 AD92 C3E4 C60A 42BF 1373 2308 34DA 0132 | |
To claim this, I am signing this object: |
This file contains hidden or 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
# | |
# patch adb to: | |
# 1. use busybox to set the same terminal size | |
# 2. change directory to /data/local/tmp automatically | |
# | |
# NOTE: needs an executable busybox in /data/local/tmp | |
# | |
# Joshua J. Drake - jduck | |
# |
This file contains hidden or 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
#!/usr/bin/env python | |
# | |
# Simple utility to disassemble a raw bytecode file using Capstone. | |
# | |
# -jduck | |
# | |
import argparse | |
import capstone | |
import struct |
This file contains hidden or 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
# dev:~/android/source/external/strace$ git diff | |
# | |
# to apply & build: | |
# | |
# dev:~/android/source/external/strace$ patch -p1 < strace-static.diff | |
# dev:~/android/source/external/strace$ cd ../.. | |
# dev:~/android/source$ mmm external/strace | |
# | |
diff --git a/Android.mk b/Android.mk | |
index 5274280..4f1707e 100644 |
This file contains hidden or 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
<!-- remove this part! | |
Place this in $AOSPMIRROR/.repo/manifests/default.xml | |
Created with: | |
$ cd ~/android/source | |
$ repo init -u $AOSPMIRROR/platform/manifest.git -b android-4.4_r1 | |
$ cd $AOSPMIRROR/.repo/manifests | |
$ cat ~/android/source/.repo/manifests/default.xml | sed -E 's/ path=\"[^\"]+\"//g' | ^Cd -E 's/ groups=\"[^\"]+\"//g' > default.xml |
NewerOlder