Skip to content

Instantly share code, notes, and snippets.

View Geofferey's full-sized avatar
🤓
OnePlus 8T time

Geofferey Eakins Geofferey

🤓
OnePlus 8T time
  • NETLABWORK
  • USA
View GitHub Profile
@Geofferey
Geofferey / reverse_gpsd-payload.sh
Created February 21, 2026 01:17
Pineapple Pager Payload for receiving streamed NMEA from a remote device
#!/bin/bash
# Title: GPSd Listener
# Author: Geofferey
# Description: Listens for NMEA on IP and port specified
# Version: 1.0
DEF_PORT=29470
DEF_HOST=172.16.52.1
LOG ""
@Geofferey
Geofferey / remote_gpsd-payload.sh
Last active February 21, 2026 01:19
A Pineapple Pager payload for connecting to a remote gpsd server
#!/bin/bash
# Title: GPSd Remote
# Author: Geofferey
# Description: Connects pager to a remote gpsd server
# Version: 1.0
## Simply connects the pager to a remote GPSd server capable of providing coordinates
DEF_PORT=29470
DEF_HOST=192.168.128.254
@Geofferey
Geofferey / usbc_wan_toggle_payload.sh
Last active February 22, 2026 23:52
A Pineapple Pager Payload for Toggling the USB-C port between WAN/LAN
#!/bin/bash
# Title: USB-C WAN/LAN Toggler
# Author: Geofferey
# Description: Removes eth0 from bridge so it obtains an IP from connected device
# Version: 1.0
PATH=/mmc/bin:/mmc/sbin:/mmc/usr/bin:/mmc/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin
enable () {
<Config>
<USB>
<VendorID>0x1410</VendorID>
<ManufacturerString>Novatel Wireless</ManufacturerString>
<ProductString>M2100</ProductString>
<SerialString>0123456789ABCDEF</SerialString>
</USB>
<FunctionList>
<DebugMode>
<OnlineMode>,dun,diag,adb,hid</OnlineMode>
@Geofferey
Geofferey / gps_cli-cot.sh
Last active June 15, 2025 04:15
Grabs location data from gps_cli utility available on Novatel Hotspots and Similar and converts to CoT for use with ATAK input
#!/bin/bash
PATH=/data/bin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/nvtl/bin:/opt/nvtl/data/branding/bin
LD_LIBRARY_PATH=/opt/nvtl/lib:/opt/nvtl/data/branding/lib
SCRIPT=$(basename "$0")
CURRENT_PID=$$
DNS_REC_HOST=""
gps_cli set_privacy 1 >> /dev/null 2>&1
@Geofferey
Geofferey / inseegokit
Last active October 4, 2025 02:27
ttlset.sh from Inseego Tool modified for use outside of tookkit
#!/bin/sh
## This script was originally part of the Inseego Tool
# Script supplies methods to spoof/set TTL+DPI+IMEI
# I did not write this script but I am using it as part
# of a larger set of modifications to the Inseego M2000B
# Script version
script_version="1.4.4"
download_url="gist.githubusercontent.com/Geofferey/d105ce5e2b4c557e8fb3003dafd448eb/raw/inseegokit.sh"
#!/bin/sh
echo "Content-type: text/plain"
echo ""
# Function to reverse a string
reverse_string() {
echo "$1" | rev
}
# Function to convert IMEI to NV item content
@Geofferey
Geofferey / atak-nmea-to-cot.py
Last active May 19, 2025 22:12
Take raw nmea and convert to XML compatible with ATAK CoT
#!/bin/env python3
import socket
import sys
from datetime import datetime, timedelta, timezone
import string
import argparse
import os
import time
import threading
@Geofferey
Geofferey / inseegom2000_rc.local.d_00adbd
Last active May 7, 2025 00:34
inseego_rc.local.d-00adbd
#!/bin/sh
## This is an example of enabling QCOM HS USB DIAG + ADB using rc.local.d/00adbd
# You can get out of this mode by plugging in and select charge only then tehter
# I feel like there may be better way but this is easiest way I've found
#
# Place me in /etc/rc.local.d/00adbd
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/nvtl/bin:/opt/nvtl/data/branding/bin
@Geofferey
Geofferey / inseego_m2000-peristence.sh
Last active May 7, 2025 00:40
inseego_m2000-peristence.sh
#!/bin/sh
## This script will make persistent modifications to the Inseego M2000
#
# • Enables rc.local(.d) init for easily executing arbitrary scripts
# • Permanently enables dropbear SSH via symlink to rc3.d/
# • Permanently enable QCOM HS USB DIAG + ADB on boot
#
/bin/ln -s /etc/init.d/dropbear /etc/rc3.d/S99sdropbear