PyADRecon-ADWS 0.3.8__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.
Files changed (45) hide show
  1. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/CHANGELOG.md +10 -10
  2. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/PKG-INFO +2 -2
  3. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/PKG-INFO +2 -2
  4. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/README.md +1 -1
  5. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/adws.py +38 -0
  6. pyadrecon_adws-0.3.10/package.json +3 -0
  7. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/pyadrecon_adws.py +15 -11
  8. pyadrecon_adws-0.3.8/package.json +0 -3
  9. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.dockerignore +0 -0
  10. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.github/FUNDING.yml +0 -0
  11. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  12. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  13. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.github/pyadrecon.png +0 -0
  14. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.github/workflows/conventional-commits.yml +0 -0
  15. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.github/workflows/pypi.yml +0 -0
  16. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/.gitignore +0 -0
  17. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/Dockerfile +0 -0
  18. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/LICENSE +0 -0
  19. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
  20. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
  21. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
  22. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
  23. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
  24. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/__init__.py +0 -0
  25. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/__init__.py +0 -0
  26. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/__init__.py +0 -0
  27. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/encoder.py +0 -0
  28. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/__init__.py +0 -0
  29. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/attributes.py +0 -0
  30. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/constants.py +0 -0
  31. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/datatypes.py +0 -0
  32. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/elements.py +0 -0
  33. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/record.py +0 -0
  34. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/text.py +0 -0
  35. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/records/utils.py +0 -0
  36. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/encoder/xml_parser.py +0 -0
  37. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/ms_nmf.py +0 -0
  38. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/ms_nns.py +0 -0
  39. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws/soap_templates.py +0 -0
  40. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/helpers/adws_wrapper.py +0 -0
  41. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/pyproject.toml +0 -0
  42. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/requirements.txt +0 -0
  43. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/setup.cfg +0 -0
  44. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/windows/README.md +0 -0
  45. {pyadrecon_adws-0.3.8 → pyadrecon_adws-0.3.10}/windows/pyadrecon_adws.exe +0 -0
@@ -1,35 +1,35 @@
1
- ## [0.3.8](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.7...v0.3.8) (2026-02-19)
1
+ ## [0.3.10](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.9...v0.3.10) (2026-02-20)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * support forest-child enumerations with proper sid resolving ([15aff39](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/15aff39c015a5d017e8c6c9cb7a3dd4763af6d0b))
6
+ * properly catch referrals to parent ([3626f24](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/3626f2410301216b6969e724d8119e158ce372ff))
7
7
 
8
- ## [0.3.7](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.6...v0.3.7) (2026-02-19)
8
+ ## [0.3.9](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.8...v0.3.9) (2026-02-19)
9
9
 
10
10
 
11
11
  ### Bug Fixes
12
12
 
13
- * forest support for child domain environments ([1deacd3](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/1deacd355dc4ce58e336a3b72ba758209e24297d))
13
+ * columns coloring for user and computer stats tab ([c7b8b02](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/c7b8b0209722614685e5c4326a7d5c6d7328ec6d))
14
14
 
15
- ## [0.3.6](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.5...v0.3.6) (2026-02-19)
15
+ ## [0.3.8](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.7...v0.3.8) (2026-02-19)
16
16
 
17
17
 
18
18
  ### Bug Fixes
19
19
 
20
- * adjust ace parsing for adcs and fix esc4 detection ([56b91d1](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/56b91d19b2534553b8d1cf672d6a037db780b9b6))
20
+ * support forest-child enumerations with proper sid resolving ([15aff39](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/15aff39c015a5d017e8c6c9cb7a3dd4763af6d0b))
21
21
 
22
- ## [0.3.5](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.4...v0.3.5) (2026-02-19)
22
+ ## [0.3.7](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.6...v0.3.7) (2026-02-19)
23
23
 
24
24
 
25
25
  ### Bug Fixes
26
26
 
27
- * make --page-size and -v working ([e4bb00d](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/e4bb00d348f82b3685c11c90ab5bfaedf0452e3b))
27
+ * forest support for child domain environments ([1deacd3](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/1deacd355dc4ce58e336a3b72ba758209e24297d))
28
28
 
29
- ## [0.3.4](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.3...v0.3.4) (2026-02-19)
29
+ ## [0.3.6](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.5...v0.3.6) (2026-02-19)
30
30
 
