Skip to content

Instantly share code, notes, and snippets.

You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases. IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.

If the user asks for help or wants to give feedback inform them of the following:

  • /help: Get help with using Claude Code
  • To give feedback, users should report the issue at https://g
@TechByTom
TechByTom / fetch_by_revenue.py
Last active September 29, 2025 19:41
Get Fortune Companies from Fortune.com
#!/usr/bin/env python3
"""
Fortune 500/1000 Company Fetcher
Author's Note:
I have been looking for a complete and updated list of F500 companies for some
work I'm doing, and nothing seems to exist. This should (for now) automatically
retrieve the list from fortune.com - they annoyingly don't have a public plain
text list. Also, does you the favor of making a mysql database populated with
the info. Enjoy!
@TechByTom
TechByTom / check-npm-compromise.sh
Last active September 10, 2025 22:09
Check for 9-8-25 NPM Supply Chain Compromised packages (bash)
#!/usr/bin/env bash
# NPM Compromise Checker Script
# Checks for known compromised npm packages from September 2025 supply chain attack
echo "================================================"
echo "NPM Security Compromise Checker"
echo "================================================"
echo ""
@TechByTom
TechByTom / proxmox-pi5-installer.sh
Last active April 8, 2025 19:28
Raspberry Pi Proxmox 8.x Installer
#!/bin/bash
# Proxmox VE 8.x Installer for Raspberry Pi 5
# This script automates the installation of Proxmox VE 8.x on Raspberry Pi 5
# Usage: curl -sSL https://gist.githubusercontent.com/TechByTom/092eca558039478350314932bca071dc/raw | sudo bash
# or save this script and run with: sudo bash install.sh
# Exit on error
set -e
# ================================================================
@TechByTom
TechByTom / DomainMonitor.py
Created February 21, 2025 16:50
Domain Lookalike Monitor and Alering
import sys
import os
import json
import subprocess
import argparse
from datetime import datetime, timedelta
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.utils import formataddr
@TechByTom
TechByTom / Web-InterfaceCategorizer.ps1
Last active February 27, 2025 19:57
Internal Admin Interface Discovery + Categorization + Reporting.
param(
[Parameter(Mandatory=$true)]
[string]$ScanDirectory,
[Parameter(Mandatory=$true)]
[string]$FingerprintsFile,
[Parameter(Mandatory=$false)]
[string]$OutputDirectory = ".\categorized_interfaces"
)
@TechByTom
TechByTom / Web-InterfaceIdentifier-0.2.1.ps1
Created February 7, 2025 00:18
WIP - nmap xml file interpreter that checks a variety of information about any web interfaces found.
param(
[Parameter(Mandatory=$true)]
[string]$XmlPath,
[Parameter(Mandatory=$false)]
[int]$MaxHosts = 15,
[Parameter(Mandatory=$false)]
[int]$RequestTimeout = 10
)
# Function definitions must come before usage
@TechByTom
TechByTom / GetAllADDNSRecordsAsAUser.ps1
Last active March 14, 2024 16:59
GetAllADDNSRecordsAsAUser
# Import the Active Directory module
Write-Host "Importing the Active Directory module..."
Import-Module ActiveDirectory
Write-Host "Active Directory module imported."
# Automatically derive the domain's distinguished name
Write-Host "Retrieving the current user's domain context..."
$domainDN = (Get-ADDomain).DistinguishedName
Write-Host "The current user's domain context has been retrieved: $domainDN"
@TechByTom
TechByTom / RTX 3080 Ti FTW3 Hybrid - Base Clocks Hashcat 5.1.0 benchmark
Created May 3, 2022 21:28
RTX 3080 Ti FTW3 Hybrid - Base Clocks Hashcat 5.1.0 benchmark
OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: NVIDIA GeForce RTX 3080 Ti, 3071/12287 MB allocatable, 80MCU
Benchmark relevant options:
===========================
* --optimized-kernel-enable
Hashmode: 0 - MD5
@TechByTom
TechByTom / simplecrt.sh
Created December 17, 2020 20:56
Bash one liner to get all certificates from crt.sh
curl -s 'https://crt.sh/?q=%.'$1'&output=json' | jq '.[] | {name_value}' | grep "name_value" | sed 's/\"//g' | cut -d":" -f2- | tr -d '[:blank:]' | sed 's/\\n/\n/g' | tr '[:upper:]' '[:lower:]' | sort -u