PyADRecon-ADWS 0.3.9__tar.gz → 0.3.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/CHANGELOG.md +7 -7
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/PKG-INFO +2 -2
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/PKG-INFO +2 -2
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/README.md +1 -1
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/adws.py +38 -0
- pyadrecon_adws-0.3.10/package.json +3 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/pyadrecon_adws.py +4 -4
- pyadrecon_adws-0.3.9/package.json +0 -3
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.dockerignore +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.github/FUNDING.yml +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.github/pyadrecon.png +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.github/workflows/conventional-commits.yml +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.github/workflows/pypi.yml +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/.gitignore +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/Dockerfile +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/LICENSE +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/__init__.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/__init__.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/__init__.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/encoder.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/__init__.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/attributes.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/constants.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/datatypes.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/elements.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/record.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/text.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/utils.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/xml_parser.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/ms_nmf.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/ms_nns.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws/soap_templates.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/helpers/adws_wrapper.py +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/pyproject.toml +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/requirements.txt +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/setup.cfg +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/windows/README.md +0 -0
- {pyadrecon_adws-0.3.9 → pyadrecon_adws-0.3.10}/windows/pyadrecon_adws.exe +0 -0
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.3.10](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.9...v0.3.10) (2026-02-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* properly catch referrals to parent ([3626f24](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/3626f2410301216b6969e724d8119e158ce372ff))
|
|
7
|
+
|
|
1
8
|
## [0.3.9](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.8...v0.3.9) (2026-02-19)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -26,10 +33,3 @@
|
|
|
26
33
|
|
|
27
34
|
* adjust ace parsing for adcs and fix esc4 detection ([56b91d1](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/56b91d19b2534553b8d1cf672d6a037db780b9b6))
|
|
28
35
|
|
|
29
|
-
## [0.3.5](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.4...v0.3.5) (2026-02-19)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
* make --page-size and -v working ([e4bb00d](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/e4bb00d348f82b3685c11c90ab5bfaedf0452e3b))
|
|
35
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyADRecon-ADWS
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.10
|
|
4
4
|
Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
|
|
5
5
|
Author: LRVT
|
|
6
6
|
License-Expression: MIT
|
|
@@ -88,7 +88,7 @@ options:
|
|
|
88
88
|
Comma-separated modules to collect (default: all)
|
|
89
89
|
--only-enabled Only collect enabled users/computers
|
|
90
90
|
--page-size PAGE_SIZE
|
|
91
|
-
ADWS query page size (default:
|
|
91
|
+
ADWS query page size (default: 256)
|
|
92
92
|
--dormant-days DORMANT_DAYS
|
|
93
93
|
Users/Computers with lastLogon older than X days are dormant (default: 90)
|
|
94
94
|
--password-age PASSWORD_AGE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyADRecon-ADWS
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.10
|
|
4
4
|
Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
|
|
5
5
|
Author: LRVT
|
|
6
6
|
License-Expression: MIT
|
|
@@ -88,7 +88,7 @@ options:
|
|
|
88
88
|
Comma-separated modules to collect (default: all)
|
|
89
89
|
--only-enabled Only collect enabled users/computers
|
|
90
90
|
--page-size PAGE_SIZE
|
|
91
|
-
ADWS query page size (default:
|
|
91
|
+
ADWS query page size (default: 256)
|
|
92
92
|
--dormant-days DORMANT_DAYS
|
|
93
93
|
Users/Computers with lastLogon older than X days are dormant (default: 90)
|
|
94
94
|
--password-age PASSWORD_AGE
|
|
@@ -68,7 +68,7 @@ options:
|
|
|
68
68
|
Comma-separated modules to collect (default: all)
|
|
69
69
|
--only-enabled Only collect enabled users/computers
|
|
70
70
|
--page-size PAGE_SIZE
|
|
71
|
-
ADWS query page size (default:
|
|
71
|
+
ADWS query page size (default: 256)
|
|
72
72
|
--dormant-days DORMANT_DAYS
|
|
73
73
|
Users/Computers with lastLogon older than X days are dormant (default: 90)
|
|
74
74
|
--password-age PASSWORD_AGE
|
|
@@ -343,6 +343,44 @@ class ADWSConnect:
|
|
|
343
343
|
detail_node = detail_node_s if detail_node_s is not None else detail_node_soapenv
|
|
344
344
|
detail_text = ElementTree.tostring(detail_node, encoding='unicode').strip() if detail_node is not None else "No detail"
|
|
345
345
|
|
|
346
|
+
# Check for AD referral errors (Win32ErrorCode 8235)
|
|
347
|
+
win32_error_code = None
|
|
348
|
+
referral_url = None
|
|
349
|
+
if detail_node is not None:
|
|
350
|
+
# Try to find Win32ErrorCode in the detail
|
|
351
|
+
ad_ns = "http://schemas.microsoft.com/2008/1/ActiveDirectory"
|
|
352
|
+
win32_code_elem = detail_node.find(f".//{{{ad_ns}}}Win32ErrorCode")
|
|
353
|
+
if win32_code_elem is not None and win32_code_elem.text:
|
|
354
|
+
try:
|
|
355
|
+
win32_error_code = int(win32_code_elem.text)
|
|
356
|
+
except ValueError:
|
|
357
|
+
pass
|
|
358
|
+
|
|
359
|
+
# Try to extract referral URL
|
|
360
|
+
referral_elem = detail_node.find(f".//{{{ad_ns}}}Referral")
|
|
361
|
+
if referral_elem is not None and referral_elem.text:
|
|
362
|
+
referral_url = referral_elem.text
|
|
363
|
+
|
|
364
|
+
# ERROR_DS_REFERRAL = 8235 - This happens in child domains when querying
|
|
365
|
+
# forest-level objects like Enterprise Admins or Schema Admins
|
|
366
|
+
if win32_error_code == 8235:
|
|
367
|
+
if referral_url:
|
|
368
|
+
logging.warning(f"AD Referral encountered: {referral_url}")
|
|
369
|
+
logging.debug(f"Skipping referral and continuing enumeration...")
|
|
370
|
+
else:
|
|
371
|
+
logging.warning(f"AD Referral encountered (Win32ErrorCode: 8235)")
|
|
372
|
+
# Return an empty response to continue enumeration instead of aborting
|
|
373
|
+
# Construct a minimal valid response structure
|
|
374
|
+
s_ns = NAMESPACES['s']
|
|
375
|
+
wsen_ns = NAMESPACES['wsen']
|
|
376
|
+
root = ElementTree.Element(f"{{{s_ns}}}Envelope")
|
|
377
|
+
body = ElementTree.SubElement(root, f"{{{s_ns}}}Body")
|
|
378
|
+
pull_response = ElementTree.SubElement(body, f"{{{wsen_ns}}}PullResponse")
|
|
379
|
+
items = ElementTree.SubElement(pull_response, f"{{{wsen_ns}}}Items")
|
|
380
|
+
# Add EndOfSequence to signal no more results for this referral
|
|
381
|
+
ElementTree.SubElement(pull_response, f"{{{wsen_ns}}}EndOfSequence")
|
|
382
|
+
return root
|
|
383
|
+
|
|
346
384
|
logging.error(f"SOAP Fault received: {reason}\nDetail: {detail_text}")
|
|
347
385
|
return None
|
|
348
386
|
|
|
@@ -69,7 +69,7 @@ except ImportError:
|
|
|
69
69
|
print("[*] openpyxl not available - Excel export disabled")
|
|
70
70
|
|
|
71
71
|
# Constants
|
|
72
|
-
VERSION = "v0.3.
|
|
72
|
+
VERSION = "v0.3.10" # Automatically updated by CI/CD pipeline during release
|
|
73
73
|
BANNER = f"""
|
|
74
74
|
╔═══════════════════════════════════════════════════════════════════
|
|
75
75
|
║ PyADRecon-ADWS {VERSION} - Python AD Reconnaissance Tool (ADWS)
|
|
@@ -703,7 +703,7 @@ class ADReconConfig:
|
|
|
703
703
|
password: str = ""
|
|
704
704
|
auth_method: str = "NTLM" # NTLM only for ADWS
|
|
705
705
|
port: int = 9389 # ADWS default port
|
|
706
|
-
page_size: int =
|
|
706
|
+
page_size: int = 256
|
|
707
707
|
dormant_days: int = 90
|
|
708
708
|
password_age_days: int = 180
|
|
709
709
|
only_enabled: bool = False
|
|
@@ -6815,8 +6815,8 @@ Examples:
|
|
|
6815
6815
|
help='Only collect enabled users/computers')
|
|
6816
6816
|
|
|
6817
6817
|
# Threshold options
|
|
6818
|
-
parser.add_argument('--page-size', type=int, default=
|
|
6819
|
-
help='ADWS query page size (default:
|
|
6818
|
+
parser.add_argument('--page-size', type=int, default=256,
|
|
6819
|
+
help='ADWS query page size (default: 256)')
|
|
6820
6820
|
parser.add_argument('--dormant-days', type=int, default=90,
|
|
6821
6821
|
help='Users/Computers with lastLogon older than X days are dormant (default: 90)')
|
|
6822
6822
|
parser.add_argument('--password-age', type=int, default=180,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|