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
@cutaway
cutaway / .screenrc
Last active February 20, 2021 14:15
Default screenrc file
escape ^aa
vbell on # default: off
vbell_msg " -- Ring, Ring!! -- " # default: "Wuff,Wuff!!"
autodetach on # default: on
startup_message off # default: on
crlf off # default: off
multiuser on
deflog on
defscrollback 1000 # default: 100
silencewait 15 # default: 30
@cutaway
cutaway / spi_dump.py
Last active April 27, 2022 13:14
Script to interact with SPI EEPROM memory components using the BusPirate via pyBusPirateLite
#!/usr/bin/env python
# encoding: utf-8
"""
Adapted from spi_test.py by Sean Nelson on 2009-10-14.
Modified by Don C. Weber (cutaway) and InGuardians, Inc. 20141015
This file is part of pyBusPirate.
pyBusPirate is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@cutaway
cutaway / i2c-dump.py
Last active April 27, 2022 13:12
Script to interact with I2C EEPROM memory components using the BusPirate via pyBusPirateLite
#!/usr/bin/env python
# encoding: utf-8
"""
Adapted from i2c-test.py from Peter Huewe by Jean-Michel Picod
Modified by Don C. Weber (cutaway) and InGuardians, Inc. 20141015
This file is part of pyBusPirate.
pyBusPirate is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#!/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
#!/usr/bin/env python
"""
Name: extract_java_server_faces_viewstate
Purpose: Extract and parse the Java Server Faces viewstate
Date: 20150620
Author: Don C. Weber (@cutaway) of InGuardians, Inc.
Resources:
http://wiki.apache.org/myfaces/Secure_Your_Application