Skip to content

Instantly share code, notes, and snippets.

View jessejjohnson's full-sized avatar

Jesse Johnson jessejjohnson

View GitHub Profile
@garagon
garagon / wifi-pentesting-cheatsheet.md
Created February 17, 2026 13:27
WiFi Pentesting Cheat Sheet — Monitor mode, WPA/WPA2 handshake capture, PMKID attack, Evil Twin, WPS attacks

WiFi Pentesting Cheat Sheet

Wireless network security testing commands and workflows for authorized assessments.

Interface Setup

# List wireless interfaces
iwconfig
iw dev
@garagon
garagon / docker-security-hardening.md
Created February 17, 2026 13:27
Docker Security Hardening Checklist — Image security, runtime hardening, network segmentation, secret management

Docker Security Hardening Checklist

Best practices for securing Docker containers and the Docker host in production.

1. Image Security

Use Minimal Base Images

# Bad - full OS with unnecessary packages
FROM ubuntu:latest
@garagon
garagon / hashcat-john-cheatsheet.md
Created February 17, 2026 13:27
Password Cracking Cheat Sheet — Hashcat modes, John the Ripper, hash identification, wordlist generation, rules

Password Cracking Cheat Sheet — Hashcat & John the Ripper

Quick reference for hash identification, cracking modes, and common attack patterns.

Hash Identification

# Identify hash type
hashid 'HASH_VALUE'
hash-identifier
@garagon
garagon / osint-toolkit.md
Created February 17, 2026 13:27
OSINT Toolkit — DNS recon, subdomain enum, email/username OSINT, Shodan, GitHub dorking, passive recon script

OSINT Toolkit — Open Source Intelligence Reference

Tools and techniques for passive reconnaissance and information gathering.

Domain & DNS Reconnaissance

# WHOIS lookup
whois target.com
@garagon
garagon / nmap-cheatsheet.md
Created February 17, 2026 13:27
Nmap Cheat Sheet — Quick Reference for network scanning, port enumeration, NSE scripts, and real-world scan combos

Nmap Cheat Sheet — Quick Reference (2025)

Practical Nmap commands for network discovery, port scanning, and vulnerability assessment.

Host Discovery

# Ping sweep (find live hosts)
nmap -sn 192.168.1.0/24
@SomeHats
SomeHats / runDevBrowser.mjs
Last active February 26, 2025 16:13
A hacky local version of cloudflare's browser rendering API. To use this, copy either runDevBrowser.ts or runDevBrowser.mjs and install the puppeteer and ws packages from npm. Run the dev server alongside wranger with `node runDevServer.mjs` or `tsx runDevServer.ts`
/* eslint-disable no-console */
/***
* This is a little server that emulates the protocol used by cloudflare's browser rendering API. In
* local development, you can run this server, and connect to it instead of cloudflare's (strictly
* limited) API. e.g. in your worker you might use a function like this:
*
* ```ts
* import { Browser, launch as launchPuppeteer } from '@cloudflare/puppeteer'
* function launchBrowser(env: Environment) {
* if (env.LOCAL_BROWSER_ORIGIN) {
@ngraf
ngraf / PlaywrightNetwork.js
Last active February 4, 2024 03:15
CodeceptJS helper for test/block/mock network traffic with Playwright
const assert = require('assert');
/**
* Helps you test network traffic with Playwright.
*
* - mockTraffic
* - blockTraffic
* - startRecordingTraffic
* - seeTraffic
* - dontSeeTraffic
@dmozgovoi
dmozgovoi / HttpClient.ts
Created October 19, 2022 08:00
HttpClient variation with flexible output format parsing
import * as http from 'http';
import * as https from 'https';
import got, { Got, ExtendOptions, Headers, CancelableRequest, Response } from 'got';
import CacheableLookup from 'cacheable-lookup';
import { decodeData, TypeOf, TSchema } from '../decoder';
export const DefaultHttpClientOptions = {
keepAlive: true,
maxSockets: 10,
action_pool_depth
Current value (from the default) = -1
From //build/toolchain/BUILD.gn:11
Pool for non goma tasks.
added_rust_stdlib_libs
Current value (from the default) = []
From //build/config/rust.gni:44