Skip to content

Instantly share code, notes, and snippets.

View jduck's full-sized avatar
🏠
Working from home

Joshua J. Drake jduck

🏠
Working from home
View GitHub Profile
#!/usr/bin/env python
#
# liars and cheats plaidctf 2021 challenge
#
# -jduck
import socket
import select
import sys
import time
#!/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):
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 +++++++++++
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
#!/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 August 15, 2016 01:37
August 2016 Nexus OTA Updates - Security Level 2016-08-05
@jduck
jduck / iovyroot-less-threads.diff
Last active July 21, 2016 21:20
Make iovyroot more efficient...
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 August 10, 2016 17:22
July 2016 Nexus OTA Updates - Security Level 2016-07-01
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 July 18, 2016 08:02
June 2016 Nexus OTA Updates - Security Level 2016-06-01