Skip to content

Instantly share code, notes, and snippets.

View cutaway's full-sized avatar

Don C. Weber cutaway

View GitHub Profile
@cutaway
cutaway / .vimrc
Created October 16, 2014 17:39
Default vimrc file
set ai
set expandtab
set shiftwidth=4
set tabstop=4
colorscheme elflord
syntax enable
set showmatch
set mat=2
set ignorecase
set history=300
#!/usr/bin/env python
"""
A pure Python "ping" implementation, based on a rewrite by Johannes Meyer,
of a script originally by Matthew Dixon Cowles. Which in turn was derived
from "ping.c", distributed in Linux's netkit. The version this was forked
out of can be found here: https://gist.github.com/pklaus/856268
The versions this script derived from are licensed under GPL v2, this makes
mandatory that this is licensed under the same terms as well. If it were up
@cutaway
cutaway / setup_wpe.sh
Created March 11, 2015 19:41
setup_wpe.sh is a bash script to prepare a system to run hostapd-wpe.
#!/bin/bash
################
# setup_wpe.sh
# Author: Don C. Weber (@cutaway)
# Purpose: Setup interfaces for hostapd-wpe. This will enable dnsmesq so that the interfaces are ready to serve up an Internet
# connection for any clients that maintain a connection to the system. Additional configuration of dnsmasq and
# hostapd-wpe required.
#
################
@cutaway
cutaway / hostapd-wpe_ing.conf
Created March 11, 2015 19:47
Hostapd-wpe.conf is a configuration script for hostapd-wpe. This script has been updated to provide more configuration options associated with WPA2.
#
# hostapd-wpe.conf
# Brad Antoniewicz (@brad_anton) - Foundstone
# ------------------------------------------------
# Updated to provide additional WPA2 configuration control
# Don C. Weber (@cutaway) - InGuardians, Inc.
# ------------------------------------------------
#
# Configuration file for hostapd-wpe
#
@cutaway
cutaway / ics_startup.sh
Created April 13, 2015 22:29
ics_startup.sh - This shell script is designed to help setup Internet sharing between to interfaces.
#!/bin/bash
###########################################################################
# ics_startup.sh - This shell script is designed to help setup Internet
# sharing between to interfaces. It will generate
# the appropriate iptable rules, implement them,
# and start the DHCP server. It will also reset
# the system.
#
# Copyright (c) 2012, InGuardians, Inc. <consulting@inguardians.com>
#
@cutaway
cutaway / cookie_parameters.py
Created June 12, 2015 22:19
cookie_parameters.py: an SQLMAP tamper script to handle Cookie GLOBS
@cutaway
cutaway / ssh_accepted_xlog_parser.py
Last active December 15, 2015 06:24
Parsing SSH Accepted Syslog files with Python and PyParsing - based on Lendro Silva's code
#!/usr/bin/env python
import sys
from pyparsing import Word, alphas, Suppress, Combine, nums, string, Optional, Regex
#from time import strftime
import time
from datetime import datetime
# Script: ssh_accepted_xlog_parser.py
# Author: Don C. Weber (cutaway)
@cutaway
cutaway / simple_commands_and_reminders.md
Last active August 27, 2017 19:14
Simple Commands And Other Things To Remember
@cutaway
cutaway / bigip_decode_cookie.py
Created July 2, 2015 18:33
Deocde BigIP cookies to internal IP address and port number
@cutaway
cutaway / arin_lookup.py
Created October 16, 2018 15:39
ARIN Lookup for IP Ranges
import os,sys
from ipwhois import IPWhois
import socket
import warnings
# Supress warnings
warnings.filterwarnings('ignore')
# Set field names
f = ['asn','asn_cidr','nets','query','asn_description']