Skip to content

Instantly share code, notes, and snippets.

@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
Declare PtrSafe Function DispCallFunc Lib "OleAut32.dll" (ByVal pvInstance As Long, ByVal offsetinVft As Long, ByVal CallConv As Long, ByVal retTYP As Integer, ByVal paCNT As Long, ByRef paTypes As Integer, ByRef paValues As Long, ByRef retVAR As Variant) As Long
Declare PtrSafe Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Declare PtrSafe Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Const CC_STDCALL = 4
Const MEM_COMMIT = &H1000
Const PAGE_EXECUTE_READWRITE = &H40
Private VType(0 To 63) As Integer, VPtr(0 To 63) As Long