文章总结: 本文推荐了多款用于安全资产收集的开源工具,涵盖子域名收集、目录扫描和端口扫描三大类。文章详细介绍了KNOCK、subfinder、dirsearch、masscan等工具的基本用法和命令示例,旨在为安全测试人员提供高效的侦察阶段工具集,帮助其快速发现目标资产。
综合评分: 73
文章分类: 安全工具,渗透测试,红队,WEB安全,内网渗透
资产收集工具推荐
原创
小白鱼来了
Joker One Security
2025年10月25日 12:31
北京
/*本文仅用于技术讨论与学习,利用此文所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,文章作者及本公众号不为此承担任何责任。*/
子域名收集
1. KNOCK
https://github.com/guelfoweb/knock
使用方法
使用:KNOCKPY [-h] [-d DOMAIN] [-f FILE] [-v][——dns dns][——useragent useragent][—timeout timeout][—threads threads][—recon][—bruteforce][—json-output][—list][—report report]
knockpy v.7.0.1 -子域扫描https://github.com/guelfoweb/knock
选项:-h,——help显示帮助信息并退出-d DOMAIN,——DOMAIN域要分析的领域-f FILE,——FILE文件域列表-v,——version显示程序的版本号并退出——dns dns自定义dns——useragent useragent自定义useragent——timeout timeout自定义超时——threads自定义线程——recon子域侦察——bruteforce子域要导入的wordlist文件——bruteforce选项必需——wildcard测试通配符并退出——json显示json格式的输出——save FOLDER保存报表的文件夹——report report显示保存的报表
knockpy -d domain.com --recon --bruteforce
2. subfinder
https://github.com/projectdiscovery/subfinder
使用方法
subfinder -d 域名 -v
3. github-subdomains
https://github.com/gwen001/github-subdomains
使用方法
github-subdomains -d 域名
4. Sudomy
https://github.com/screetsec/Sudomy
使用方法
sudomy -d hackerone.com
5. ksubdomain
https://github.com/boy-hack/ksubdomain
使用方法
./ksubdomain enum -h # 查看枚举模式帮助,可简写 ksubdomain e
USAGE: ksubdomain enum [command options] [arguments...]
OPTIONS: --domain value, -d value 域名 --band value, -b value 宽带的下行速度,可以5M,5K,5G (default: "3m") --resolvers value, -r value dns服务器,默认会使用内置dns --output value, -o value 输出文件名 --output-type value, --oy value 输出文件类型: json, txt, csv (default: "txt") --silent 使用后屏幕将仅输出域名 (default: false) --retry value 重试次数,当为-1时将一直重试 (default: 3) --timeout value 超时时间 (default: 6) --stdin 接受stdin输入 (default: false) --not-print, --np 不打印域名结果 (default: false) --eth value, -e value 指定网卡名称 --wild-filter-mode value 泛解析过滤模式[从最终结果过滤泛解析域名]: basic(基础), advanced(高级), none(不过滤) (default: "none") --predict 启用预测域名模式 (default: false) --filename value, -f value 字典路径 --ns 读取域名ns记录并加入到ns解析器中 (default: false) --help, -h show help (default: false)
# 示例:# 枚举多个域名./ksubdomain e -d example.com -d hacker.com
# 从文件读取字典枚举,保存为 output.txt./ksubdomain e -f sub.dict -o output.txt
# 从标准输入读取域名,带宽限制为 10Mcat domains.txt | ./ksubdomain e --stdin -b 10M
# 启用预测模式枚举域名,泛解析过滤,保存为csv./ksubdomain e -d example.com --predict --wild-filter-mode advanced --oy csv -o output.csv
6. scilla
https://github.com/edoardottt/scilla
使用方法
DNS 枚举:
scilla dns -target example.comscilla dns -oj output -target example.comscilla dns -oh output -target example.comscilla dns -ot output -target example.comscilla dns -plain -target example.com子域枚举:
scilla subdomain -target example.comscilla subdomain -w wordlist.txt -target example.comscilla subdomain -oj output -target example.comscilla subdomain -oh output -target example.comscilla subdomain -ot output -target example.comscilla subdomain -i 400 -target example.comscilla subdomain -i 4** -target example.comscilla subdomain -c -target example.comscilla subdomain -db -target example.comscilla subdomain -plain -target example.comscilla subdomain -db -no-check -target example.comscilla subdomain -db -vt -target example.comscilla subdomain -db -bw -target example.comscilla subdomain -ua "CustomUA" -target example.comscilla subdomain -rua -target example.comscilla subdomain -dns 8.8.8.8 -target example.comscilla subdomain -alive -target example.com目录枚举:
scilla dir -target example.comscilla dir -w wordlist.txt -target example.comscilla dir -oj output -target example.comscilla dir -oh output -target example.comscilla dir -ot output -target example.comscilla dir -i 500,401 -target example.comscilla dir -i 5**,401 -target example.comscilla dir -c -target example.comscilla dir -plain -target example.comscilla dir -nr -target example.comscilla dir -ua "CustomUA" -target example.comscilla dir -rua -target example.com端口枚举:
默认(所有端口,因此 1-65635)scilla port -target example.com指定端口范围scilla port -p 20-90 -target example.com指定起始端口(直到最后一个)scilla port -p 20- -target example.com指定结束端口(从第一个端口开始)scilla port -p -90 -target example.com指定单个端口scilla port -p 80 -target example.com指定输出格式 (json)scilla port -oj output -target example.com指定输出格式 (html)scilla port -oh output -target example.com指定输出格式 (txt)scilla port -ot output -target example.com指定多个端口scilla port -p 21,25,80 -target example.com指定公共端口scilla port -common -target example.com仅打印结果scilla port -plain -target example.com
目录扫描
1. dirmap
https://github.com/H4ckForJob/dirmap
使用方法
python3 dirmap.py -i https://target.com -lcf
2. dirsearch
https://github.com/maurosoria/dirsearch
使用方法
dirsearch -u 域名
3. cansina
https://github.com/deibit/cansina
cansina -u <site_url> -p <payload_file>
端口扫描
1. scanless
https://github.com/vesche/scanless
使用方法
选项:
-h,——help显示帮助信息并退出
-v,——version显示当前版本
-t TARGET,——TARGET TARGET
要扫描的IP或域名
-s SCANNER,——SCANNER SCANNER
要使用的扫描器(默认值:yougetsignal)
-r,——random使用随机扫描器
-l,——list列出扫描程序
-使用所有的扫描仪
-d,——debug调试模式(cli模式关闭并显示网络错误)
2. masscan
https://github.com/robertdavidgraham/masscan
使用方法
masscan -p80,8000-8100 10.0.0.0/8 2603:3001:2d00:da00::/112
3. RustScan
https://github.com/bee-san/RustScan
使用方法
rustscan -a 192.168.5.1
免责声明:
本文所载程序、技术方法仅面向合法合规的安全研究与教学场景,旨在提升网络安全防护能力,具有明确的技术研究属性。
任何单位或个人未经授权,将本文内容用于攻击、破坏等非法用途的,由此引发的全部法律责任、民事赔偿及连带责任,均由行为人独立承担,本站不承担任何连带责任。
本站内容均为技术交流与知识分享目的发布,若存在版权侵权或其他异议,请通过邮件联系处理,具体联系方式可点击页面上方的联系我。
本文转载自:Joker One Security 小白鱼来了《资产收集工具推荐》