aimerneige / golang aes cbc encrypt & decrypt
0 gustos
0 bifurcaciones
1 archivos
Última actividad 2 years ago
| 1 | package utils |
| 2 | |
| 3 | import ( |
| 4 | "bytes" |
| 5 | "crypto/aes" |
| 6 | "crypto/cipher" |
| 7 | ) |
| 8 | |
| 9 | func encrypt(aesKey, plaintextMsg []byte) ([]byte, error) { |
| 10 | block, err := aes.NewCipher(aesKey) |
aimerneige / Remove All Pre-Installed App in Android Phone
0 gustos
0 bifurcaciones
1 archivos
Última actividad 2 years ago
Run this after `adb shell`
| 1 | for i in $(pm list packages -3 | sed 's/package://g'); do pm uninstall --user 0 $i; done |
aimerneige / extract specific file(s) from tar.gz
0 gustos
0 bifurcaciones
1 archivos
Última actividad 2 years ago
| 1 | # extract specific file(s) from tar.gz |
| 2 | tar -zxvf <tar filename> <file you want to extract> |
| 3 | |
| 4 | # -x: instructs tar to extract files. |
| 5 | # -f: specifies filename / tarball name. |
| 6 | # -v: Verbose (show progress while extracting files). |
| 7 | # -z: filter archive through gzip, use to decompress .gz files. |
| 8 | # -t: List the contents of an archive |
| 9 | # https://unix.stackexchange.com/questions/61461/how-to-extract-specific-files-from-tar-gz |
aimerneige / Remove Pre-Install
0 gustos
0 bifurcaciones
3 archivos
Última actividad 2 years ago
remove pre-install apps for Redmi Note 9T
| 1 | # Remove SoftBank |
| 2 | for package in $(adb shell pm list packages | awk -F ':' '{print $2}' | grep softbank); do adb shell pm uninstall --user 0 $package; done |
| 3 | # Remove Yahoo |
| 4 | for package in $(adb shell pm list packages | awk -F ':' '{print $2}' | grep yahoo); do adb shell pm uninstall --user 0 $package; done |
| 5 | # Remove JP |
| 6 | for package in $(adb shell pm list packages | awk -F ':' '{print $2}' | grep jp); do adb shell pm uninstall --user 0 $package; done |
| 7 | # You need to manually disable the device manager to uninstall this app |
| 8 | adb shell pm uninstall --user 0 jp.softbank.mb.tdrl |
| 9 | # Some other app |
| 10 | adb shell pm uninstall --user 0 com.mcafee.vsm_android_sbm |
aimerneige / Remove All SoftBank
0 gustos
0 bifurcaciones
1 archivos
Última actividad 2 years ago
Remove all of the softbank package on your android phone just in one command!
| 1 | for package in $(adb shell pm list packages | awk -F ':' '{print $2}' | grep softbank); do adb shell pm uninstall --user 0 $package; done |