
ADRecon은 Active Directory에 대한 정보를 수집하고 대상 AD 환경의 현재 상태에 대한 종합적인 그림을 제공할 수 있는 보고서를 생성하는 도구입니다.
ADRecon은 AD 환경에서 다양한 아티팩트(아래에 강조됨)를 추출하고 결합하는 도구입니다. 정보는 특별히 포맷된 Microsoft Excel 보고서로 제공될 수 있으며, 여기에는 분석을 용이하게 하고 대상 AD 환경의 현재 상태에 대한 전체적인 그림을 제공하기 위한 요약 보기와 메트릭이 포함됩니다.
이 도구는 감사자, DFIR, 학생, 관리자 등 다양한 보안 전문가에게 유용합니다. 또한 침투 테스터에게는 귀중한 사후 침투 도구가 될 수 있습니다.
이 도구는 환경에 연결된 모든 워크스테이션(도메인 멤버가 아닌 호스트 포함)에서 실행할 수 있습니다. 또한, 이 도구는 권한이 없는(즉, 표준 도메인 사용자) 계정의 컨텍스트에서 실행될 수 있습니다. 세분화된 암호 정책(Fine Grained Password Policy), LAPS 및 BitLocker는 권한 있는 사용자 계정이 필요할 수 있습니다. 이 도구는 가능한 경우 Microsoft 원격 서버 관리 도구(RSAT)를 사용하며, 그렇지 않으면 LDAP를 사용하여 도메인 컨트롤러와 통신합니다.
다음 정보가 도구에 의해 수집됩니다:
ADRecon은 다음에서 발표되었습니다: - Slidedeck
|
- Slidedeck
이 지침은 로컬 머신에서 도구 사본을 가져와 실행할 수 있도록 안내합니다.
git이 설치되어 있다면 저장소를 클론하여 시작할 수 있습니다:
git clone https://github.com/sense-of-security/ADRecon.git
그렇지 않으면 최신 릴리스의 zip 아카이브를 다운로드할 수 있습니다. 의도는 항상 master 브랜치를 작동 상태로 유지하는 것입니다.
도메인 멤버 호스트에서 ADRecon을 실행하려면.
PS C:\> .\ADRecon.ps1
도메인 멤버 호스트에서 다른 사용자로 ADRecon을 실행하려면.
PS C:\>.\ADRecon.ps1 -DomainController <IP or FQDN> -Credential <domain\username>
LDAP를 사용하여 비멤버 호스트에서 ADRecon을 실행하려면.
PS C:\>.\ADRecon.ps1 -Protocol LDAP -DomainController <IP or FQDN> -Credential <domain\username>
RSAT가 있는 비멤버 호스트에서 특정 모듈로 ADRecon을 실행하려면. (-Collect 매개변수 사용 시 기본 OutputType은 STDOUT입니다.)
PS C:\>.\ADRecon.ps1 -Protocol ADWS -DomainController <IP or FQDN> -Credential <domain\username> -Collect Domain, DomainControllers
ADRecon 출력(CSV 파일)을 기반으로 ADRecon-Report.xlsx를 생성하려면.
PS C:\>.\ADRecon.ps1 -GenExcel C:\ADRecon-Report-<timestamp>
ADRecon을 실행하면 ADRecon-Report-<timestamp> 폴더가 생성되며, 여기에는 ADRecon-Report.xlsx와 원시 파일이 포함된 CSV 폴더가 포함됩니다.
-Protocol <String>
사용할 프로토콜; ADWS(기본값) 또는 LDAP
-DomainController <String>
도메인 컨트롤러 IP 주소 또는 도메인 FQDN.
-Credential <PSCredential>
도메인 자격 증명.
-GenExcel <String>
ADRecon-Report.xlsx를 생성하기 위해 CSV 파일이 포함된 ADRecon 출력 폴더의 경로. ADRecon을 실행하는 호스트에 Microsoft Excel이 설치되지 않은 경우 ADRecon-Report.xlsx를 생성하는 데 사용합니다.
-OutputDir <String>
CSV/XML/JSON/HTML 파일 및 ADRecon-Report.xlsx를 저장할 ADRecon 출력 폴더의 경로. (지정한 폴더가 없으면 생성됩니다.) (기본값 pwd)
-Collect <String>
실행할 모듈(쉼표로 구분, 예: Forest,Domain. 기본값은 Kerberoast를 제외한 모든 모듈)
유효한 값: Forest, Domain, Trusts, Sites, Subnets, PasswordPolicy, FineGrainedPasswordPolicy, DomainControllers, Users, UserSPNs, PasswordAttributes, Groups, GroupMembers, OUs, ACLs, GPOs, gPLinks, GPOReport, DNSZones, Printers, Computers, ComputerSPNs, LAPS, BitLocker, Kerberoast, DomainAccountsusedforServiceLogon.
-OutputType <String>
출력 유형; 쉼표로 구분, 예: CSV,STDOUT,Excel (-Collect 매개변수 사용 시 기본값은 STDOUT, 그 외에는 CSV 및 Excel)
유효한 값: STDOUT, CSV, XML, JSON, HTML, Excel, All(STDOUT 제외).
-DormantTimeSpan <Int>
휴면 계정에 대한 시간 범위. (기본값 90일)
-PassMaxAge <Int>
최대 컴퓨터 계정 암호 사용 기간. (기본값 30일)
-PageSize <Int>
LDAP 검색기 개체에 설정할 페이지 크기. (기본값 200)
-Threads <Int>
개체 처리 중 사용할 스레드 수. (기본값 10)
-Log <Switch>
Start-Transcript을 사용하여 ADRecon 로그 생성
모든 버그, 이슈 및 기능 요청은 이슈 트래커에 보고해 주십시오. 또는 저(@prashant3535)에게 직접 알려주십시오.
풀 리퀘스트는 언제나 환영합니다.
@_wald0, @CptJesus, @harmj0y, @mattifestation, @PyroTek3, @darkoperator, Sense of Security 팀 및 다른 분들의 훌륭한 작업에 감사드립니다.
ADRecon은 Active Directory에 대한 정보를 수집하고 대상 AD 환경의 현재 상태에 대한 전체적인 그림을 제공할 수 있는 보고서를 생성하는 도구입니다.
Copyright (C) Sense of Security
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
이 프로그램은 여러 소스에서 코드를 차용하여 사용합니다. 원저작자에게 크레딧을 제공하기 위해 모든 노력을 기울이고 있습니다. 만약 귀하의 코드가 적절한 크레딧 없이 사용된 것을 발견하시면 @prashant3535에게 항의해 주십시오. 감사합니다.