FLOW ^: Pentest Workflow

HTB Pentest Workflow — CPTS Cheat Sheets

Focused CPTS reference cards for services, applications, privilege escalation, shells, TTY handling, and post-exploitation.

intermediate updated 2026-08-29

HTB Pentest Workflow — CPTS Cheat Sheets

[!dashboard] Workspace Sibling section: HTB Pentest Attack Flow — the end-to-end kill chain.

This section keeps six CPTS reference cards together: common services, common applications, Linux and Windows privilege escalation, web shells, and TTY/restricted-shell handling. Use them as focused lookups alongside the linear attack-flow playbook.

Source modules: 8 · Shells and Payloads · 11 · Attacking Common Services · 24 · Attacking Common Applications · 25 · Linux Privilege Escalation · 26 · Windows Privilege Escalation

[!warning] Authorized targets only Every command here is for engagements or labs where you hold explicit written permission. Record scope, timestamps, commands, and evidence as you work; prefer the least invasive test that proves the path.

Quick Setup

[!tip] Set the engagement context once Keep target details in the shell so commands stay readable and target mix-ups are less likely.

export IP="10.10.10.10"
export TARGET="target.htb"
export DOMAIN="inlanefreight.local"
export LHOST="10.10.14.2"
export U="username"
export P="password"
printf '%s\t%s\n' "$IP" "$TARGET" | sudo tee -a /etc/hosts

Where these fit in the kill chain

Where these cards fitLR
Recon / Host Discovery What answered? Attacking CommonApplications Attacking CommonServices Web shellwhen the stack supports it Raw foothold TTY / interactiveshell upgrade Target OS? Linux PrivEsc Windows PrivEsc root SYSTEM / admin Loot · Pivot · Report web app on a port(WP, Tomcat, Jenkins…) network service(FTP, SMB, SQL, RDP, DNS, SMTP) Linux Windows

Section Index

#Cheat SheetCovers
01Attacking Common Services · Full walkthrough guide · Field manualOne-stop attack surface card, a section-by-section module walkthrough, plus a long-form field manual for FTP · SMB · SQL (MySQL/MSSQL) · RDP · DNS · Email (SMTP/POP3/IMAP), evidence, cleanup, failure analysis, and multi-service chains
02Attacking Common ApplicationsFingerprint-to-foothold chains for WordPress · Joomla · Drupal · Tomcat · Jenkins · Splunk · PRTG · osTicket · GitLab · CGI/Shellshock · ColdFusion · IIS Tilde · LDAP/Mass-Assignment
03Linux Privilege EscalationLinux root paths: enumeration · cron/systemd/PATH · credentials · sudo · containers/Kubernetes · kernel/SUID/capabilities · NFS/tmux/logrotate
04Windows Privilege EscalationWindows SYSTEM/admin paths: token and group abuse · UAC · services/registry · scheduled tasks/autoruns · kernel/DLL · credentials · LOLBAS
05Web ShellsTurning file upload into code execution — defaults to the bundled rp-shell family (PHP/ASP/ASPX/JSP) · stack selection · upload paths and filters · validation · troubleshooting · cleanup
06TTY Upgrades & Restricted ShellsStabilizing the foothold: PTY allocation · stty/socat/listeners · geometry/signals · SSH · Meterpreter · rbash escapes · Windows ConPTY

Operator Toolkit — bundled attachments fas:Toolbox

Every binary and script below ships in this note’s attachments/ folder so the cards work offline. Stage them on your attack box, transfer with the methods in sheet 01, and clean up per each card’s opsec notes.

