1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 09:55:24 +02:00
tldr/pages/common/rustscan.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

2024-01-14 11:23:11 -05:00
# rustscan
2025-05-21 03:05:34 +10:00
> Modern Port Scanner written in Rust.
> Note: `nmap` must be installed for some of the examples below to work.
> More information: <https://github.com/bee-san/RustScan/wiki>.
2024-01-14 11:23:11 -05:00
- Scan all ports of one or more comma-delimited addresses using the default values:
2024-01-14 11:23:11 -05:00
`rustscan {{[-a|--addresses]}} {{ip_or_hostname}}`
2024-01-14 11:23:11 -05:00
- Scan the top 1000 ports with service and version detection:
2024-01-14 11:23:11 -05:00
`rustscan --top {{[-a|--addresses]}} {{address_or_addresses}}`
2024-01-14 11:23:11 -05:00
- Scan a specific list of ports:
2024-01-14 11:23:11 -05:00
`rustscan {{[-p|--ports]}} {{port1,port2,...}} {{[-a|--addresses]}} {{address_or_addresses}}`
2024-01-14 11:23:11 -05:00
- Scan a specific range of ports:
2025-05-21 03:05:34 +10:00
`rustscan {{[-r|--range]}} {{start}}-{{end}} {{[-a|--addresses]}} {{address_or_addresses}}`
2024-01-14 11:23:11 -05:00
2025-05-21 03:05:34 +10:00
- Invoke `nmap` functionalities (Nmap's OS detection and default scripts):
2024-01-14 11:23:11 -05:00
2025-05-21 03:05:34 +10:00
`rustscan {{[-a|--addresses]}} {{address_or_addresses}} -- -O {{[-sC|--script=default]}}`
2024-01-14 11:23:11 -05:00
- Scan with custom batch size (default: 4500) and timeout (default: 1500ms):
2024-01-14 11:23:11 -05:00
`rustscan {{[-b|--batch-size]}} {{batch_size}} {{[-t|--timeout]}} {{timeout}} {{[-a|--addresses]}} {{address_or_addresses}}`
2024-01-14 11:23:11 -05:00
- Scan with specific port order:
`rustscan --scan-order {{serial|random}} {{[-a|--addresses]}} {{address_or_addresses}}`
2024-01-14 11:23:11 -05:00
- Scan in greppable mode (only output of the ports, no `nmap`):
`rustscan {{[-g|--greppable]}} {{[-a|--addresses]}} {{address_or_addresses}}`