Skip to content

Instantly share code, notes, and snippets.

View phin3has's full-sized avatar

Brandon E. phin3has

View GitHub Profile

Keybase proof

I hereby claim:

  • I am phin3has on github.
  • I am awhitehatter (https://keybase.io/awhitehatter) on keybase.
  • I have a public key whose fingerprint is 0BD7 E089 16F3 DCFD 260A 73D1 B9EF D46A 69A6 08C4

To claim this, I am signing this object:

@phin3has
phin3has / TMUX conf file
Last active October 5, 2020 18:03
.tmux.conf
# Modified for Tmux 2.91+
# Thx to https://github.com/hamvocke/dotfiles
# Modified for me
# change the prefix from 'C-b' to 'C-a'
# (remap capslock to CTRL for easy access)
# unbind C-b
# set-option -g prefix C-a
# bind-key C-a send-prefix
# start with window 1 (instead of 0)
@phin3has
phin3has / runvps.py
Last active September 26, 2019 19:05
Start an EC2 instance
#! /usr/bin/python3
import boto3
session = boto3.Session(profile_name='default', region_name='us-west-2')
client = session.client('ec2')
instID = 'ID'
response = client.describe_instance_status(
@phin3has
phin3has / stopvps.py
Last active September 26, 2019 19:04
Stop an EC2 instance
#! /usr/bin/python3
import boto3
session = boto3.Session(profile_name='default', region_name='us-west-2')
client = session.client('ec2')
instID = 'ID'
response = client.describe_instance_status(
@phin3has
phin3has / r7-data-scraper.py
Created January 4, 2019 23:54
Rapid7-OpenAPI-DNS Scan extractor
import requests
import json
from pprint import pprint
'''
Author: @awhitehatter
Date: 01/04/2019
Version: 1.0
Description: A script that pulls down latest FDNS and RDNS scans from rapid7, provides the URL
@phin3has
phin3has / scanparser.py
Created December 11, 2018 22:07
Masscan XML Parser
__author__ = '@awhitehatter'
__version__ = '0.1'
import xml.etree.ElementTree as ET
import argparse
import sys
'''
###########################################################################
@phin3has
phin3has / whowho.py
Last active July 9, 2018 21:33
Compiles email addresses from a .csv of first and last names
#!/usr/bin/python
__author__ = '@awhitehatter'
__version__= 1.0
'''
WhoWho is script that builds username addresses from CSV imports.
example:
From test.csv:
first_name,last_name
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G}%H %{..Y}%m/%d/%y %c:%s"
defscrollback 1024
vbell off
startup_message off
@phin3has
phin3has / pingalyzer.py
Created May 24, 2013 19:17
This is the start of my first real Python program "Pingalyzer.py"
import sys, os, re
#in Python3.3 there's a sick module called "ipaddress", Nix hasn't pulled 3.3 into the reps and I don't feel like forcing that on people.
#import ipaddress
logo = '''
____ ____ ____ ____ ____ _ __ __ _____ ___ ____
| \ || \ / | / || | | | || | / _]| \
| o ) | | _ || __|| o || | | | ||__/ | / [_ | D )
| _/| | | | || | || || |___ | ~ || __|| _]| /
| | | | | | || |_ || _ || ||___, || / || [_ | \
@phin3has
phin3has / VMware-Workstation-Backup
Last active October 26, 2015 19:55
Backs up Linux Hosted VMware Workstation Machines
#!/bin/bash
# Backs up VM workstations, will suspend if you provide a name (see line 57)
# Written by @awhitehatter, 10-26-15
LOGFILE="/var/log/vmbak.log"
BACKUPD="/path/to/backup"
BACKDIR="$(date +"%d-%m-%y")-bak"
# Backup function
function backup {