FilePlatformPurposeFirst used in
PrintSpoofer64.exe (SHA-256 · GPG signature)WindowsSeImpersonate → SYSTEM LPE (needs Print Spooler)Sheet 04 · AEN module
GodPotato-NET4.exe (SHA-256 · GPG signature)
GodPotato-NET35.exe (SHA-256 · GPG signature)
WindowsSeImpersonate → SYSTEM when Spooler is disabled (Server 2012–2022 / Win8–11)Sheet 04
nc64.exe (SHA-256 · GPG signature)Windowsnc.exe stand-in — reverse-shell callbacks & pivotsSheet 04 · Sheet 06
winPEASx64.exe (SHA-256 · GPG signature)
winPEASany.exe (SHA-256 · GPG signature)
WindowsAutomated privesc enumerationSheet 04
linpeas.sh (SHA-256 · GPG signature)
linpeas_linux_amd64 (SHA-256 · GPG signature)
LinuxAutomated privesc enumerationSheet 03
pspy64 (SHA-256 · GPG signature)
pspy32 (SHA-256 · GPG signature)
LinuxUnprivileged process / cron monitoringSheet 03
chisel.exe (SHA-256 · GPG signature)
chisel_linux_amd64 (SHA-256 · GPG signature)
Win / LinuxFast SOCKS / port-forward tunnelingSheet 01 · Sheet 06
ligolo-ng_agent_windows_amd64.zip (SHA-256 · GPG signature)
ligolo-ng_agent_linux_amd64.tar.gz (SHA-256 · GPG signature)
Win / LinuxTUN-based pivoting (replaces proxychains)Sheet 01 · Sheet 06
mimikatz_trunk.zip (SHA-256 · GPG signature)WindowsCredential extraction, DCSyncSheet 04
SharpHound.zip (SHA-256 · GPG signature)WindowsBloodHound collector (exe + ps1)Sheet 04
PowerView.ps1 (SHA-256 · GPG signature)WindowsAD enumeration / ACL abuseSheet 04
PowerUp.ps1 (SHA-256 · GPG signature)WindowsPrivesc checksSheet 04
nt-webshell-rosepine.aspx (SHA-256 · GPG signature)
rp-shell.php (SHA-256 · GPG signature)
rp-shell.asp (SHA-256 · GPG signature)
rp-shell.jsp (SHA-256 · GPG signature)
WebWeb shells (Rosé Pine UI)Sheet 05
SHA256SUMS (GPG signature)Integrity record for the whole bundleAll sheets

[!tip]+ Verify before you fire fas:Lightbulb Run sha256sum -c SHA256SUMS.txt against the bundle before staging anything — a corrupted or tampered binary wastes an engagement. Expect AV/EDR to flag every offensive tool here; plan obfuscation, in-memory execution, or exclusion-aware staging accordingly. If you ever need to re-download, pull originals only from the official GitHub releases:

Modern replacements ris:Refresh

Several tools named in older HTB modules and walkthroughs are deprecated or renamed. Map them before following an old writeup verbatim.

Legacy / module namingUse insteadWhy
CrackMapExecNetExec (nxc)Maintained fork; same workflow, active development
enum4linuxenum4linux-ngPython 3 rewrite, richer output, maintained
secretsdump.pyimpacket-secretsdumpNew impacket entry-point naming
proxychains + ssh -Dligolo-ngReal TUN interface — no per-tool proxy wrapping, supports reverse connections
BloodHound LegacyBloodHound CECurrent release; legacy GUI is end-of-life

Progress

How to use these cards

  • Fingerprint first. Don’t run a WordPress attack chain against Joomla, or MSSQL syntax against MySQL. Each card opens with a detection block.
  • Misconfig before CVE. Default creds, anonymous auth, and exposed management interfaces land more boxes than memory-corruption CVEs — check those first.
  • One target per command. Use the $IP/$TARGET vars so you never fire at the wrong host.
  • Stage from the toolkit. The binaries and shells referenced across the cards are bundled above — verify hashes, then move them to target with the transfer primitives in sheet 01.
  • Everything is loot. Config files, connection strings, and service accounts found here feed credential hunting and lateral movement.
  • Choose the OS card after foothold. Begin with native, read-only enumeration; rank token/privilege and configuration paths before testing a kernel exploit.
  • Treat shell quality as its own step. Validate a web shell carefully, then allocate and stabilize a PTY before commands that require prompts, signals or screen handling.

[!navigation] Jump in Services: 01 - Attacking Common Services - CPTS Cheat Sheet · Applications: 02 - Attacking Common Applications - CPTS Cheat Sheet · Linux PrivEsc: 03 - Linux Privilege Escalation - CPTS Cheat Sheet · Windows PrivEsc: 04 - Windows Privilege Escalation - CPTS Cheat Sheet · Web Shells: 05 - Web Shells - CPTS Cheat Sheet · TTY: 06 - TTY Upgrades and Restricted Shells - CPTS Cheat Sheet