PyADRecon-ADWS 0.3.4__tar.gz → 0.3.6__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.4 → pyadrecon_adws-0.3.6}/CHANGELOG.md +11 -11
  2. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/PKG-INFO +3 -3
  3. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/PyADRecon_ADWS.egg-info/PKG-INFO +3 -3
  4. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/README.md +2 -2
  5. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/adws.py +5 -4
  6. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/soap_templates.py +1 -1
  7. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws_wrapper.py +4 -2
  8. pyadrecon_adws-0.3.6/package.json +3 -0
  9. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/pyadrecon_adws.py +18 -10
  10. pyadrecon_adws-0.3.4/package.json +0 -3
  11. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.dockerignore +0 -0
  12. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.github/FUNDING.yml +0 -0
  13. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  14. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  15. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.github/pyadrecon.png +0 -0
  16. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.github/workflows/conventional-commits.yml +0 -0
  17. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.github/workflows/pypi.yml +0 -0
  18. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/.gitignore +0 -0
  19. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/Dockerfile +0 -0
  20. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/LICENSE +0 -0
  21. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
  22. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
  23. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
  24. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
  25. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
  26. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/__init__.py +0 -0
  27. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/__init__.py +0 -0
  28. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/__init__.py +0 -0
  29. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/encoder.py +0 -0
  30. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/__init__.py +0 -0
  31. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/attributes.py +0 -0
  32. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/constants.py +0 -0
  33. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/datatypes.py +0 -0
  34. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/elements.py +0 -0
  35. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/record.py +0 -0
  36. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/text.py +0 -0
  37. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/records/utils.py +0 -0
  38. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/encoder/xml_parser.py +0 -0
  39. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/ms_nmf.py +0 -0
  40. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/helpers/adws/ms_nns.py +0 -0
  41. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/pyproject.toml +0 -0
  42. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/requirements.txt +0 -0
  43. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/setup.cfg +0 -0
  44. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/windows/README.md +0 -0
  45. {pyadrecon_adws-0.3.4 → pyadrecon_adws-0.3.6}/windows/pyadrecon_adws.exe +0 -0
@@ -1,35 +1,35 @@
1
- ## [0.3.4](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.3...v0.3.4) (2026-02-19)
1
+ ## [0.3.6](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.5...v0.3.6) (2026-02-19)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * adcs ca parsing ([bde2e18](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/bde2e18b938e7be809ef4183294e0a025d2e1e26))
6
+ * adjust ace parsing for adcs and fix esc4 detection ([56b91d1](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/56b91d19b2534553b8d1cf672d6a037db780b9b6))
7
7
 
8
- ## [0.3.3](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.2...v0.3.3) (2026-02-19)
8
+ ## [0.3.5](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.4...v0.3.5) (2026-02-19)
9
9
 
10
10
 
11
11
  ### Bug Fixes
12
12
 
13
- * cell coloring; remove requirement for dns lookups and just lookup dumped dns records ([46d3d2a](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/46d3d2afc2b3980df396d5bccc1f5114b9033a61))
13
+ * make --page-size and -v working ([e4bb00d](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/e4bb00d348f82b3685c11c90ab5bfaedf0452e3b))
14
14
 
15
- ## [0.3.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.1...v0.3.2) (2026-02-19)
15
+ ## [0.3.4](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.3...v0.3.4) (2026-02-19)
16
16
 
17
17
 
18
18
  ### Bug Fixes
19
19
 
20
- * add example commands as epilog ([a49e9c7](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/a49e9c77ca10c9c13630ceab4d4b543df94d414d))
20
+ * adcs ca parsing ([bde2e18](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/bde2e18b938e7be809ef4183294e0a025d2e1e26))
21
21
 
22
- ## [0.3.1](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.0...v0.3.1) (2026-02-19)
22
+ ## [0.3.3](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.2...v0.3.3) (2026-02-19)
23
23
 
24
24
 
25
25
  ### Bug Fixes
26
26
 
27
- * dependencies for pypi builds ([92c7071](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/92c707175098a823c5a6f73533543cdb851e50f8))
27
+ * cell coloring; remove requirement for dns lookups and just lookup dumped dns records ([46d3d2a](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/46d3d2afc2b3980df396d5bccc1f5114b9033a61))
28
28
 
