Commands — Hub

Quick command cheatsheets — not full tool documentation. For deep dives see Tools.


📌 Linux

NotePurpose
Basic Commandsls, cd, ps, pwd basics
ln - symlinksln / ln -s — symlinks, privesc read via writable dirs
openssl passwdopenssl passwd -6 — hashes for writable /etc/passwd / shadow
netstatnetstat / ss — listeners, PIDs, pivot discovery
Port in Use - kill listenerPort already in use — find & kill process on Kali
Vim + terminal movementVim + terminal navigation
Base64Base64 encode/decode — files, pipes, exfil
Archives - unzip 7z zip7z, unzip, zipinfo — extract backup zips
Shebangs#!/bin/bash · #!/usr/bin/env python3 — script interpreter lines
sudosudo -l · sudoers · NOPASSWD · visudo · privesc
headhead -n 200 · first lines / bytes of a file
tcpdumpPacket capture · ICMP/ping to your IP · debug callbacks
tmuxSessions · attach/detach · keep listeners & scans alive
tartar xvf · create/extract · checkpoint privesc

Full Linux tooling: Linux ToolsText Processing, grep, find, Netcat, Curl

Redirects in this folder point to detailed notes in Tools:


📌 Windows

NotePurpose
Windows CMD - Powershell CommandsCMD & PowerShell hub
cmd.exe - Shells and One-Linerscmd /c · reverse shells · nc · Potato wrappers
certutilDownload/decode files
icaclsACL inspection
typeRead files
fpingHost discovery
netstatListeners + PIDs (Linux & Windows)
net userUser/group/password policy enum
gciPowerShell file enum (-Force, -Recurse)
tasklist and Get-ProcessWindows processes — lsass PID, AV hunting
schtasksTask Scheduler — enum and privesc
PowerShell CmdletsCmdlet hub — download, process, network, AD
PowerShell SnippetsTargeted PS one-liners + SS64 / Microsoft Learn links