ToolsintermediateUpdated: 8/2/2026

HackHub Nmap Tutorial: Master Network Scanning in 2026

Learn how to use Nmap in HackHub with this step-by-step tutorial covering scan types, NSE scripts, and pro tips for mapping in-game networks.

Nmap is the backbone reconnaissance tool inside HackHub, and this HackHub nmap tutorial walks you through every flag, scan type, and script that actually matters when you boot up the in-game terminal. Skip the guesswork and learn how experienced players map hostile networks, find hidden services, and pivot through firewalls without tripping a single IDS alarm.

Getting Started With Nmap Inside the HackHub Terminal

Before you fire off your first scan, you need to understand that Nmap inside HackHub behaves almost identically to the real-world Nmap reference guide maintained by Gordon Lyon. The in-game binary accepts the same flags, returns the same six port states (open, closed, filtered, unfiltered, open|filtered, closed|filtered), and reads from the same NSE script database that ships with the upstream release. That parity matters because any cheat sheet you find for real penetration testing will transfer directly to your HackHub missions.

Open the terminal by pressing ~ and type which nmap to confirm the binary is in your $PATH. Most starter rigs spawn with Nmap 7.94 already installed, but the Penetration Tester career track unlocks Nmap 7.95 with the new http-fingerprints library. If you want to verify the version, run nmap --version and compare the output against the official Nmap download page before you commit to a long scan.

A clean first-run setup looks like this:

  • Launch the terminal and run sudo nmap -sV -O scanme.nmap.org against the in-game reference host to verify your install
  • Confirm output includes lines like Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
  • Save the baseline output to ~/notes/nmap-baseline.txt so you have a known-good comparison target later

The -sV flag enables service version detection, which is what lets you tell Apache 2.4.57 from nginx 1.25.4 on a single port. Pair it with -O for OS detection and you will fingerprint the target host with about 95% accuracy according to community testing on the HackHub Discord. Players report the OS guess is most reliable on Linux and Windows Server targets, while consumer routers and IoT devices sometimes return a generic network device string.

Core Nmap Scan Types Every HackHub Operator Should Know

The HackHub nmap tutorial you are reading now would be useless without a clear breakdown of the four scan types the game expects you to master. Each one trades stealth for speed, accuracy for noise, or completeness for bandwidth, and picking the wrong one will either get you caught by the in-game intrusion detection system or leave you staring at a half-empty scan report.

TCP Connect and SYN Stealth Scans

The default scan in HackHub is -sT, the TCP Connect scan, which completes the three-way handshake and is therefore logged by every modern target. It is loud, slow, and obvious, which is why most operators switch to -sS once they unlock the Network Analyst skill at rank 12. The SYN scan sends only a SYN packet and waits for SYN-ACK before resetting the connection, so it never appears in application logs and only shows up in raw packet captures. The trade-off is that you need raw socket privileges, which means running HackHub as root or granting the binary cap_net_raw through the in-game firewall ruleset.

Scan FlagTechniqueDetection RiskSpeedPrivilege Required
-sTTCP ConnectVery HighSlowUser
-sSSYN StealthLowFastRoot / Raw
-sUUDP ScanMediumVery SlowRoot / Raw
-sAACK ScanLowFastRoot / Raw

UDP scanning (-sU) deserves special attention because it is the only way to surface services like SNMP, DNS, and TFTP inside HackHub. The catch is throughput: a full /24 UDP scan can take 18-22 minutes on the default timing template, while the equivalent TCP scan finishes in under 90 seconds. Players who want UDP coverage on a deadline usually combine -sU with --top-ports 50 to focus on the most commonly targeted services.

Timing and Performance Tuning

The -T flag family controls how aggressively Nmap hammers a target. Templates range from -T0 (paranoid, one probe every 5 seconds) to -T5 (insane, parallel probes with sub-second timeouts). Inside HackHub, the Network Stealth perk adds a hidden -T2 default that you have to override with -T4 if you want to speed things up during a race mission. Watch the in-game packet loss meter on the right side of the HUD; if it climbs above 12%, drop back to -T3 or the IDS countermeasures will start raising the alert level.

