
汇总一下平时渗透测试会用到的一些工具及简单介绍一下他们的使用一、信息收集目标是尽可能多的收集目标系统的资产包括子域名、端口号等。子域名收集上使用如下几个工具主动OneForAll、ARL、Sublist3r、subfinderOneForAll 基础使用安装gitclone https://gitee.com/shmilylty/OneForAll.gitcdOneForAll/ python3-mpipinstall-Upip setuptools wheel-ihttps://mirrors.aliyun.com/pypi/simple/ pip3install-rrequirements.txt-ihttps://mirrors.aliyun.com/pypi/simple/ python3 oneforall.py--help使用python3 oneforall.py--targetexample.com run python3 oneforall.py--targets./example.txt run结果查看OneForAll 收集到的结果存储在 results 文件夹下ARL 基础使用本工具是安装在 kali 这种 linux 系统中的本人滴 kali 不小心被自己删了 等安回来再补这部分 Sublist3r 基础使用安装gitclone https://github.com/aboul3la/Sublist3r.gitcdSublist3r/ pipinstall-rrequirements.txt使用python sublist3r.py-dexample.com注Sublist3r 已经很久没有更新而它依赖的搜索引擎如 DNSdumpster 和 VirusTotal改变了网页结构或接口导致现在工具无法正确获取数据。subfinder安装需安装 go 语言环境brewinstallgoechoexport PATH$PATH:/Users/用户名/go/bin~/.zshrcsource~/.zshrc goinstall-vgithub.com/projectdiscovery/subfinder/v2/cmd/subfinderlatest subfinder-version使用./subfinder-dexample.com被动网络空间测绘引擎fofa 、shodan、360子域名收集完后然后进行端口收集输入是ip集合输出是探测到的端口号使用 masscan 和 nmap 这两个工具。masscan安装brewinstallmasscan使用masscan -p80,8000-810010.0.0.0/82603:3001:2d00:da00::/112二、漏扫指纹识别EHole、FingerEHole安装在 Linux 上下载对应的发行版cd EHole./EHole使用注EHole 对 URL 的格式有严格要求URL 必须带上完整的协议头即必须以 http:// 或 https:// 开头。如果仅输入 IP 或域名如 192.168.1.1 或 www.xxx.com工具将无法识别目标./Ehole finger-uhttp://www.baidu.comFinger安装gitclone https://github.com/EASY233/Finger.git pip3install-rrequirements.txt扫描python3 Finger.py-furls.txt漏扫漏扫部分对大量目标一般是通过 Xray 联动 Rad。针对单个目标的漏扫方式是流量通过 Yakit 代理到 Xray。下面分别介绍这两个方式的操作。Xray 联动 Rad这里我们使用 super-xray 它是一个带图形化界面的 xray 版本。下载 jar 包的发行版本后通过下面的方式运行java-jarsuper-xray-1.7.jar分主动扫描和被动扫描两种情况这里我们联动 RAD 进行被动扫描。下载 radhttps://github.com/chaitin/rad/releases按下图配置配置 RAD开始被动扫描使用原生 XrayXray 的安装和使用教程官方文档已经写的很清楚了https://docs.xray.cool/tools/xray/Scanning#macos-2下载 radhttps://github.com/chaitin/rad/releases./xray_darwin_arm64 webscan--listen127.0.0.1:7777 --html-output xray-webgoat.html./rad_darwin_arm64-thttp://127.0.0.1:8080/WebGoat -http-proxy127.0.0.1:7777直接使用 xray 的爬虫扫描模式注需要在 xray 配置文件中配置 cookie 的值需登陆的场景./xray_darwin_arm64 webscan --basic-crawler http://127.0.0.1:8080/WebGoat/ --html-output xray-crawler-webgoat.htmlYakit 联动 Xray启动劫持启动 xray./xray_darwin_arm64 webscan--listen127.0.0.1:7777 --html-output xray-testphp.html