Skip to content

Instantly share code, notes, and snippets.

View jeremypruitt's full-sized avatar
:octocat:
Day 470 @ Waabi.ai

Jeremy Pruitt jeremypruitt

:octocat:
Day 470 @ Waabi.ai
View GitHub Profile
@jeremypruitt
jeremypruitt / CheatSheet-Pentesting.md
Last active April 1, 2024 10:14
Pentesting Cheatsheet

Reminders

Remember to log all the things!

  • Metasploit - spool /home//.msf3/logs/console.log
  • Save contents from each terminal!
  • Linux - script myoutput.txt # Type exit to stop

Setup

@jeremypruitt
jeremypruitt / devops-engineer-interview-questions.md
Last active January 12, 2024 09:55
DevOps Engineer Interview Questions
@jeremypruitt
jeremypruitt / sns-publish
Last active August 19, 2022 18:09
AWS Lambda function to publish to SNS topic
console.log('Loading function');
var AWS = require('aws-sdk');
AWS.config.region = 'us-west-2';
exports.handler = function(event, context) {
console.log("\n\nLoading handler\n\n");
var sns = new AWS.SNS();
sns.publish({
@jeremypruitt
jeremypruitt / generate-animated-counter-gif.py
Last active July 11, 2021 08:23
Generates an animated gif of a counter
from PIL import Image, ImageDraw, ImageSequence, ImageFont
import io
import click
FIRST_NUMBER = click.prompt('Enter the low number of the range', default=10330, type=int)
LAST_NUMBER = click.prompt('Enter the high number of the range', default=10346, type=int)
FRAME_DURATION = click.prompt('How long to hold on each number', default=100, type=int)
ANIMATED_GIF_FILENAME = click.prompt('Enter the name of the animated gif to generate', default="incrementing-counter.gif", type=str)
TEXT_COLOR = (255,255,255)
@jeremypruitt
jeremypruitt / output-helper.sh
Last active November 3, 2020 10:51
CLI output helper lib
# Formatting
DEFAULT=`tput sgr0`
BRIGHT=`tput bold`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
BLUE=`tput setaf 4`
MAGENTA=`tput setaf 5`
CYAN=`tput setaf 6`
WHITE=`tput setaf 7`
@jeremypruitt
jeremypruitt / assume-role.sh
Last active October 28, 2020 15:50
Shell script to help run Terraform in a Docker container
#!/usr/bin/env bash
set -e
set -o pipefail
# FORMATTING ###################################################################
DEFAULT=`tput sgr0`
BOLD=`tput bold`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
@jeremypruitt
jeremypruitt / Dockerfile
Last active September 30, 2020 00:08
cli-output.py
# syntax=docker/dockerfile:1.0.0-experimental
# -------------------------------------------------------------------------
FROM python:3.8-slim
# -------------------------------------------------------------------------
LABEL maintainer="Jeremy Pruitt <jepruitt@aligntech.com>"
ARG VERSION
ARG BUILD_DATE
ARG VCS_REF

Vault Admin

The Vault Admin is responsible for ensuring the vault service and its backend are available. They also manage the bringup process in the event of an outage, including coordination of the shamir secret holders during the process of unsealing the vault.

Requires:

  • Much more consideration for production :)
  • Vault binary

For PoC purposes, just use the in-memory vault dev mode:

@jeremypruitt
jeremypruitt / HackTheBox-Unattended.md
Last active August 31, 2019 03:50
Hack The Box - Unattended

Techniques

Tools

  • nmap

Setup

  1. Add unattended.htb to the hosts file so we can refer to the host by name
    $ echo "10.10.10.126 unattended.htb" >> /etc/hosts
@jeremypruitt
jeremypruitt / awesome-sec-cli.md
Last active August 31, 2019 03:32
Awesome Security CLI Commands

Awesome Security CLI Commands

ffuf

A go-based single-binary and very fast replacement for both gobuster and wfuzz. It can perform both dirbuster style URL path/extension-specific fuzzing, and also URL param fuzzing.

Wfuzz style of URL param fuzzing:

$ ffuf -w /usr/share/commix/src/txt/passwords_john.txt \