
번들로 제공되는 유용한 스크립트 모음을 통해 LDAP을 이용한 AD 열거
python -m ade
usage: ade [-h] [--dc DC] [-o OUT_FILE] [-u USER] [-s] [-smb] [-kp] [-bh] [-spn] [-sysvol] [--all] [--no-creds] [--dry-run]
[--exploit EXPLOIT]
___ __ _ ____ _ __ ______
/ | _____/ /_(_) _____ / __ \(_)_______ _____/ /_____ _______ __/ ____/___ __ ______ ___
/ /| |/ ___/ __/ / | / / _ \/ / / / / ___/ _ \/ ___/ __/ __ \/ ___/ / / / __/ / __ \/ / / / __ `__ \
/ ___ / /__/ /_/ /| |/ / __/ /_/ / / / / / __/ /__/ /_/ /_/ / / / /_/ / /___/ / / / /_/ / / / / / /
/_/ |_\___/\__/_/ |___/\___/_____/_/_/ \___/\___/\__/\____/_/ \__, /_____/_/ /_/\__,_/_/ /_/ /_/
/____/
/*----------------------------------------------------------------------------------------------------------*/
optional arguments:
-h, --help show this help message and exit
--dc DC Hostname of the Domain Controller
-o OUT_FILE, --out-file OUT_FILE
Path to output file. If no path, CWD is assumed (default: None)
-u USER, --user USER Username of the domain user to query with. The username has to be domain name as `[email protected]`
-s, --secure Try to estalish connection through LDAPS
-smb, --smb Force enumeration of SMB shares on all computer objects fetched
-kp, --kerberos_preauth
Attempt to gather users that does not require Kerberos preauthentication
-bh, --bloodhound Output data in the format expected by BloodHound
-spn Attempt to get all SPNs and perform Kerberoasting
-sysvol Search sysvol for GPOs with cpassword and decrypt it
--all Run all checks
--no-creds Start without credentials
--dry-run Don't execute a test but run as if. Used for testing params etc.
--exploit EXPLOIT Show path to PoC exploit code
내장된 익스플로잇의 새로운 포함으로 다음과 같은 결과를 얻을 수 있습니다:
...
[ WARN ] DC may be vulnerable to: [ cve-2020-1472 ]
...
PoC 코드를 위한 익스플로잇을 조회하려면:
$ python -m ade --exploit cve-2020-1472
Exploit for: cve-2020-1472 can be found at: https://github.com/dirkjanm/CVE-2020-1472
pip3을 통해 설치:
pip3 install ActiveDirectoryEnum
python -m ade
BlackArch를 사용한다면, ActiveDirectoryEnum은 pacman으로도 설치할 수 있습니다:
pacman -S activedirectoryenum
이 프로젝트는 제 필요에 맞게 개발되었지만, 모든 협업을 환영합니다. 자유롭게 프로젝트를 포크하고, 라이선스 계약에 따라 변경한 후 풀 리퀘스트를 보내주세요. 다음 사항만 지켜주시길 부탁드립니다:
다음 프로젝트 제작자들에게 큰 감사를 드립니다:
Impacket @github
BloodHound @github
BloodHound.py @github
CVE-2020-1472 by Tom Tervoort of Secura
위 프로젝트가 없었다면 이 래퍼는 불가능했습니다.