m8sec/ActiveReign
Fork: 44 Star: 241 (更新于 1970-01-01 00:00:00)
license: GPL-3.0
Language: Python .
A Network Enumeration and Attack Toolset for Windows Active Directory Environments.
最后发布版本: 1.0.5.2 ( 2020-02-15 00:18:39)
ActiveReign
:warning: Thank you for your support. This project is no longer publicly maintained.
Background
A while back I was challenged to write a discovery tool with Python3 that could automate the process of finding sensitive information on network file shares. After writing the entire tool with pysmb, and adding features such as the ability to open and scan docx an xlsx files, I slowly started adding functionality from the awesome Impacket library; just simple features I wanted to see in an internal penetration testing tool. The more I added, the more it looked like a Python3 rewrite of CrackMapExec created from scratch.
If you are doing a direct comparison, CME is an amazing tool that has way more features than currently implement here. However, I added a few new features and modifications that may come in handy during an assessment.
For more documentation checkout the project wiki
Operational Modes
- db - Query or insert values in to the ActiveReign database
- enum - System enumeration & module execution
- shell - Spawn a simulated shell on the target system and perform command execution
- spray - Domain password spraying and brute force
- query - Perform LDAP queries on the domain
Key Features
- Automatically extract domain information via LDAP and incorporate into network enumeration.
- Perform Domain password spraying using LDAP to remove users close to lockout thresholds.
- Local and remote command execution, for use on multiple starting points throughout the network.
- Simulated interactive shell on target system, with file upload and download capabilities.
- Data discovery capable of scanning xlsx and docx files.
- Various modules to add and extend capabilities.
Acknowledgments
There were many intended and unintended contributors that made this project possible. If I am missing any, I apologize, it was in no way intentional. Feel free to contact me and we can make sure they get the credit they deserve ASAP!
- @byt3bl33d3r - CrackMapExec
- @SecureAuthCorp - Impacket
- @the-useless-one - pywerview
- @dirkjanm - ldapdomaindump
Final Thoughts
Writing this tool and testing on a variety of networks/systems has taught me that execution method matters, and depends on the configuration of the system. If a specific module or feature does not work, determine if it is actually the program, target system, configuration, or even network placement before creating an issue.
To help this investigation process, I have created a test_execution
module to run against a system with known admin privileges. This will cycle through all all execution methods and provide a status report to determine the best method to use:
$ activereign enum -u administrator -p Password123 --local-auth -M test_execution 192.168.1.1
[*] Lockout Tracker Threshold extracted from database: 5
[*] Enum Authentication \administrator (Password: P****) (Hash: False)
[+] DC01 192.168.1.1 ENUM Windows Server 2008 R2 Standard 7601 Service Pack 1 (Domain: DEMO) (Signing: True) (SMBv1: True) (Adm!n)
[*] DC01 192.168.1.1 TEST_EXECUTION Testing execution methods
[*] DC01 192.168.1.1 TEST_EXECUTION Execution Method: WMIEXEC Fileless: SUCCESS Remote (Default): SUCCESS
[*] DC01 192.168.1.1 TEST_EXECUTION Execution Method: SMBEXEC Fileless: SUCCESS Remote (Default): SUCCESS
[*] DC01 192.168.1.1 TEST_EXECUTION Execution Method: ATEXEC Fileless: SUCCESS Remote (Default): SUCCESS
[*] DC01 192.168.1.1 TEST_EXECUTION Execution Method: WINRM Fileless: N/A Remote (Default): SUCCESS
最近版本更新:(数据更新于 1970-01-01 00:00:00)
2020-02-15 00:18:39 1.0.5.2
2020-01-25 05:09:47 1.0.5
2019-11-11 23:37:03 1.0.4
2019-09-12 20:47:58 0.0.3
主题(topics):
activedirectory, enumeration, exploit, impacket, ldap, network, network-enumeration, python, windows
m8sec/ActiveReign同语言 Python最近更新仓库
2024-11-22 19:26:55 ultralytics/ultralytics
2024-11-22 08:12:43 jxxghp/MoviePilot
2024-11-22 06:12:44 dagster-io/dagster
2024-11-22 05:57:36 moesnow/March7thAssistant
2024-11-22 02:39:01 goauthentik/authentik
2024-11-22 00:15:39 jumpserver/jumpserver