声明:文中所涉及的技术、思路和工具仅供以安全为目的的学习交流使用,任何人不得将其用于非法用途给予盈利等目的,否则后果自行承担!
在linux上我们可以用nmap,但在windows上nmap用起来就不那么舒服。这里给大家介绍一个端口扫描工具naabu。
naabu
naabu
https://github.com/projectdiscovery/naabu
naabu -h 查看用法
常见用例
naabu -host hackerone.com
指定端口和协议类型
naabu -p 80,443,21-23,u:53 -host hackerone.com
naabu -p - -duc -Pn -host 116.228.182.26
顺带一提,我写脚本用os.system调用命令的时候卡主了。查了半天,最好在-h里找到了这个选项。添加上之后就可以正常那个跑了。
常用选项
-c int 增加线程,默认25,我一般给500.
-rate int packets to send per second (default 1000)
-duc, -disable-update-check 不检查更新
-host string[] 可以跟域名也可以跟ip
-port, -p string端口,-p -全端口
-top-ports
功能挺多的,还能检查ips,cdn啥的,还可以调用nmap
naabu -nc -duc -Pn -no-stdin -silent -p - -host 192.168.23.1
通用
-
指定固定端口使用udp扫描
naabu -p 80,443,21-23,u:53 -host hackerone.com
端口
PORT:
-port, -p string ports to scan (80,443, 100-200)
-top-ports, -tp string top ports to scan (default 100) [full,100,1000]
-exclude-ports, -ep string ports to exclude from scan (comma-separated)
-ports-file, -pf string list of ports to scan (file)
-port-threshold, -pts int port threshold to skip port scan for the host
-exclude-cdn, -ec skip full port scans for CDN/WAF (only scan for port 80,443)
-display-cdn, -cdn display cdn in use
input
INPUT:
-host string[] hosts to scan ports for (comma-separated)
-list, -l string list of hosts to scan ports (file)
-exclude-hosts, -eh string hosts to exclude from the scan (comma-separated)
-exclude-file, -ef string list of hosts to exclude from scan (file)
naabu -nc -duc -Pn -no-stdin -silent -tp 1000 -host 192.168.23.1 -o test.txt
读取文件中的ipnaabu -nc -duc -Pn -no-stdin -silent -tp 1000 -l ip.txt -o test.txt
output
OUTPUT:
-o, -output string file to write output to (optional)
-j, -json write output in JSON lines format
-csv write output in csv format
naabu -nc -duc -Pn -no-stdin -silent -tp 1000 -host 192.168.23.1 -o test.txt
naabu -nc -duc -Pn -no-stdin -silent -tp 1000 -host 192.168.23.1 -j -o test.json
naabu -nc -duc -Pn -no-stdin -silent -tp 1000 -host 192.168.23.1 -csv -o test.csv
联动httpx
naabu -nc -duc -Pn -no-stdin -silent -tp 1000 -l hosts.txt | httpx -sc -cl -nc -silent
往期推荐
原文始发于微信公众号(进击的HACK):端口扫描工具naabu
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论