From 9853e220632dc73c515797e0dbf0319532b74d06 Mon Sep 17 00:00:00 2001 From: Machiavelli <145562237+MachiavelliII@users.noreply.github.com> Date: Sat, 29 Mar 2025 20:20:06 +0200 Subject: [PATCH] zmap: add page (#16056) * Create zmap.md * Update zmap.md * Update pages/common/zmap.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update zmap.md --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/zmap.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/zmap.md diff --git a/pages/common/zmap.md b/pages/common/zmap.md new file mode 100644 index 0000000000..58053c759d --- /dev/null +++ b/pages/common/zmap.md @@ -0,0 +1,36 @@ +# zmap + +> Fast, open-source network scanner for Internet-wide surveys. +> More information: . + +- Scan a subnet or full IPv4 space for a specific TCP port (default: 80): + +`zmap {{SUBNETS}} -p {{port}}` + +- Scan specific ports or port ranges across a subnet: + +`zmap {{--target-ports}} {{port1,port2-port3,...}} {{SUBNETS}}` + +- Output results to a CSV file with custom fields: + +`zmap {{[-o|--output-file]}} {{path/to/output_file.csv}} {{[-f|--output-fields]}} "{{saddr,daddr,sport,dport}}" {{SUBNETS}}` + +- Limit the scan rate to a specific number of packets per second: + +`zmap {{[-r|--rate]}} {{packets_per_second}} {{SUBNETS}}` + +- Perform a dry run without sending packets: + +`zmap {{[-d|--dryrun]}} {{SUBNETS}}` + +- Exclude subnets using a blocklist file in CIDR notation: + +`zmap {{[-b|--blocklist-file]}} {{path/to/blocklist.txt}} {{SUBNETS}}` + +- Set a specific source IP for scan packets: + +`zmap {{[-S|--source-ip]}} {{source_ip}} {{SUBNETS}}` + +- Cap the number/percentage of targets to probe (e.g. 1000 IP/port pairs): + +`zmap {{[-n|--max-targets]}} {{1000}} {{SUBNETS}} {{[-p|--target-ports]}} {{port1,port2-port3}}`