Skip to content

Instantly share code, notes, and snippets.

View phin3has's full-sized avatar

Brandon E. phin3has

View GitHub Profile
@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 / 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 / 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 / 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 / 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
@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 {
@phin3has
phin3has / RM_libreoffice_install_openoffice
Created October 22, 2015 18:17
Removes Libre Office, Installs OpenOffice
apt-get remove --purge libreoffice*
apt-get autoremove
wget http://downloads.sourceforge.net/project/openofficeorg.mirror/4.1.1/binaries/en-US/Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-US.tar.gz?r=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2Findex.html&ts=1445537614&use_mirror=skylineservers
tar -xvfz Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-US.tar.gz
cd en-US/DEBS
dpkg -i *.deb
cd desktop-integration
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

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: