Skip to content

Instantly share code, notes, and snippets.

Avatar

Joshua J. Drake jduck

View GitHub Profile
View adis.py
#!/usr/bin/env python
import sys
sys.path.append('/home/jdrake/public/tools/00_people/aquynh/capstone/bindings/python')
import argparse
import capstone
import struct
def arm_mode(string):
View 0001-rebase-http-proxy-patch.patch
From 6b4eba818a99db7cd0b268d5410b0b2e1aa1aab9 Mon Sep 17 00:00:00 2001
From: "Joshua J. Drake" <github.jdrake@qoop.org>
Date: Wed, 12 Nov 2014 19:31:56 -0600
Subject: [PATCH] rebase http-proxy patch
---
lib/rex/io/stream_server.rb | 9 ++
lib/rex/proto.rb | 2 +
lib/rex/proto/http/server.rb | 7 +
lib/rex/proto/proxy.rb | 77 +++++++++++
View sf3-003_0001-Correct-the-length-calculation.patch
From d45ffefae10a9a0fba279fb9ab249a70bd52e060 Mon Sep 17 00:00:00 2001
From: "Joshua J. Drake" <android-open-source@qoop.org>
Date: Sat, 15 Aug 2015 07:37:55 -0500
Subject: [PATCH] Correct the length calculation
In some cases the utf16_to_utf8_length incorrectly increments the src pointer.
This results in the length of the utf8 string being incorrect and can lead to
buffer problems in calling code.
Change-Id: Id1170658aa5b1d56acfd3d882e788632ca42b7eb
View extract-kernel.sh
#!/bin/sh
IMG=zImage
[ -n "$1" ] && IMG="$1"
binwalk -y gzip -e "$IMG"
mv _"$IMG".extracted/* piggy && rmdir _"$IMG".extracted
if [ -f piggy ]; then
ls -l piggy
[ -f piggy ] && ( strings piggy | grep 'Linux version' )
@jduck
jduck / nexus-ota-updates-2016-08-05.md
Last active Aug 15, 2016
August 2016 Nexus OTA Updates - Security Level 2016-08-05
View nexus-ota-updates-2016-08-05.md
@jduck
jduck / iovyroot-less-threads.diff
Last active Jul 21, 2016
Make iovyroot more efficient...
View iovyroot-less-threads.diff
commit 9bea387245e24c62fc203e7d57a10368acad5c6d
Author: Joshua J. Drake <github.jdrake@qoop.org>
Date: Fri May 27 17:21:50 2016 -0500
Reduce SENDTHREADS
diff --git a/jni/main.c b/jni/main.c
index 62784b8..716db5c 100644
--- a/jni/main.c
+++ b/jni/main.c
@jduck
jduck / nexus-ota-updates-2016-07-01.md
Last active Aug 10, 2016
July 2016 Nexus OTA Updates - Security Level 2016-07-01
View nexus-ota-updates-2016-07-01.md
View dev-lslr-lmy48i.txt
drwxr-xr-x 12 4620 Jun 21 13:37 u:object_r:device:s0 /dev
crw------- 1 7, 191 May 31 15:05 u:object_r:vcs_device:s0 /dev/vcsa63
crw------- 1 7, 63 May 31 15:05 u:object_r:vcs_device:s0 /dev/vcs63
-rw------- 1 0 May 31 15:04 u:object_r:device:s0 /dev/.su.d
-rw------- 1 0 Apr 1 1970 u:object_r:device:s0 /dev/.app_process_lock
drwxr-xr-x 2 80 Apr 1 1970 u:object_r:video_device:s0 /dev/video
crw-rw---- 1 81, 1 Apr 1 1970 u:object_r:camera_device:s0 /dev/video/venus_enc
crw-rw---- 1 81, 0 Apr 1 1970 u:object_r:camera_device:s0 /dev/video/venus_dec
drwxrwx--- 2 40 May 31 15:05 u:object_r:fscklogs:s0 /dev/fscklogs
drwxr-xr-x 3 0 Apr 1 1970 u:object_r:cgroup:s0 /dev/cpuctl
@jduck
jduck / nexus-ota-updates-2016-06-01.md
Last active Jul 18, 2016
June 2016 Nexus OTA Updates - Security Level 2016-06-01
View nexus-ota-updates-2016-06-01.md
@jduck
jduck / nexus-ota-updates-2016-05-01.md
Last active Sep 18, 2016
May 2016 Nexus OTA Updates - Security Level 2016-05-01
View nexus-ota-updates-2016-05-01.md
You can’t perform that action at this time.