Skip to content

Standard Scans

scripts/vulnscan_cli.sh runs a single-shot nmap scan against a target using one of four predefined modes. These are the v1.x-compatible scan modes, kept fully supported alongside the multi-phase Recon Pipeline. Use them when you want a fast, self-contained port or vulnerability scan without the full discovery, enumeration, and reporting stack.

Usage

vulnscan_cli.sh -m <mode> -t <target> [-o <csv>] [-x <nmap_opts>]
FlagDescription
-m <mode>Scan mode: quick, full, vuln, or custom (required)
-t <target>Target host, IP, CIDR, or nmap range, for example 192.168.1.1-20 (required)
-o <file>CSV export file (optional)
-x <opts>Extra nmap options, required for custom mode
-hShow help

Both -m and -t are required. An invalid mode or a missing argument prints usage and exits non-zero.

Scan Modes

ModeDescriptionUnderlying nmap
quickTop 1000 TCP portsnmap -T4 -F
fullAll 65535 TCP portsnmap -T4 -p-
vulnVulnerability detection with service versionsnmap -T4 -sV --script vuln
customUser-supplied nmap optionsnmap <user_options>

custom mode requires the -x flag. Passing -m custom without -x is an error, since there are no options to run.

Interactive Mode

For a menu-driven experience, run vulnscan_menu.sh instead. Options 1 through 4 map to the four standard scan modes, and higher-numbered options launch the recon pipeline and session upload.

bash
./scripts/vulnscan_menu.sh

Examples

bash
# Quick scan of a single host
./scripts/vulnscan_cli.sh -m quick -t 192.168.1.1

# Quick scan with CSV export
./scripts/vulnscan_cli.sh -m quick -t 192.168.1.1 -o quick_scan.csv

# Vulnerability scan of a subnet
./scripts/vulnscan_cli.sh -m vuln -t 192.168.1.0/24 -o vuln_results.csv

# Custom nmap options (SYN scan + OS detection + banner script)
./scripts/vulnscan_cli.sh -m custom -t 10.0.0.1 -x "-sS -O --script=banner"

Output and Logging

Scans write to a per-user log directory under your home directory (mode 700), and the log files themselves are created mode 600:

PathContents
$HOME/netvuln-tool/logs/vulnscan.logMain tool log
$HOME/netvuln-tool/logs/scan_results.logLatest scan results (nmap normal output)

When you pass -o, results are also exported to CSV with the columns IP, ScanMode, Timestamp, OpenPorts, Services.

Dependencies

nmap is required. If it is missing, the tool prompts to install it (in interactive shells) or exits with an error under CI, cron, or piped input. bash and coreutils round out the requirements. See Installation for platform-specific setup.

When to use the recon pipeline instead

Standard scans are ideal for a fast look at a single host or subnet. For client engagements that need DNS and WHOIS discovery, service enumeration, CVE lookups, risk scoring, and a self-contained HTML report, use the Recon Pipeline or the Python orchestrator.

Apache-2.0 licensed (appliance subtree proprietary)