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
@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
#!/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' )
From d45ffefae10a9a0fba279fb9ab249a70bd52e060 Mon Sep 17 00:00:00 2001
From: "Joshua J. Drake" <[email protected]>
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
From 6b4eba818a99db7cd0b268d5410b0b2e1aa1aab9 Mon Sep 17 00:00:00 2001
From: "Joshua J. Drake" <[email protected]>
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 +++++++++++
#!/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):
#!/usr/bin/env python
#
# liars and cheats plaidctf 2021 challenge
#
# -jduck
import socket
import select
import sys
import time