n3cr0 secure shell v2.0.26
initializing encrypted connection...
loading cyber warfare modules...
red team: READY
blue team: READY
purple team: READY
HTB integration: ONLINE
access granted. welcome, operator.

Tools Reference

Quick reference for the tools you will use most. Not exhaustive - focused on what you actually need for HTB machines and the CJCA exam.

Quick Index


Reconnaissance and Scanning

nmap

The network scanner. If you learn one tool, learn this one.

Flag What It Does
-sS SYN scan (stealth, default if root)
-sT TCP connect scan (use when no root)
-sV Service version detection
-sC Default script scan (runs NSE default scripts)
-O OS detection
-p- Scan all 65535 ports
-p 1-1000 Scan specific port range
--script=vuln Run vulnerability scripts
--script-args Pass arguments to scripts
-oN file Output to file in normal format
-oG file Output to file in grepable format
-T4 Timing template (0=slow, 5=fast)
-A Aggressive (equals -sV -sC -O --traceroute)
-Pn Skip host discovery, scan anyway
-n No DNS resolution (faster)

Common combos:

gobuster

Directory and subdomain brute-forcer.

ffuf

Faster alternative to gobuster. More flexible.

subfinder / amass

Subdomain enumeration from public sources (passive recon).

Web Application Testing

Burp Suite

Web proxy for intercepting, modifying, and fuzzing HTTP traffic.

Core features: Workflow:
  1. Configure browser to use Burp as proxy (127.0.0.1:8080)
  2. Browse the target site, let Burp capture traffic
  3. Send interesting requests to Repeater
  4. Modify parameters, headers, bodies to test for vulnerabilities
  5. Use Intruder for automated fuzzing

sqlmap

SQL injection automation. Finds and exploits SQLi.

WPScan

WordPress vulnerability scanner.

Exploitation

Metasploit Framework

The exploitation framework. Huge module library.

Core commands: Post-exploitation: msfvenom (payload generation):

searchsploit

Search Exploit-DB locally (offline database).

Privilege Escalation

LinPEAS

Linux privilege escalation enumeration script. Run it first, read everything.

WinPEAS

Windows equivalent of LinPEAS.

Manual Linux Privesc Checklist

Manual Windows Privesc Checklist

Password Cracking

Hashcat

GPU-accelerated password cracking. Fast if you have a GPU.

Common modes: 0=MD5, 100=SHA-1, 1400=SHA-256, 1000=NTLM, 1800=sha512crypt, 3200=bcrypt, 13100=Kerberoasting

John the Ripper

CPU-based password cracking. Good when no GPU available.

hash-identifier

Identify hash type when you do not know the format.

Blue Team Tools

Elastic Stack (ELK)

SIEM platform. Elasticsearch stores and searches logs, Logstash processes them, Kibana visualizes them, Beats ships logs from endpoints.

KQL (Kibana Query Language) basics:

Wireshark

Network traffic analysis. Capture and inspect packets.

Common filters:

Sysmon

Windows endpoint monitoring. Logs process creation, network connections, file changes, DLL loading, and more. Configured via XML policy file.

Essential Sysmon events:

YARA

Malware pattern matching. Write rules to identify malware families.

rule suspicious_powershell_download {
    strings:
        $a = "System.Net.WebClient"
        $b = "DownloadString"
        $c = "Invoke-Expression"
        $d = "IEX"
    condition:
        3 of ($a, $b, $c, $d)
}

Sigma

Generic detection rules. Write once, convert to any SIEM format (Elastic, Splunk, Sentinel).

title: Suspicious PowerShell Download and Execute
logsource:
    product: windows
    category: process_creation
detection:
    selection:
        Image: '*\\powershell.exe'
        CommandLine: '*DownloadString*'
    condition: selection
level: high

Wordlists

Useful One-Liners

Reverse Shells

File Transfer

Port Forwarding

- chisel: chisel server -p 8080 --reverse (on attacker) / chisel client 10.10.14.1:8080 R:socks (on target)