Skip to content

Instantly share code, notes, and snippets.

View ninp0's full-sized avatar

ninp0

View GitHub Profile
#!/usr/bin/env python
import hid
# Using hid.enumerate() to get a list of all HID devices
devices = hid.enumerate()
# Loop through each device
for device in devices:
# Accessing data from a enumerated device
print("Device path: ", device['path'])
#!/usr/bin/env python
# CVE-2018-16706
import argparse
import requests
import sys
parser = argparse.ArgumentParser()
parser.add_argument(
'-t',
'--target',

xxd Dump - 1x1-255_255_255_1.png

00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452  .PNG........IHDR
00000010: 0000 0001 0000 0001 0806 0000 001f 15c4  ................
00000020: 8900 0000 0173 5247 4200 aece 1ce9 0000  .....sRGB.......
00000030: 000d 4944 4154 1857 63f8 ffff ff7f 0009  ..IDAT.Wc.......
00000040: fb03 fd05 4345 ca00 0000 0049 454e 44ae  ....CE.....IEND.
00000050: 4260 820a                                B`..

Breakdown - 1x1-255_255_255_1.png:

#!/bin/bash
# At the end you should be prompted to restore the ability to restart X via CTRL+ALT+BACKSPACE
sudo dpkg-reconfigure keyboard-configuration
# Alternatively:
# cat << EOF > /etc/default/keyboard
# XKBMODEL="pc101"
# XKBLAYOUT="us"
# XKBVARIANT=""
# XKBOPTIONS="terminate:ctrl_alt_bksp"
#!/bin/bash --login
usage() {
echo "USAGE: ${0} <burp_CA DER File Path>"
exit 1
}
if (( $# == 1 )); then
burp_CA_der_path="${1}"
burp_CA_der_dir=$(dirname ${burp_CA_der_path})
burp_CA_crt="${burp_CA_der_dir}/burp_CA.crt"
#!/bin/bash --login
usage() {
echo "USAGE: ${0} <path to target APK file>"
exit 1
}
target_apk="${1}"
if (( $# == 1 )); then
aapt dump xmltree "${target_apk}" AndroidManifest.xml > AndroidManifest-DECODED.xml
#!/bin/bash --login
setxkbmap -layout us
xdotool keyup Shift_L Shift_R Control_L Control_R Alt_L Alt_R Super_L Super_R Hyper_L Hyper_R Caps_Lock 204 205 206 207
#!/bin/ksh
sysupgrade https://ftp.eu.openbsd.org/pub/OpenBSD
#!/bin/bash --login
macports_postgres_root='/opt/local/lib/postgresql14'
rvmsudo /bin/bash \
--login \
-c "bundle config build.pg -- --with-pg-config=${macports_postgres_root}/bin/pg_config && gem install pg -- --with-pg-config=${macports_postgres_root}/bin/pg_config"
#!/bin/bash --login
usage() {
echo "USAGE: ${0} <QMK Firmware.bin Path>"
exit 1
}
if (( $# == 1 )); then
firmware_bin_path="${1}"
dfu-util --list
printf "Enter DFU Device ID from Listing Above (e.g. DEAD:BEEF): "; read dfu