关联:常用命令nmap靶机记录

# RustScan 命令速查表
 
## 基础语法
 
```bash
rustscan -a <> -- <nmap参>

常用参数

参数说明示例
-a目标IP/域名/CIDR-a 192.168.1.1
-p指定端口-p 22,80,443
-r端口范围-r 1-1000
--top热门端口--top
-b并发数(默认4500)-b 1000
-t超时毫秒-t 3000
--tries重试次数--tries 2
--greppable仅显示端口--greppable
--jsonJSON输出--json

常用命令

快速发现端口

rustscan -a 192.168.1.100 --greppable

端口范围扫描

rustscan -a 192.168.1.100 -r 1-1000

自动调用Nmap

rustscan -a 192.168.1.100 -- -A -sC -sV

扫描多目标

rustscan -a 192.168.1.100,10.0.0.0/24,example.com

配置文件 ~/.rustscan.toml

batch_size = 3000
timeout = 1500
tries = 2
scan_order = "Random"

速度调节

场景命令
快速扫描-b 5000 -t 1000
稳定扫描-b 1000 -t 3000 --tries 2
隐蔽扫描-b 500 -t 5000 --scan-order Random