A practical timing ladder looks like this:

  • -T2 for hostile corporate networks with active sensors
  • -T3 for routine reconnaissance on neutral servers
  • -T4 for speedrun missions and puzzle boxes with timers
  • -T5 for offline capture-the-flag nodes where stealth is irrelevant

Advanced Nmap Scripting Engine Usage for HackHub Missions

Once you have the basics wired up, the Nmap Scripting Engine (NSE) is what separates casual scanners from players who can crack a hardened mainframe in under three minutes. NSE reads Lua scripts from /usr/share/nmap/scripts/ and lets you extend a basic port scan into a full vulnerability audit, brute-force attempt, or backdoor detection routine. HackHub ships with 604 of the upstream scripts plus 47 game-exclusive ones under the hackhub-* namespace, and you can see them all by running ls /usr/share/nmap/scripts/ | grep hackhub.

Vulnerability and Exploit Scripts

The two script categories that move the needle on HackHub contracts are vuln and exploit. The vuln category runs a battery of safe checks against every open port and reports CVE matches without actually exploiting them, while exploit scripts will attempt to leverage known weaknesses. For most story missions you want --script vuln because it surfaces intelligence without burning your one-time exploit tokens, but the Red Team Operator specialization removes the token cost on exploit scripts entirely.

Script CategorySample ScriptsUse CaseRisk Level
defaulthttp-title, ssh-hostkeyBaseline reconNone
vulnhttp-vuln-cve2021-44228, smb-vuln-ms17-010CVE discoveryLow
exploithttp-shellshock, ftp-vsftpd-backdoorActive compromiseHigh
hackhub-*hackhub-firmware-dump, hackhub-iot-defaultsGame-specificVariable

A typical vulnerability sweep looks like nmap -p- --script vuln 10.10.0.5, which scans every port and runs the entire safe-checking library against the host. Community benchmarks show this command averages 4-7 minutes per host on the -T4 template, and the JSON output is written to a file you can pipe directly into the HackHub mission report generator.

Brute-Force and Credential Scripts

When a mission hands you a login screen and a hunch about the password, the brute category is your fastest path through. Scripts like ssh-brute, ftp-brute, and http-form-brute read from a wordlist you specify with --script-args userdb=/path/to/users.txt,passdb=/path/to/passwords.txt. The default wordlist inside HackHub lives at /opt/hackhub/wordlists/rockyou-mini.txt with about 14 million entries, and you can unlock the full 32-million-line rockyou.txt by completing the Data Heist side quest chain.

Pair brute scripts with --script-timeout 120s to keep a slow target from stalling your whole sweep, and always wrap the command in a tmux session so a network blip does not kill your progress. If you want to learn how other tools complement Nmap during credential work, our walkthrough on Wireshark traffic analysis covers the packet-capture side of the same workflow.

HackHub-Specific Network Mapping Strategies

The in-game world of HackHub is divided into seven corporate zones, each with its own firewall policy, IDS vendor, and subnet layout. Knowing which scan profile to apply per zone is the difference between finishing a contract in fifteen minutes and getting locked out of the terminal for three real-time hours. Below is the mapping most experienced operators settle on after a few dozen runs.

ZonePrimary FirewallRecommended ScanDecoy Required
NexusCorppfSense 2.7-sS -T2 --script safeNo
Helix IndustriesCisco ASA 9.18-sS -f --mtu 24Yes
Orbital DefenseCustom NGFW-sS -D RND:5 --randomize-hostsYes
Blackwater Hostingiptables-sS -T4No
Stratos BankPalo Alto 11.0-sS --source-port 53 -fYes
Tiberian LabsSophos XG-sS --data-length 50Yes
Lattice UniversityOpenBSD pf-sT -T3No

Decoy and Fragmentation Tricks

When a zone flags Decoy Required, the in-game IDS correlates your source IP against the known scanner signature database. You can defeat this with -D RND:5, which injects five random decoy source addresses into every probe, or with -S <spoofed_ip> if you have unlocked the Spoofer certification. Pair either flag with --randomize-hosts so the scan order does not betray your location through sequential IP progression, and add -f --mtu 24 to fragment the packets below the IDS reassembly threshold of 32 bytes.

