2013-08-16 15:12:47 +00:00
# ZMap Copyright 2013 Regents of the University of Michigan
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
# zmap option description to be processed by gengetopt
package "zmap"
version "1.0.0"
purpose "A fast Internet-wide scanner."
section "Basic arguments"
option "target-port" p "TCP port number to scan (for SYN scans)"
typestr="port"
optional int
option "output-file" o "Output file"
typestr="name"
optional string
option "blacklist-file" b "File of subnets to exclude, in CIDR notation, e.g. 192.168.0.0/16"
typestr="path"
optional string
option "whitelist-file" w "File of subnets to constrain scan to, in CIDR notation, e.g. 192.168.0.0/16"
typestr="path"
optional string
2013-08-19 07:02:52 +00:00
option "output-fields" f "Fields that should be output in result set"
typestr="fields"
optional string
2013-08-16 15:12:47 +00:00
section "Scan options"
option "max-targets" n "Cap number of targets to probe (as a number or a percentage of the address space)"
typestr="n"
optional string
option "max-results" N "Cap number of results to return"
typestr="n"
optional int
option "max-runtime" t "Cap length of time for sending packets"
typestr="ses"
optional int
option "rate" r "Set send rate in packets/sec"
typestr="pps"
optional int
option "bandwidth" B "Set send rate in bits/second (supports suffixes G, M and K)"
typestr="bps"
optional string
option "cooldown-time" c "How long to continue receiving after sending last probe"
typestr="secs"
default="8"
optional int
option "seed" e "Seed used to select address permutation"
typestr="n"
optional int
option "sender-threads" T "Threads used to send packets"
typestr="n"
default="1"
optional int
2013-08-19 07:02:52 +00:00
option "probes" P "Number of probes to send to each IP"
2013-08-16 15:12:47 +00:00
typestr="n"
default="1"
optional int
2013-08-19 07:02:52 +00:00
option "dryrun" d "Don't actually send packets"
2013-08-16 15:12:47 +00:00
optional
section "Network options"
option "source-port" s "Source port(s) for scan packets"
typestr="port|range"
optional string
2013-08-19 07:02:52 +00:00
option "source-ip" S "Source address(es) for scan packets"
2013-08-16 15:12:47 +00:00
typestr="ip|range"
optional string
option "gateway-mac" G "Specify gateway MAC address"
typestr="addr"
optional string
2013-08-19 07:02:52 +00:00
option "interface" i "Specify network interface to use"
2013-08-16 15:12:47 +00:00
typestr="name"
optional string
2013-08-31 19:38:13 +00:00
option "vpn" X "Sends IP packets instead of Ethernet (for VPNs)"
optional
2013-08-16 15:12:47 +00:00
section "Advanced options"
option "probe-module" M "Select probe module"
typestr="name"
default="tcp_synscan"
optional string
option "output-module" O "Select output module"
typestr="name"
2013-08-31 19:38:13 +00:00
default="csv"
2013-08-16 15:12:47 +00:00
optional string
2013-08-19 07:02:52 +00:00
option "probe-args" - "Arguments to pass to probe module"
2013-08-16 15:12:47 +00:00
typestr="args"
optional string
option "output-args" - "Arguments to pass to output module"
typestr="args"
optional string
2013-08-19 07:02:52 +00:00
option "list-output-modules" - "List available output modules"
2013-08-16 15:12:47 +00:00
optional
2013-08-19 07:02:52 +00:00
option "list-probe-modules" - "List available probe modules"
2013-08-16 15:12:47 +00:00
optional
2013-08-19 07:02:52 +00:00
option "list-output-fields" - "List all fields that can be output by selected probe module"
optional
2013-08-16 15:12:47 +00:00
section "Additional options"
2013-08-19 07:02:52 +00:00
option "config" C "Read a configuration file, which can specify any of these options"
2013-08-16 15:12:47 +00:00
typestr="filename"
default="/etc/zmap/zmap.conf"
optional string
2013-08-19 07:02:52 +00:00
option "quiet" q "Do not print status updates"
2013-08-16 15:12:47 +00:00
optional
2013-08-19 07:02:52 +00:00
option "summary" g "Print configuration and summary at end of scan"
2013-08-16 15:12:47 +00:00
optional
2013-08-19 07:02:52 +00:00
option "verbosity" v "Level of log detail (0-5)"
2013-08-16 15:12:47 +00:00
typestr="n"
default="3"
optional int
2013-08-19 07:02:52 +00:00
option "help" h "Print help and exit"
2013-08-16 15:12:47 +00:00
optional
2013-08-19 07:02:52 +00:00
option "version" V "Print version and exit"
2013-08-16 15:12:47 +00:00
optional
text "\nExamples:\n\
zmap -p 443 (scans the whole Internet for hosts with port 443 open)\n\
zmap -N 5 -B 10M -p 80 -o - (find 5 HTTP servers, scanning at 10 Mb/s)"