Skip to content

Instantly share code, notes, and snippets.

View obihann's full-sized avatar

Jeffrey Hann obihann

View GitHub Profile
@obihann
obihann / funny-ssids.txt
Last active September 1, 2018 16:37
Funny SSID's found while wardriving
DEA Remote Task Force
CSIS security van
Burns_when_IP
FBI Surveillance
G SPOT
Luke, I am your router.
TroyAndAbedInTheModem
What's a falafel?
Wetfeet
/(^o^)/ Glory to Lord WiFi!
@obihann
obihann / piip.service
Last active August 28, 2018 19:26
Grab IP address and POST to Pushbullet
[Unit]
Description=PiiP Service
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi
ExecStart=/usr/bin/piip.sh
@obihann
obihann / log_essids.sh
Last active August 28, 2018 21:39
Log ESSIDs
#!/bin/sh -e
_WLAN=$1
_DATE=$(date +%Y%m%d)
_STAMP=$(date +%s)
_LOG_DIR=/var/log/essids
_TMP=/tmp/essids.tmp
_LOG=$_LOG_DIR/$_DATE/$_STAMP.log
@obihann
obihann / README.md
Last active July 19, 2018 18:40
SSLStrip

WiFi MITM Scripts

Steps

  • Enable IPV4 forwarding on the host machine
  • Configure a pre-route NAT translation with iptables to redirect traffic from port 80 through to port 10000 (the port for SSLStrip)
  • Enable Dnsmasq to provide DNS and DHCP to clients
  • Enable Hostapd to provide an access point for clients to connect to
  • Enable Arpspoof, this tricks clients to send packets to our SSLStrip instance
  • Enable SSLStrip
function ImpactSwitch($imp){
switch ($imp)
{
1 {$imp = 0}
2 {$imp = 0.275}
3 {$imp = 0.660}
}
return $imp
}
#!/bin/bash
/usr/bin/firefox $(cat "$1" | grep @ | awk -F'@' '{print "https://instagram.com/"$2}' | xargs)
@obihann
obihann / README.md
Last active February 27, 2017 18:01
@obihann
obihann / install-deps.sh
Created September 10, 2016 21:48
install dependencies for a .deb file
!#/bin/sh
dpkg-deb -I package.deb | grep Depends | sed -r 's/((\ ([a-z].*):\ )|[,]|(\ [(].*[)]))//gi' | xargs sudo apt-get install
@obihann
obihann / listBranches.py
Last active September 9, 2016 11:43
List all folders in a directory as subdomains and store as a index.html file
import os
PATH = os.getenv('WWW', '/var/www')
ENV = os.getenv('ENV', 'DEV')
DOMAINS = {'DEV': 'develop', 'QA': 'testing'}
def buildURL(folder):
return "http://{env}.{domain}.example.com/".format(env=folder, domain=DOMAINS[ENV])
def cleanBranch(branch):
@obihann
obihann / .editorconfig
Created June 28, 2016 11:01
Default editor config
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_new_line = true
trim_trailing_whitespace = true