
Nmap 결과를 기반으로 대상 열거
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
더 큰 단어 목록으로 웹 열거하기
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 이후에만 웹을 스캔하려면 다음과 같이 할 수 있습니다.
autorecon -t 10.10.10.10 -s topports dns http httpcms ssl sslcms sort_urls aquatone source
또는 웹 열거를 완전히 건너뛰고 다른 모든 것을 스캔할 수도 있습니다.
autorecon -t 10.10.10.10 -i dns http httpcms ssl sslcms sort_urls aquatone source
remaining 서비스 모듈도 topports 및/또는 fulltcp 모듈에 의존합니다. 이제 대상이 느린 경우 fulltcp 스캔을 건너뛸 수 있습니다. 그러나 주의하세요. UDP nmap 스캔은 현재 fulltcp 모듈에 포함되어 있으므로 fulltcp 모듈을 건너뛰면 일부 UDP 열거가 누락됩니다.
ips.txt 파일의 모든 IPv4 주소 스캔 및 열거
autorecon -f ips.txt
발견된 모든 php URL의 파라미터를 퍼징하려면 인수 없이 -F --FUZZ 플래그를 사용할 수 있습니다.
autorecon -t 10.10.10.10 --FUZZ
기본 포트 22에서 SSH 사용자 무차별 대입. 유효한 고유 사용자가 발견되면 암호 무차별 대입.
autorecon -t 10.10.10.10 -b ssh
2222 등 포트의 SSH에 대해 동일:
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를 무시하는 것은 이 모듈을 이미 실행한 경우에만 가능합니다. 대부분의 다른 모듈은 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
| 리콘 | 브루트 |
|---|---|
![]() | ![]() |
이 프로그램은 칼리 리눅스에서 사용하도록 설계되었습니다. 버그를 발견하거나 기능 요청이 있으면 이슈를 생성하거나 풀 리퀘스트를 제출해 주세요. 감사합니다!
recon.py를 사전 상호 합의 없이 웹사이트 테스트 또는 익스플로잇에 사용하는 것은 불법 활동으로 간주될 수 있습니다. 이 도구는 CTF 머신 전용으로 설계되었습니다. 모든 해당 지역, 주 및 연방 법률을 준수하는 것은 최종 사용자의 책임입니다. 저자는 이 프로그램으로 인한 오용이나 손해에 대해 책임을 지지 않으며 배상 책임이 없습니다.