zopt.ggo 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. # ZMap Copyright 2013 Regents of the University of Michigan
  2. # Licensed under the Apache License, Version 2.0 (the "License"); you may not
  3. # use this file except in compliance with the License. You may obtain a copy of
  4. # the License at http://www.apache.org/licenses/LICENSE-2.0
  5. # zmap option description to be processed by gengetopt
  6. package "zmap"
  7. version "2.1.0-RC1"
  8. purpose "A fast Internet-wide scanner."
  9. section "Basic arguments"
  10. option "target-port" p "port number to scan (for TCP and UDP scans)"
  11. typestr="port"
  12. optional int
  13. option "output-file" o "Output file"
  14. typestr="name"
  15. optional string
  16. option "blacklist-file" b "File of subnets to exclude, in CIDR notation, e.g. 192.168.0.0/16"
  17. typestr="path"
  18. optional string
  19. option "whitelist-file" w "File of subnets to constrain scan to, in CIDR notation, e.g. 192.168.0.0/16"
  20. typestr="path"
  21. optional string
  22. section "Scan options"
  23. option "rate" r "Set send rate in packets/sec"
  24. typestr="pps"
  25. optional int
  26. option "bandwidth" B "Set send rate in bits/second (supports suffixes G, M and K)"
  27. typestr="bps"
  28. optional string
  29. option "max-targets" n "Cap number of targets to probe (as a number or a percentage of the address space)"
  30. typestr="n"
  31. optional string
  32. option "max-runtime" t "Cap length of time for sending packets"
  33. typestr="ses"
  34. optional int
  35. option "max-results" N "Cap number of results to return"
  36. typestr="n"
  37. optional int
  38. option "probes" P "Number of probes to send to each IP"
  39. typestr="n"
  40. default="1"
  41. optional int
  42. option "cooldown-time" c "How long to continue receiving after sending last probe"
  43. typestr="secs"
  44. default="8"
  45. optional int
  46. option "seed" e "Seed used to select address permutation"
  47. typestr="n"
  48. optional longlong
  49. option "retries" - "Max number of times to try to send packet if send fails"
  50. typestr="n"
  51. default="10"
  52. optional int
  53. option "dryrun" d "Don't actually send packets"
  54. optional
  55. option "shards" - "Set the total number of shards"
  56. typestr="N"
  57. optional int
  58. default="1"
  59. option "shard" - "Set which shard this scan is (0 indexed)"
  60. typestr="n"
  61. optional int
  62. default="0"
  63. section "Network options"
  64. option "source-port" s "Source port(s) for scan packets"
  65. typestr="port|range"
  66. optional string
  67. option "source-ip" S "Source address(es) for scan packets"
  68. typestr="ip|range"
  69. optional string
  70. option "gateway-mac" G "Specify gateway MAC address"
  71. typestr="addr"
  72. optional string
  73. option "source-mac" - "Source MAC address"
  74. typestr="addr"
  75. optional string
  76. option "interface" i "Specify network interface to use"
  77. typestr="name"
  78. optional string
  79. option "vpn" X "Sends IP packets instead of Ethernet (for VPNs)"
  80. optional
  81. section "Probe Modules"
  82. option "probe-module" M "Select probe module"
  83. typestr="name"
  84. default="tcp_synscan"
  85. optional string
  86. option "probe-args" - "Arguments to pass to probe module"
  87. typestr="args"
  88. optional string
  89. option "list-probe-modules" - "List available probe modules"
  90. optional
  91. section "Data Output"
  92. option "output-fields" f "Fields that should be output in result set"
  93. typestr="fields"
  94. optional string
  95. option "output-module" O "Select output module"
  96. typestr="name"
  97. default="default"
  98. optional string
  99. option "output-args" - "Arguments to pass to output module"
  100. typestr="args"
  101. optional string
  102. option "output-filter" - "Specify a filter over the response fields to limit what responses get sent to the output module"
  103. typestr="filter"
  104. optional string
  105. option "list-output-modules" - "List available output modules"
  106. optional
  107. option "list-output-fields" - "List all fields that can be output by selected probe module"
  108. optional
  109. section "Logging and Metadata"
  110. option "verbosity" v "Level of log detail (0-5)"
  111. typestr="n"
  112. default="3"
  113. optional int
  114. option "log-file" l "Write log entries to file"
  115. typestr="name"
  116. optional string
  117. option "log-directory" L "Write log entries to a timestamped file in this directory"
  118. typestr="directory"
  119. optional string
  120. option "metadata-file" m "Output file for scan metadata (JSON)"
  121. typestr="name"
  122. optional string
  123. option "status-updates-file" u "Write scan progress updates to CSV file"
  124. typestr="name"
  125. optional string
  126. option "quiet" q "Do not print status updates"
  127. optional
  128. option "disable-syslog" - "Disables logging messages to syslog"
  129. optional
  130. option "notes" - "Inject user-specified notes into scan metadata"
  131. typestr="notes"
  132. optional string
  133. option "user-metadata" - "Inject user-specified JSON metadata into scan metadata"
  134. typestr="json"
  135. optional string
  136. section "Additional options"
  137. option "marker_encoding" - "Marker to be used to encode destination address/checksum (TCP probe module)"
  138. default="0"
  139. optional int
  140. option "use_markervalue" - "Use markervalue instead of target IP address for encoding"
  141. default="0"
  142. optional int
  143. option "markervalue" - "Value to be used instead of target IP address for encoding"
  144. default="0"
  145. optional string
  146. option "markerbits_value" - "Amount of Bits of the IP address (32 Bit total) to be encoded (TCP probe module)"
  147. default="0"
  148. optional int
  149. option "markerbits_checksum" - "Amount of Bits of the checksum (32 Bit total) to be encoded (TCP probe module)"
  150. default="0"
  151. optional int
  152. option "markerbits_dst_small" - "Anti-Mitigation (TraCINg): just use destination port for encoding."
  153. default="0"
  154. optional int
  155. option "disable_monitor" - "Disable monitor output. This is intended for small scan groups (<100000)"
  156. default="0"
  157. optional int
  158. option "config" C "Read a configuration file, which can specify any of these options"
  159. typestr="filename"
  160. default="/etc/zmap/zmap.conf"
  161. optional string
  162. option "max-sendto-failures" - "Maximum NIC sendto failures before scan is aborted"
  163. typestr="n"
  164. default="-1"
  165. optional int
  166. option "min-hitrate" - "Minimum hitrate that scan can hit before scan is aborted"
  167. typestr="n"
  168. default="0.0"
  169. optional float
  170. option "sender-threads" T "Threads used to send packets"
  171. typestr="n"
  172. default="1"
  173. optional int
  174. option "cores" - "Comma-separated list of cores to pin to"
  175. optional string
  176. option "ignore-invalid-hosts" - "Ignore invalid hosts in whitelist/blacklist file"
  177. optional
  178. option "help" h "Print help and exit"
  179. optional
  180. option "version" V "Print version and exit"
  181. optional
  182. text "\nExamples:\n\
  183. zmap -p 80 (scan the Internet for hosts on tcp/80 and output to stdout)\n\
  184. zmap -N 5 -B 10M -p 80 (find 5 HTTP servers, scanning at 10 Mb/s)\n\
  185. zmap -p 80 10.0.0.0/8 192.168.0.0/16 -o (scan both subnets on tcp/80)\n\
  186. zmap -p 80 1.2.3.4 10.0.0.3 (scan 1.2.3.4, 10.0.0.3 on tcp/80)"