Skip to content

Instantly share code, notes, and snippets.

View zommuter's full-sized avatar

Tobias Kienzler zommuter

View GitHub Profile
@zommuter
zommuter / android-backup-apk-and-datas.md
Created October 6, 2021 08:54 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb
for APP in $(adb shell pm list packages -3 -f | tail -n +3); do adb pull $( echo ${APP} | sed "s&^package:&&" | sed "s/=/ /" | sed 's/\r//g').apk; done

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

#!/bin/bash
echo -n Password:
read -s password
echo
hash="$(echo -n $password | openssl sha1 -hex -r | cut -d" " -f1)"
upperCase="$(echo $hash | tr '[a-z]' '[A-Z]')"
prefix="${upperCase:0:5}"
response=$(curl -s https://api.pwnedpasswords.com/range/$prefix)
while read -r line; do
@zommuter
zommuter / bitcoind.service
Last active November 7, 2015 19:51 — forked from davispuh/bitcoind.service
Bitcoin-daemon service file for Systemd
[Unit]
Description=Bitcoin daemon serivce
After=network.target
[Service]
Type=simple
User=bitcoin
ExecStart=/usr/bin/nice -n 15 /usr/bin/bitcoind
[Install]