The most reliable evasion chain community operators share on the HackHub Discord is:

  • -sS -f --mtu 16 -D RND:10,ME --data-length 32 --randomize-hosts --scan-delay 500ms
  • Wrap the scan in a proxychains nmap ... tunnel routed through a previously compromised relay
  • Issue the scan from a disposable burner VM so any callback traffic traces back to a throwaway asset

This combination has a reported 87% pass rate against the Orbital Defense custom NGFW according to community testing, and it is the configuration the in-game tutorial NPCs recommend once you reach Chapter 7.

Pro Tips and Common Pitfalls in the HackHub Nmap Workflow

Even with the right flags, sloppy habits will burn your scan window and expose your position. The five most common mistakes new operators make are skipping the service version detection flag, forgetting to save output to a file, running scans as a non-root user when raw sockets are required, ignoring the --reason flag that explains why each port ended up in its final state, and leaving the default 1000-port range when a target is running non-standard services on high ports.

MistakeSymptomFix
No -sVService banner shows generic tcpwrappedAdd -sV --version-intensity 7
No -oA outputLost scan results after a crashAlways use -oA ~/scans/<name>
No root privileges-sS silently downgrades to -sTRun inside sudo -E nmap ...
Missing --reasonCannot debug a stuck portAppend --reason to every command
Default port rangeMisses services on 8080, 8443, 9090Use -p- or -p 1-65535

Another habit worth building is aliasing your favorite scan profiles in ~/.bashrc so you can fire them off with a single keyword. A common pattern looks like alias quickscan='nmap -sS -T4 -F --open -oA ~/scans/quick' and alias deepscan='nmap -sS -p- -T4 -sV -sC --reason -oA ~/scans/deep'. After twenty hours of play, your muscle memory will pick the right alias before you finish typing the target IP.

Finally, remember that every scan you launch inside HackHub is logged to the in-game SOC dashboard, and a long streak of suspicious activity will lock your character out of the terminal for 30 real-time minutes. Spread your reconnaissance across multiple burner identities, schedule noisy scans during the in-game maintenance windows (02:00-04:00 server time), and pair this nmap tutorial with a solid opsec routine so your reputation score never dips below the Neutral threshold. For a complementary look at packet-level forensics after a scan, check our guide on HackHub Wireshark packet analysis to round out your recon toolkit.

Frequently Asked Questions

What is the fastest way to learn Nmap inside HackHub?

Start with the in-game tutorial mission OPERATION_FIRST_SCAN, then run nmap -sS -sV scanme.nmap.org from the starter terminal. Community data shows players who finish both steps within the first hour finish the campaign about 25% faster than those who skip the tutorial, because the basic flag vocabulary is reused across every later mission.

Do I need root privileges to run SYN scans in HackHub?

Yes. The -sS flag requires raw socket access, and the in-game binary will silently fall back to -sT if you are not root. Run sudo -E nmap -sS <target> from inside a tmux session so your environment variables and scan history persist across privilege escalations.

Which Nmap script should I run first on a hostile subnet?

Begin with --script safe to avoid any payload that could be flagged by the IDS, then escalate to --script vuln once you confirm the network is not actively monitoring. According to community reports, safe returns useful intelligence on roughly 60% of story-mission targets without triggering countermeasures, making it the best opening move on an unknown network.

How long does a full port scan take inside HackHub?

A -p- scan against a single host averages 6-9 minutes on the default -T3 template, but you can cut that to under 2 minutes by switching to -T4 and adding --min-rate 5000. Watch the in-game CPU meter on your virtual rig, because pushing past 90% utilization will throttle the scan and slow you down instead of speeding things up.

Can I use Nmap against player-hosted servers in HackHub?

Only if the host has explicitly enabled the allow_external_recon flag on their firewall. Attempting to scan a closed port triggers the in-game Trespass Detection achievement on the defender's profile, and repeated violations can land your account in the HackHub tribunal queue for review.