This file contains hidden or 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 urllib2 | |
import urllib | |
class LatestSU: | |
def __getPage(self, url, retRedirUrl = False): | |
try: | |
bOpener = urllib2.build_opener() | |
bOpener.addheaders = [("User-agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36")] | |
pResponse = bOpener.open(url) |
This file contains hidden or 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 | |
# | |
# Passively scan for targets using tshark to capture pcap | |
# then parse out pcap for interesting activity/clients. | |
# Order: tshark (capture), p0f (fingerprint), dsniff (plaintext), | |
# tcptrace (parse ip src > ip dst) | |
# | |
# + Dependencies tshark, tcptrace, dsniff | |
# | |
# + To run and capture traffic for five minutes: |
This file contains hidden or 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
supolicy --live \ | |
"allow install_recovery system_data_file file { execute_no_trans setattr read create write ioctl unlink open}" \ | |
"allow install_recovery system_data_file sock_file { setattr unlink create write }" \ | |
"allow install_recovery fuse dir { mounton setattr }" \ | |
"allow install_recovery proc filesystem { mount }" \ | |
"allow install_recovery rootfs dir { mounton setattr mount }" \ | |
"allow install_recovery tmpfs dir { create add_name mounton setattr write}" \ | |
"allow init_shell sysfs filesystem { mount }" \ | |
"allow install_recovery system_data_file dir { remove_name add_name write }" \ | |
"allow init_shell init_shell rawip_socket { bind read setopt getopt create write ioctl getattr listen connect }" \ |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am binkybear on github. | |
* I am binkybear (https://keybase.io/binkybear) on keybase. | |
* I have a public key whose fingerprint is 90C6 14F7 016D C2AC 3E60 8A9D 0485 6EB3 8BF0 D750 | |
To claim this, I am signing this object: |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am binkybear on github. | |
* I am binkybear (https://keybase.io/binkybear) on keybase. | |
* I have a public key whose fingerprint is CF4B 0AC6 0C2E 9115 EAE9 E11F 737A EF58 8C9C 4A35 | |
To claim this, I am signing this object: |
This file contains hidden or 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() |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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()); |
OlderNewer