This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set up ssh-agent | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) | |
| _/| | | | || | || || |___ | ~ || __|| _]| / | |
| | | | | | || |_ || _ || ||___, || / || [_ | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = '@awhitehatter' | |
__version__ = '0.1' | |
import xml.etree.ElementTree as ET | |
import argparse | |
import sys | |
''' | |
########################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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( |
OlderNewer