Skip to content

Instantly share code, notes, and snippets.

View Frostie314159's full-sized avatar
💭
Nec ora Nec labora.

Frostie314159 Frostie314159

💭
Nec ora Nec labora.
  • Germany
  • 10:12 (UTC +02:00)
View GitHub Profile
@Frostie314159
Frostie314159 / gdr_mac.py
Created March 1, 2023 16:07
Generate a random mac address from the range of the VEB Kombinat Robotron. (Yes this is a joke)
#!/bin/python
# This script generates a random mac address, from the mac range of the VEB Kombinat Robotron.
import random
format_string = "00:80:41:{:2X}:{:2X}:{:2X}"
print(format_string.format(*[random.randint(0, 255) for i in range(3)]))
@Frostie314159
Frostie314159 / dump_app_data.sh
Created January 20, 2023 12:35
A small script to dump app data via adb.
#!/bin/bash
adb backup -apk $1 -f /tmp/$1.ab
dd if=/tmp/$1.ab bs=4k iflag=skip_bytes skip=24 | zlib-flate -uncompress > /tmp/$1.tar
tar -xf /tmp/$1.tar -C /tmp/
cp -r /tmp/apps/$1 $1