29
- ## [0.3.0](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.2.3...v0.3.0) (2026-02-18)
29
+ ## [0.3.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.1...v0.3.2) (2026-02-19)
30
30
 
31
31
 
32
- ### Features
32
+ ### Bug Fixes
33
33
 
34
- * support kerberos authentication via gssapi ([c997fb4](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/c997fb46990c2ffd26e82d491c5d4932acaeb332))
34
+ * add example commands as epilog ([a49e9c7](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/a49e9c77ca10c9c13630ceab4d4b543df94d414d))
35
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyADRecon-ADWS
3
- Version: 0.3.4
3
+ Version: 0.3.6
4
4
  Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
5
5
  Author: LRVT
6
6
  License-Expression: MIT
@@ -53,7 +53,7 @@ pyadrecon_adws --version
53
53
  ````
54
54
 
55
55
  > [!TIP]
56
- > For Windows, a standalone executable is provided. Look [here](https://github.com/l4rm4nd/PyADRecon/tree/main/windows).
56
+ > For Windows, a standalone executable is provided. Look [here](https://github.com/l4rm4nd/PyADRecon/tree/main/windows). Only NTLM authentication works on Windows atm. Kerberos still broken but works on Linux.
57
57
 
58
58
  ## Usage
59
59
 
@@ -187,7 +187,7 @@ Though, you can freely select your own collection of modules to run:
187
187
  ## Acknowledgements
188
188
 
189
189
  Many thanks to the following folks:
190
- - [S3cur3Th1sSh1t](https://github.com/S3cur3Th1sSh1t) for a first Claude draft of an alike PyADRecon LDAP port
190
+ - [S3cur3Th1sSh1t](https://github.com/S3cur3Th1sSh1t) for a first Claude draft of PyADRecon using LDAP
191
191
  - [Sense-of-Security](https://github.com/sense-of-security) for the original ADRecon script in PowerShell
192
192
  - [dirkjanm](https://github.com/dirkjanm) for the original ldapdomaindump script
193
193
  - [mverschu](https://github.com/mverschu) for his port of ldapdomaindump using ADWS (adwsdomaindump). PyADRecon-ADWS heavily makes use of the ldap-to-adws wrapper.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyADRecon-ADWS
3
- Version: 0.3.4
3
+ Version: 0.3.6
4
4
  Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
5
5
  Author: LRVT
6
6
  License-Expression: MIT
@@ -53,7 +53,7 @@ pyadrecon_adws --version
53
53
  ````
54
54
 
55
55
  > [!TIP]
56
- > For Windows, a standalone executable is provided. Look [here](https://github.com/l4rm4nd/PyADRecon/tree/main/windows).
56
+ > For Windows, a standalone executable is provided. Look [here](https://github.com/l4rm4nd/PyADRecon/tree/main/windows). Only NTLM authentication works on Windows atm. Kerberos still broken but works on Linux.
57
57
 
58
58
  ## Usage
59
59
 
@@ -187,7 +187,7 @@ Though, you can freely select your own collection of modules to run:
187
187
  ## Acknowledgements
188
188
 
189
189
  Many thanks to the following folks:
190
- - [S3cur3Th1sSh1t](https://github.com/S3cur3Th1sSh1t) for a first Claude draft of an alike PyADRecon LDAP port
190
+ - [S3cur3Th1sSh1t](https://github.com/S3cur3Th1sSh1t) for a first Claude draft of PyADRecon using LDAP
191
191
  - [Sense-of-Security](https://github.com/sense-of-security) for the original ADRecon script in PowerShell
192
192
  - [dirkjanm](https://github.com/dirkjanm) for the original ldapdomaindump script
193
193
  - [mverschu](https://github.com/mverschu) for his port of ldapdomaindump using ADWS (adwsdomaindump). PyADRecon-ADWS heavily makes use of the ldap-to-adws wrapper.
@@ -33,7 +33,7 @@ pyadrecon_adws --version
33
33
  ````
34
34
 
35
35
  > [!TIP]
36
- > For Windows, a standalone executable is provided. Look [here](https://github.com/l4rm4nd/PyADRecon/tree/main/windows).
36
+ > For Windows, a standalone executable is provided. Look [here](https://github.com/l4rm4nd/PyADRecon/tree/main/windows). Only NTLM authentication works on Windows atm. Kerberos still broken but works on Linux.
37
37
 
38
38
  ## Usage
39
39
 
@@ -167,7 +167,7 @@ Though, you can freely select your own collection of modules to run:
167
167
  ## Acknowledgements
168
168
 
169
169
  Many thanks to the following folks:
170
- - [S3cur3Th1sSh1t](https://github.com/S3cur3Th1sSh1t) for a first Claude draft of an alike PyADRecon LDAP port
170
+ - [S3cur3Th1sSh1t](https://github.com/S3cur3Th1sSh1t) for a first Claude draft of PyADRecon using LDAP
171
171
  - [Sense-of-Security](https://github.com/sense-of-security) for the original ADRecon script in PowerShell
172
172
  - [dirkjanm](https://github.com/dirkjanm) for the original ldapdomaindump script
173
173
  - [mverschu](https://github.com/mverschu) for his port of ldapdomaindump using ADWS (adwsdomaindump). PyADRecon-ADWS heavily makes use of the ldap-to-adws wrapper.
@@ -167,12 +167,13 @@ class KerberosAuth(ADWSAuthType):
167
167
  self.spn = spn
168
168
 
169
169
  class ADWSConnect:
170
- def __init__(self, fqdn: str, domain: str, username: str, auth: NTLMAuth | KerberosAuth, resource: str ):
170
+ def __init__(self, fqdn: str, domain: str, username: str, auth: NTLMAuth | KerberosAuth, resource: str, page_size: int = 256):
171
171
  self._fqdn = fqdn
172
172
  self._domain = domain
173
173
  self._username = username
174
174
  self._auth = auth
175
175
  self._resource: str = resource
176
+ self._page_size: int = page_size
176
177
  self._nmf: NMFConnection = self._connect(self._fqdn, self._resource)
177
178
 
178
179
  def _create_NNS_from_auth(self, sock: socket.socket) -> NNS:
@@ -306,7 +307,7 @@ class ADWSConnect:
306
307
  }
307
308
 
308
309
  def _pull_results(self, remoteName: str, nmf: NMFConnection, enum_ctx: str) -> tuple[ElementTree.Element | None, bool]:
309
- pull_vars = {"uuid": str(uuid4()), "fqdn": remoteName, "enum_ctx": enum_ctx}
310
+ pull_vars = {"uuid": str(uuid4()), "fqdn": remoteName, "enum_ctx": enum_ctx, "max_elements": self._page_size}
310
311
  pull_request_soap = LDAP_PULL_FSTRING.format(**pull_vars)
311
312
 
312
313
  nmf.send(pull_request_soap)
@@ -416,8 +417,8 @@ class ADWSConnect:
416
417
  return aggregated_items_root
417
418
 
418
419
  @classmethod
419
- def pull_client(cls, ip: str, domain: str, username: str, auth: NTLMAuth | KerberosAuth) -> Self:
420
- return cls(ip, domain, username, auth, "Enumeration")
420
+ def pull_client(cls, ip: str, domain: str, username: str, auth: NTLMAuth | KerberosAuth, page_size: int = 256) -> Self:
421
+ return cls(ip, domain, username, auth, "Enumeration", page_size=page_size)
421
422
 
422
423
  @classmethod
423
424
  def put_client(cls, ip: str, domain: str, username: str, auth: NTLMAuth | KerberosAuth) -> Self:
@@ -87,7 +87,7 @@ LDAP_PULL_FSTRING: str = """<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-
87
87
  <s:Body xmlns:wsen="http://schemas.xmlsoap.org/ws/2004/09/enumeration">
88
88
  <wsen:Pull>
89
89
  <wsen:EnumerationContext>{enum_ctx}</wsen:EnumerationContext>
90
- <wsen:MaxElements>256</wsen:MaxElements>
90
+ <wsen:MaxElements>{max_elements}</wsen:MaxElements>
91
91
  <ad:controls>
92
92
  <ad:control criticality="true" type="1.2.840.113556.1.4.801">
93
93
  <ad:controlValue xsi:type="xsd:base64Binary">MIQAAAADAgEH</ad:controlValue>
@@ -160,12 +160,13 @@ class ADWSConnection:
160
160
  """
161
161
  def __init__(self, server: ADWSServer, user: Optional[str] = None,
162
162
  password: Optional[str] = None, authentication: Any = None,
163
- spn: Optional[str] = None):
163
+ spn: Optional[str] = None, page_size: int = 256):
164
164
  self.server = server
165
165
  self.user = user
166
166
  self.password = password
167
167
  self.authentication = authentication
168
168
  self.spn = spn
169
+ self.page_size = page_size
169
170
  self.entries = []
170
171
  self._adws_client = None
171
172
  self._root_dn = None
@@ -207,7 +208,8 @@ class ADWSConnection:
207
208
  ip=self.server.host,
208
209
  domain=domain,
209
210
  username=username,
210
- auth=auth
211
+ auth=auth,
212
+ page_size=self.page_size
211
213
  )
212
214
 
213
215
  # Get root DN from RootDSE
@@ -0,0 +1,3 @@
1
+ {
2
+ "version": "0.3.6"
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.4" # Automatically updated by CI/CD pipeline during release
72
+ VERSION = "v0.3.6" # Automatically updated by CI/CD pipeline during release
73
73
  BANNER = f"""
74
74
  ╔═══════════════════════════════════════════════════════════════════
75
75
  ║ PyADRecon-ADWS {VERSION} - Python AD Reconnaissance Tool (ADWS)
@@ -158,11 +158,7 @@ GROUP_TYPE = {
158
158
  -2147483640: "Universal Security",
159
159
  }
160
160
 
161
- # Logging setup
162
- logging.basicConfig(
163
- level=logging.INFO,
164
- format='[%(levelname)s] %(message)s'
165
- )
161
+ # Logging setup - level will be configured in main() based on -v flag
166
162
  logger = logging.getLogger('PyADRecon')
167
163
 
168
164
 
@@ -779,7 +775,8 @@ class PyADRecon:
779
775
  user=self.config.username,
780
776
  password=self.config.password,
781
777
  authentication=self.config.auth_method,
782
- spn=self.config.spn
778
+ spn=self.config.spn,
779
+ page_size=self.config.page_size
783
780
  )
784
781
 
785
782
  # Bind (authenticate)
@@ -963,11 +960,18 @@ class PyADRecon:
963
960
  if ace_type == 5: # ACCESS_ALLOWED_OBJECT_ACE_TYPE
964
961
  try:
965
962
  ace_data = ace['Ace']
966
- flags = ace_data.get('Flags', 0)
963
+ # Check if ObjectType is present (Flags is a bitfield)
964
+ # Try to access Flags field directly
965
+ try:
966
+ flags = ace_data['Flags']
967
+ except (KeyError, TypeError):
968
+ flags = 0
969
+
967
970
  # If no ObjectType GUID (flags & 0x1 == 0), it applies to ALL properties
968
971
  if not (flags & 0x1):
969
972
  has_generic_write_property = True
970
973
  except (KeyError, TypeError):
974
+ # If we can't determine, assume it's generic (safer for detection)
971
975
  has_generic_write_property = True
972
976
  else:
973
977
  # Standard ACE with write property = applies to all properties
@@ -4260,6 +4264,10 @@ class PyADRecon:
4260
4264
  if risk_level not in ['CRITICAL', 'HIGH']:
4261
4265
  risk_level = 'HIGH'
4262
4266
  risk_factors.append('ESC4: Low-privileged owner can modify template')
4267
+
4268
+ # If no ESC vulnerabilities and no risk factors, set risk level to None
4269
+ if not esc_vulns and not risk_factors:
4270
+ risk_level = 'None'
4263
4271
 
4264
4272
  # Format enrollment and write permissions
4265
4273
  enroll_perms_str = '; '.join(enrollment_principals) if enrollment_principals else 'None'
@@ -6723,10 +6731,10 @@ Examples:
6723
6731
 
6724
6732
  # Configure logging level
6725
6733
  if args.verbose:
6726
- logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - %(message)s')
6734
+ logging.basicConfig(level=logging.DEBUG, format='[%(levelname)s] %(message)s', force=True)
6727
6735
  logger.setLevel(logging.DEBUG)
6728
6736
  else:
6729
- logging.basicConfig(level=logging.INFO, format='%(message)s')
6737
+ logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(message)s', force=True)
6730
6738
  logger.setLevel(logging.INFO)
6731
6739
 
6732
6740
  # Validate required arguments for normal mode
@@ -1,3 +0,0 @@
1
- {
2
- "version": "0.3.4"
3
- }
File without changes
File without changes