Commands — Hub
Quick command cheatsheets — not full tool documentation. For deep dives see Tools.
📌 Linux
| Note | Purpose |
|---|---|
| Basic Commands | ls, cd, ps, pwd basics |
| ln - symlinks | ln / ln -s — symlinks, privesc read via writable dirs |
| openssl passwd | openssl passwd -6 — hashes for writable /etc/passwd / shadow |
| netstat | netstat / ss — listeners, PIDs, pivot discovery |
| Port in Use - kill listener | Port already in use — find & kill process on Kali |
| Vim + terminal movement | Vim + terminal navigation |
| Base64 | Base64 encode/decode — files, pipes, exfil |
| Archives - unzip 7z zip | 7z, unzip, zipinfo — extract backup zips |
| Shebangs | #!/bin/bash · #!/usr/bin/env python3 — script interpreter lines |
| sudo | sudo -l · sudoers · NOPASSWD · visudo · privesc |
| head | head -n 200 · first lines / bytes of a file |
| tcpdump | Packet capture · ICMP/ping to your IP · debug callbacks |
| tmux | Sessions · attach/detach · keep listeners & scans alive |
| tar | tar xvf · create/extract · checkpoint privesc |
Full Linux tooling: Linux Tools → Text Processing, grep, find, Netcat, Curl
Redirects in this folder point to detailed notes in Tools:
📌 Windows
| Note | Purpose |
|---|---|
| Windows CMD - Powershell Commands | CMD & PowerShell hub |
| cmd.exe - Shells and One-Liners | cmd /c · reverse shells · nc · Potato wrappers |
| certutil | Download/decode files |
| icacls | ACL inspection |
| type | Read files |
| fping | Host discovery |
| netstat | Listeners + PIDs (Linux & Windows) |
| net user | User/group/password policy enum |
| gci | PowerShell file enum (-Force, -Recurse) |
| tasklist and Get-Process | Windows processes — lsass PID, AV hunting |
| schtasks | Task Scheduler — enum and privesc |
| PowerShell Cmdlets | Cmdlet hub — download, process, network, AD |
| PowerShell Snippets | Targeted PS one-liners + SS64 / Microsoft Learn links |