Skip to content

Instantly share code, notes, and snippets.

View SafeEval's full-sized avatar

Jack Sullivan SafeEval

View GitHub Profile
@SafeEval
SafeEval / dump-indexed-db.js
Last active November 6, 2022 04:09 — forked from azproduction/dump-indexed-db.js
Dumps all IndexedDB databases and saves all of them into a json file
/* Copy/paste this into browser DevTools console. */
;(async () => {
async function dumpDatabase(dbName) {
var dbExists = await new Promise(resolve => {
var request = window.indexedDB.open(dbName)
request.onupgradeneeded = e => {
e.target.transaction.abort()
resolve(false)
}
request.onerror = () => resolve(true)
@SafeEval
SafeEval / cloud-init-meta-data.cfg
Last active June 24, 2022 14:20
Example of fully automated Ubuntu installation with KVM, virt-install 4.x, and cloud-init config files
#cloud-config
instance-id: my-vm-host
local-hostname: my-vm-host
@SafeEval
SafeEval / poc-turbo-intruder-messageinfo-comment.py
Created March 7, 2021 03:08
PoC: Automatic commenting from Burp Turbo Intruder scripts
"""
poc-turbo-intruder-messageinfo-comment.py
Jack Sullivan <jack@divergent.codes>
This is a Burp Turbo Intruder PoC that shows how to automatically set the comment
field from a Turbo Intruder script. Each comment will be persisted across other
Burp plugins, like Logger++.
The approach is to register a IHttpListener class that captures and exposes
interface=wlx00aa11bb22dd
# Driver for Alfa AWUS036ACH is 88XXau, but the default works for some reason.
# https://github.com/aircrack-ng/rtl8812au
#driver=nl80211
###########################################################
# AP Config
###########################################################
#!/bin/bash
# Hashicorp tool installation script.
# User defined variables.
TOOL_NAME="consul"
TOOL_VERSION="1.5.0"
# Composite variables.
TOOL_FILE="${TOOL_NAME}_${TOOL_VERSION}_linux_amd64.zip"
@SafeEval
SafeEval / plantuml
Last active May 19, 2019 23:59
PlantUML installation and launch scripts.
#!/bin/sh
# PlantUML Launcher
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This script distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
#!/bin/bash
# /etc/NetworkManager/dispatcher.d/02-wifi-iptables.sh
# Add iptables rules for specific wireless networks.
# Reset iptables rules when connections go down.
if [ "$2" = "up" ]; then
case $(iwgetid -r) in
"My Network Name")
iptables -I OUTPUT -j HOMELAN -m comment --comment "Home LAN chain";
@SafeEval
SafeEval / algovpn-ubuntu-install-wireguard.sh
Last active November 28, 2018 02:17
Automation scripts for Algo VPN
#!/bin/bash
###############################################################################
#
# Automatic installation of Algo generated WireGuard client, on Ubuntu.
#
# Usage:
# 1. Run Algo to setup a new VPN.
# 1. Run this script from the new Algo instance's config directory:
# ./algo/config/xxx.xxx.xxx.xxx/
@SafeEval
SafeEval / install-go.sh
Created April 27, 2017 19:34
Go installation script for Linux
#!/bin/sh
GO_VERSION="1.8.1"
GO_ARCHIVE="go$GO_VERSION.linux-amd64.tar.gz"
GO_CHECKSUM=$GO_ARCHIVE.sha256
GO_URL="https://storage.googleapis.com/golang"
TMP_DIR="/tmp/golang$GO_VERSION"
GO_DIR="/usr/local"
@SafeEval
SafeEval / docker-debian8.sh
Created March 20, 2017 17:46
Install Docker on a Debian 8 (Jessie) system.
#!/bin/bash
################################################
# Install Docker on a Debian 8 (Jessie) system.
################################################
# Check current OS and kernel version
lsb_release -a; uname -r