Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import time
import json
import subprocess
from string import ascii_lowercase, ascii_uppercase
ans="LVEdQPpBwr"
guess=""
##guess="LandyCane"
@robsouth84
robsouth84 / install.sh
Created May 8, 2020 20:35
graylog install on fresh centos 7 install
## details found here:
## http://docs.graylog.org/en/2.1/pages/installation/os/centos.html
### assumes fresh install of centos 7 minimal with pci security config
### also assumes running as either root OR user with sudoers access
################################################
########## install prereqs #####################
#! /bin/bash
echo '## update..'
sudo apt-get update -y
echo '## intalling apache..'
sudo apt-get install apache2 -y
echo '## intalling php..'
http://libvirt.org/sources/virshcmdref/html/
open virsh shell::::
pc: $ virsh --connect qemu:///system
list virtual machines:::
#!/bin/bash
##get the hw rev of rasp pi
cat /proc/cpuinfo | grep 'Revisi'
############
@robsouth84
robsouth84 / streamurls
Created May 8, 2020 20:31
mPlayer_CLI_Streams
stream_urls = {
"christian hits": "http://rfcmedia.streamguys1.com/christianhits.mp3",
"K Love": "http://emf.streamguys1.com/sk037_mp3_high_web?tsid=1506303503216",
"Ready FM": "http://uk2.internet-radio.com:8201/stream/1/;stream.mp3",
"Smile FM": "http://50.7.129.122:8236/smilefm64k.mp3",
"reses ad": "https://secure-ds.serving-sys.com/BurstingRes/Site-833/Type-16/c9d0339c-7d33-46fc-a4e3-4c7fb1b78baf.mp4",
"971 the tickiet": "http://18783.live.streamtheworld.com/WXYTFMAACHI.aac",
$ amixer sset 'Master' 50%
#!/bin/bash
# require functions
. ./common.sh
# CONSTANTS
# TWRP
twrpImageDir=twrpImage/
deleteGitIgnore $twrpImageDir
//find all apps NOT in /data and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ " | while read line; do adb pull $line; done
//find all apps NOT in /data && NOT in /vendor (likely no access) and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ | grep -v ^\/vendor" | while read line; do adb pull $line; done
//find all apps in /data and pull to current dir
//this will pull entire package folder not just apk. first this was out of convienience when parsing the strings, but turns out you get some intersting binaries along the way. see facebook for example
$ adb shell "pm list packages -f | cut -d':' -F2 | grep ^\/data | cut -sd 'base.apk' -F1 " | while read line; do adb pull $line; done
@robsouth84
robsouth84 / $PS - pull all apks from adb
Created October 23, 2019 02:37
Some PowerShell one liners to pull apks from a Android device with adb
//find all apps NOT in /data and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ " | ForEach-Object { adb pull $_ }
//find all apps NOT in /data && NOT in /vendor (likely no access) and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ | grep -v ^\/vendor" | ForEach-Object { adb pull $_ }
//find all apps in /data and pull to current dir
//this will pull entire package folder not just apk. first this was out of convienience when parsing the strings, but turns out you get some intersting binaries along the way. see facebook for example
$ adb shell "pm list packages -f | cut -d':' -F2 | grep ^\/data | cut -sd 'base.apk' -F1 " | ForEach-Object { adb pull $_ }