This file contains 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 | |
# | |
# Quickly get TOR/privoxy running with python modifiable python script to change IP every 10 seconds | |
# See https://github.com/FrackingAnalysis/PyTorStemPrivoxy for more details | |
# | |
echo "Downloading prerequisites" | |
apt-get install -y tor privoxy python-stem wget | |
echo "Setting up privoxy" |
This file contains 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
import argparse # Handle arguments | |
import os # To write hid comands to system | |
from keyseed import * # The bytes to translate to keyboard codes | |
''' | |
Arguments for filetohid.py | |
python filetohid.py -f [inputfile] -l us | |
python filetohid.py -s "this is a string" -l us |
This file contains 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 | |
INPUT=$1 | |
HIDKEY="/system/xbin/hid-keyboard" | |
while IFS= read -r -N 1 char; do | |
if [ "$char" == $'\n' ] || [ "$char" == $'\r' ]; then | |
# For each new line = return key | |
echo enter | $HIDKEY /dev/hidg0 keyboard | |
else |
This file contains 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
{ | |
"sdk": [ | |
{ | |
"windows":"http://tools.android.com/download/sdk-repo-windows-platform-tools-2219198.zip", | |
"osx":"http://tools.android.com/download/sdk-repo-darwin-platform-tools-2219242.zip", | |
"linux":"http://tools.android.com/download/sdk-repo-linux-platform-tools-2219198.zip", | |
"adb_version":"1.0.32" | |
} | |
], | |
"devices": [ |
This file contains 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
brew install openssl | |
brew install swig | |
# In this case I was using kivy interpreter | |
cd /Applications/Kivy.app/Contents/Resources | |
env LDFLAGS="-L$(brew --prefix openssl)/lib" \ | |
CFLAGS="-I$(brew --prefix openssl)/include" \ | |
SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" \ | |
./python venv/bin/pip install m2crypto |
This file contains 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
diff -ur A/frameworks/base/services/core/java/com/android/server/ConnectivityService.java B/frameworks/base/services/core/java/com/android/server/ConnectivityService.java | |
--- A/frameworks/base/services/core/java/com/android/server/ConnectivityService.java 2015-09-01 12:55:15.000000000 -0500 | |
+++ B/frameworks/base/services/core/java/com/android/server/ConnectivityService.java 2015-09-01 13:06:55.000000000 -0500 | |
@@ -3915,6 +3915,7 @@ | |
if (!newNetwork.created) loge("ERROR: uncreated network being rematched."); | |
if (nascent && !newNetwork.validated) loge("ERROR: nascent network not validated."); | |
boolean keep = newNetwork.isVPN(); | |
+ boolean keep_ethernet = newNetwork.isETHERNET(); | |
boolean isNewDefault = false; | |
if (DBG) log("rematching " + newNetwork.name()); |
This file contains 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
apt-get update && apt-get install triggerhappy lua5.1 | |
# Find latest raspi-config from: http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/ | |
wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20150706_all.deb -O raspi-config.deb | |
dpkg -i raspi-config.deb |
This file contains 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 | |
# | |
# Script from http://stackoverflow.com/questions/26447080/patching-sshuttles-firewall-py-ipfw-to-pf | |
# Modified github location for updated OSX compat | |
# | |
sudo echo "Installing PyXAPI" | |
curl -O http://www.pps.univ-paris-diderot.fr/~ylg/PyXAPI/PyXAPI-0.1.tar.gz | |
tar -xzvf PyXAPI-0.1.tar.gz | |
cd PyXAPI-0.1 | |
./configure |
This file contains 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
#! /usr/bin/env python | |
import sys | |
import re | |
import os | |
from decimal import Decimal #for conversion milliseconds -> seconds | |
if len(sys.argv) < 2: | |
print 'Usage: duck-hunter.py <duckyscript> output.txt' | |
#print 'Usage: duck-hunter.py <duckyscript> <language> output.txt' |
This file contains 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
#! /usr/bin/env python | |
import sys | |
import re | |
import os | |
if len(sys.argv) < 2: | |
print 'Usage: duck-hunter.py <duckyscript> output.txt' | |
#print 'Usage: duck-hunter.py <duckyscript> <language> output.txt' | |
sys.exit() |