This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)])) |