31
31
 
32
32
  ### Bug Fixes
33
33
 
34
- * adcs ca parsing ([bde2e18](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/bde2e18b938e7be809ef4183294e0a025d2e1e26))
34
+ * adjust ace parsing for adcs and fix esc4 detection ([56b91d1](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/56b91d19b2534553b8d1cf672d6a037db780b9b6))
35
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyADRecon-ADWS
3
- Version: 0.3.8
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: 1000)
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.8
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: 1000)
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: 1000)
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
 
@@ -0,0 +1,3 @@
1
+ {
2
+ "version": "0.3.10"
3
+ }
@@ -69,7 +69,7 @@ except ImportError:
69
69
  print("[*] openpyxl not available - Excel export disabled")
70
70
 
71
71
  # Constants
72
- VERSION = "v0.3.8" # Automatically updated by CI/CD pipeline during release
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 = 1000
706
+ page_size: int = 256
707
707
  dormant_days: int = 90
708
708
  password_age_days: int = 180
709
709
  only_enabled: bool = False
@@ -5797,16 +5797,20 @@ class PyADRecon:
5797
5797
 
5798
5798
  stripe_fill = PatternFill(start_color="F2F2F2", end_color="F2F2F2", fill_type="solid")
5799
5799
 
5800
- # RGB values of security colors to preserve (with 00 prefix that openpyxl adds)
5801
- security_colors = {
5802
- "00FFB3BA", # Red
5800
+ # RGB values of colors to preserve (with 00 prefix that openpyxl adds)
5801
+ preserve_colors = {
5802
+ "00FFB3BA", # Red (security)
5803
5803
  "FFB3BA", # Red (without prefix)
5804
- "00FFD9B3", # Orange
5804
+ "00FFD9B3", # Orange (security)
5805
5805
  "FFD9B3", # Orange (without prefix)
5806
- "00FFFFB3", # Yellow
5806
+ "00FFFFB3", # Yellow (security)
5807
5807
  "FFFFB3", # Yellow (without prefix)
5808
5808
  "00E0E0E0", # Gray (disabled accounts)
5809
5809
  "E0E0E0", # Gray (without prefix)
5810
+ "000066CC", # Blue (headers)
5811
+ "0066CC", # Blue (without prefix)
5812
+ "00B3FFB3", # Green (positive indicators)
5813
+ "B3FFB3", # Green (without prefix)
5810
5814
  }
5811
5815
 
5812
5816
  logger.info(" Applying striped row formatting...")
@@ -5826,9 +5830,9 @@ class PyADRecon:
5826
5830
  for col_idx in range(1, ws.max_column + 1):
5827
5831
  cell = ws.cell(row=row_idx, column=col_idx)
5828
5832
  # Only apply striping if cell has no fill or has default fill
5829
- # Skip cells with security colors
5833
+ # Skip cells with colored fills (headers, security highlights, etc.)
5830
5834
  cell_rgb = cell.fill.start_color.rgb if cell.fill and hasattr(cell.fill.start_color, 'rgb') else None
5831
- if cell_rgb is None or cell_rgb == '00000000' or cell_rgb not in security_colors:
5835
+ if cell_rgb is None or cell_rgb == '00000000' or cell_rgb not in preserve_colors:
5832
5836
  cell.fill = stripe_fill
5833
5837
 
5834
5838
  def export_xlsx(self, output_dir: str, domain_name: str = ""):
@@ -6811,8 +6815,8 @@ Examples:
6811
6815
  help='Only collect enabled users/computers')
6812
6816
 
6813
6817
  # Threshold options
6814
- parser.add_argument('--page-size', type=int, default=1000,
6815
- help='ADWS query page size (default: 1000)')
6818
+ parser.add_argument('--page-size', type=int, default=256,
6819
+ help='ADWS query page size (default: 256)')
6816
6820
  parser.add_argument('--dormant-days', type=int, default=90,
6817
6821
  help='Users/Computers with lastLogon older than X days are dormant (default: 90)')
6818
6822
  parser.add_argument('--password-age', type=int, default=180,
@@ -1,3 +0,0 @@
1
- {
2
- "version": "0.3.8"
3
- }
File without changes