根据 Nmap 结果枚举目标
$variable 变量名应保持不变。mkdir -p ~/pyenv
python3 -m pip install virtualenv
virtualenv -p python3 ~/pyenv/autorecon
cd /opt
git clone https://github.com/Knowledge-Wisdom-Understanding/recon.git
cd recon
chmod +x setup.sh
./setup.sh
source ~/pyenv/autorecon/bin/activate
python3 -m pip install -r requirements.txt
python3 setup.py install
_____________ ____ ________________
/___/___ \ / / | /___/__ \ Mr.P-Millz _____
O.G./ / _ \______/__/ |______|__|_____ * \_________________/__/ |___
__/__/ /_\ \ | | \ __\/ _ \| | __/ __ \_/ ___\/ _ \| |
| | ___ \| | /| | ( |_| ) | | \ ___/\ \__( |_| ) | |
|___|____/\__\____|____/_|__|\_\____/|__|____|_ /\___ |\___ \____/|___| /
github.com/Knowledge-Wisdom-Understanding \___\/ \__\/ \__\_/ \___\/ v4.2.0
usage: autorecon -t 10.10.10.10
An Information Gathering and Enumeration Framework
optional arguments:
-h, --help show this help message and exit
-t TARGET, --target TARGET
Single IPv4 Target to Scan
-F, --FUZZ auto fuzz found urls ending with .php for params
-v, --version Show Current Version
-f FILE, --file FILE File of IPv4 Targets to Scan
-w [WEB], --web [WEB]
Get open ports for IPv4 address, then only Enumerate
Web & and Dns Services. -t,--target must be specified.
-w, --web takes a URL as an argument. i.e. python3
recon.py -t 10.10.10.10 -w secret
-i {http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} [{http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} ...], --ignore {http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} [{http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} ...]
Service modules to ignore during scan.
-s {http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} [{http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} ...], --service {http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} [{http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,removecolor,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm} ...]
Scan only specified service modules
-b {ftp,smb,http,ssh}, --brute {ftp,smb,http,ssh}
Experimental! - Brute Force ssh,smb,ftp, or http. -t,
--target is REQUIRED. Must supply only one protocol at
a time. For ssh, first valid users will be enumerated
before password brute is initiated, when no user or
passwords are supplied as options.
-p PORT, --port PORT port for brute forcing argument. If no port specified,
default port will be used
-u USER, --user USER Single user name for brute forcing, for SSH, if no
user specified, will default to
wordlists/usernames.txt and bruteforce usernames
-U USERS, --USERS USERS
List of usernames to try for brute forcing. Not yet
implimented
-P PASSWORDS, --PASSWORDS PASSWORDS
List of passwords to try. Optional for SSH, By default
wordlists/probable-v2-top1575.txt will be used.
扫描单个目标并基于 nmap 结果进行枚举:
autorecon -t 10.10.10.10
使用更大的字典枚举 Web 服务
autorecon -t 10.10.10.10 -w secret
autorecon -t 10.10.10.10 -w somedirectory
autorecon -t 10.10.10.10 -w ' '
通常,首次运行时,您只需指定 -t --target 选项(autorecon -t 10.10.10.10) 在使用 -s --service 选项指定特定模块之前,您必须已经运行过 topports 模块。 例如,如果您真的希望首次运行时跳过所有其他模块,只允许 topports 后扫描 Web,可以像这样操作:
autorecon -t 10.10.10.10 -s topports dns http httpcms ssl sslcms sort_urls aquatone source
或者完全跳过 Web 枚举,但扫描其他所有服务。
autorecon -t 10.10.10.10 -i dns http httpcms ssl sslcms sort_urls aquatone source
remaining services 模块也依赖于 topports 和/或 fulltcp 模块。 现在,如果目标速度较慢,您可以跳过 fulltcp 扫描。但请注意, UDP nmap 扫描当前与 fulltcp 模块捆绑在一起,因此跳过 fulltcp 模块会导致遗漏一些 UDP 枚举。
扫描并枚举 ips.txt 文件中所有 IPv4 地址
autorecon -f ips.txt
使用 -F --FUZZ 标志(无需参数)模糊测试所有发现的 PHP 网址中的参数。
autorecon -t 10.10.10.10 --FUZZ
在默认端口 22 上暴力破解 SSH 用户。如果发现有效的唯一用户,则进行密码暴力破解。
autorecon -t 10.10.10.10 -b ssh
与上面相同,但针对端口 2222 等:
autorecon -t 10.10.10.10 -b ssh -p 2222
autorecon -t 10.10.10.10 -b ssh -p 2222 -u slickrick
要忽略某些服务不被扫描,可以指定 -i , --ignore 标志。 指定多个忽略的服务时,服务之间必须用空格分隔。仅当您已经运行过 topports 模块时,才忽略 topports,因为大多数其他模块依赖于 nmap 的初始顶级端口输出。 所有可用模块如下:
http,httpcms,ssl,sslcms,aquatone,smb,dns,ldap,oracle,source,sort_urls,proxy,proxycms,fulltcp,topports,remaining,searchsploit,peaceout,ftpAnonDL,winrm
autorecon -t 10.10.10.10 -i http
autorecon -t 10.10.10.10 -i http ssl
autorecon --target 10.10.10.10 --ignore fulltcp http
您还可以指定仅扫描某些服务,与 --ignore 选项类似,-s, --service 选项将仅扫描指定的服务。 请注意,在使用 -s, --service 选项之前,您必须已经运行过 topports nmap 扫描,因为大多数模块依赖于 nmap 的输出。
autorecon -t 10.10.10.10 -s topports remaining
autorecon -t 10.10.10.10 -s http httpcms
autorecon -t 10.10.10.10 --service oracle
| 侦察 | 暴力破解 |
|---|---|
![]() | ![]() |
本程序旨在 Kali Linux 中使用。 如果您发现 bug 或有功能请求,请创建 issue 或提交 pull request。谢谢!
在未事先达成共识的情况下使用 recon.py 测试或利用网站可被视为非法活动。本工具仅适用于 CTF 机器。最终用户有责任遵守所有适用的地方、州和联邦法律。作者不承担任何责任,也不对因使用本程序造成的任何滥用或损害负责。