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
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/dixonwille/wmenu" | |
) | |
func main() { |
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
# | |
# All this should be done in Nethunter chroot | |
# | |
apt-get install -y subversion libglib2.0 libxml2-dev libpcap-dev libtool rrdtool librrd-dev autoconf automake autogen redis-server wget libsqlite3-dev libhiredis-dev libgeoip-dev libcurl4-openssl-dev libpango1.0-dev libcairo2-dev | |
apt-get install -y libpng12-dev git dh-autoreconf libcurl4-gnutls-dev libsqlite3-dev libmysqlclient-dev pkg-config libxml2-dev libglib2.0-dev | |
# Modify /etc/group by adding redis to inet group | |
nano /etc/group | |
# inet:x:3004:postgres,root,beef-xss,daemon,nginx,mysql,redis |
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
git clone https://github.com/gitdurandal/dbd.git | |
cd dbd | |
# | |
# Edit dbd.h with settings to callback or listen | |
# | |
# Edit Makefile and add Wno-pointer-sign | |
# | |
# UNIX32_CFLAGS += -Wall -Wshadow -Os -m32 -march=i386 -Wno-pointer-sign | |
make unix |
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
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
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 |