Skip to content

Instantly share code, notes, and snippets.

View 0xDE57's full-sized avatar
🧙‍♂️
RISC-V when?

arbitrary hexcode 0xDE57

🧙‍♂️
RISC-V when?
View GitHub Profile
@0xDE57
0xDE57 / dumpAPK.sh
Created January 19, 2026 10:12
adb - dump all apks
#!/bin/bash
packages=$(adb shell pm list packages)
APK_DIR="apks"
mkdir -p "$APK_DIR"
for pkg in $packages; do
package_name=${pkg:8}
@0xDE57
0xDE57 / hotspot.sh
Created January 19, 2026 10:11
create hotspot with spoofed mac
sudo nmcli device wifi hotspot con-name <localConnectionName> ssid <ssid> band bg password <password>
nmcli device disconnect wlan0
nmcli connection modify <localConnectionName> 802-11-wireless.cloned-mac-address <mac>
nmcli device connect wlan0
@0xDE57
0xDE57 / udpLogger.py
Created January 17, 2026 11:19
simple udp logger for unique messages. specify port.
import socket
import datetime
from collections import defaultdict
collected_data: dict[str, dict[str, dict[str, object]]] = defaultdict(dict)
def save_to_file(data_to_save: dict[str, dict[str, dict[str, object]]]) -> None:
ts = datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
filename = f"udp_log_{ts}.txt"
@0xDE57
0xDE57 / ollama_gfx1030.sh
Last active January 17, 2026 04:05
Ollama openwebui on AMD 6700 / 6750 XT (gfx1030)
#ollama with 6700 6750 XT (gfx1030) support
docker run -d --restart always --device /dev/kfd --device /dev/dri -v ollama:/root/.ollama -p 11434:11434 --name ollama -e HSA_OVERRIDE_GFX_VERSION=10.3.0 -e HCC_AMDGPU_TARGET=gfx1030 ollama/ollama:rocm
#open webui (no mandatory login: WEBUI_AUTH=False)
docker run -d --network=host WEBUI_AUTH=False -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main
#!/bin/sh
docker pull opensecurity/mobile-security-framework-mobsf:latest
docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest
@0xDE57
0xDE57 / disableImmutableSteamDeck.sh
Created January 14, 2026 03:06
The immutable filesystem deeply annoys me. Just get out of my way let me control my computer...
sudo steamos-readonly disable
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman-key --refresh-keys
@0xDE57
0xDE57 / mitmproxyIntecept.py
Last active January 17, 2026 11:29
misc mitmproxy testing. wipe UA, print headers, kill connection, inject error
from mitmproxy import http
''' dns intercept not working... why?
from mitmproxy import dns
def request(flow: dns.DNSFlow):
print(f"DNS Request: {flow.request.qname}")
def response(flow: dns.DNSFlow):
print(f"DNS Response: {flow.response.qname}")
@0xDE57
0xDE57 / captureAndroidTraffic.sh
Created December 21, 2025 00:25
tcpdump rooted android into wireshark
adb root
adb remount
adb exec-out "tcpdump -i any -U -w - 2>/dev/null" | sudo wireshark -k -S -i -
@0xDE57
0xDE57 / linux_tpm.md
Last active August 24, 2025 09:04
linux read tpm values quick reference

Check for TPM presence on Linux

Check /dev/

ls /dev/tpm*

If a TPM is present, you may see:

@0xDE57
0xDE57 / serial_rx.py
Created July 26, 2025 07:41
function to open serial port and listen to messages. be sure to set correct port and baud rate.
import serial
def listen_serial(port, baud_rate):
try:
ser = serial.Serial(port, baud_rate)
print(f"Opened {port} with baud rate {baud_rate}")
while True:
# Read data from the serial port
if ser.in_waiting > 0: