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 |
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
#!/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
# | |
# 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
### 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
#!/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
#!/usr/bin/env ruby | |
# | |
# The goal of this script is to symlink various things into Metasploit's | |
# "lib" directory. Since it is first in the include path, putting symlinks | |
# there effectively eliminates tons of failed open(2) system calls. | |
# | |
# There are several scenarios to deal with here. Each has to be treated | |
# specially. | |
# | |
# 1. Gems - When using RVM, they are under some place in $GEM_HOME. They are |
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
--- src/uniq.c.orig 2013-01-30 18:46:24.000000000 -0600 | |
+++ src/uniq.c 2015-02-23 02:30:06.000000000 -0600 | |
@@ -66,6 +66,7 @@ | |
enum countmode | |
{ | |
count_occurrences, /* -c Print count before output lines. */ | |
+ count_syslog, /* -l Print "last line repeated XX times" */ | |
count_none /* Default. Do not print counts. */ | |
}; | |
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 ruby | |
# | |
# PoC to show bug in ProgressBar/Zlib handling | |
# | |
# Joshua J. Drake (jduck) | |
# | |
COMPRESSED_WRONG_SIZE_URL = "http://sourceforge.net/projects/pocfiles/files/" | |
require 'uri' |
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
diff --git a/project.py b/project.py | |
index 8b02b7c..890de8c 100644 | |
--- a/project.py | |
+++ b/project.py | |
@@ -1878,6 +1878,7 @@ class Project(object): | |
ssh_proxy=ssh_proxy) | |
ret = gitcmd.Wait() | |
if ret == 0: | |
+ print(gitcmd.stderr, file=sys.stderr) | |
ok = True |
OlderNewer