PyADRecon-ADWS 0.3.3__tar.gz → 0.3.5__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.3 → pyadrecon_adws-0.3.5}/CHANGELOG.md +11 -11
  2. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/PKG-INFO +3 -3
  3. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/PyADRecon_ADWS.egg-info/PKG-INFO +3 -3
  4. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/README.md +2 -2
  5. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/adws.py +5 -4
  6. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/soap_templates.py +1 -1
  7. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws_wrapper.py +4 -2
  8. pyadrecon_adws-0.3.5/package.json +3 -0
  9. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/pyadrecon_adws.py +9 -12
  10. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/windows/README.md +6 -2
  11. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/windows/pyadrecon_adws.exe +0 -0
  12. pyadrecon_adws-0.3.3/package.json +0 -3
  13. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.dockerignore +0 -0
  14. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.github/FUNDING.yml +0 -0
  15. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  16. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  17. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.github/pyadrecon.png +0 -0
  18. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.github/workflows/conventional-commits.yml +0 -0
  19. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.github/workflows/pypi.yml +0 -0
  20. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/.gitignore +0 -0
  21. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/Dockerfile +0 -0
  22. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/LICENSE +0 -0
  23. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
  24. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
  25. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
  26. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
  27. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
  28. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/__init__.py +0 -0
  29. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/__init__.py +0 -0
  30. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/__init__.py +0 -0
  31. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/encoder.py +0 -0
  32. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/__init__.py +0 -0
  33. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/attributes.py +0 -0
  34. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/constants.py +0 -0
  35. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/datatypes.py +0 -0
  36. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/elements.py +0 -0
  37. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/record.py +0 -0
  38. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/text.py +0 -0
  39. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/records/utils.py +0 -0
  40. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/encoder/xml_parser.py +0 -0
  41. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/ms_nmf.py +0 -0
  42. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/helpers/adws/ms_nns.py +0 -0
  43. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/pyproject.toml +0 -0
  44. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/requirements.txt +0 -0
  45. {pyadrecon_adws-0.3.3 → pyadrecon_adws-0.3.5}/setup.cfg +0 -0
@@ -1,35 +1,35 @@
1
- ## [0.3.3](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.2...v0.3.3) (2026-02-19)
1
+ ## [0.3.5](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.4...v0.3.5) (2026-02-19)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * cell coloring; remove requirement for dns lookups and just lookup dumped dns records ([46d3d2a](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/46d3d2afc2b3980df396d5bccc1f5114b9033a61))
6
+ * make --page-size and -v working ([e4bb00d](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/e4bb00d348f82b3685c11c90ab5bfaedf0452e3b))
7
7
 
8
- ## [0.3.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.1...v0.3.2) (2026-02-19)
8
+ ## [0.3.4](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.3...v0.3.4) (2026-02-19)
9
9
 
10
10
 
11
11
  ### Bug Fixes
12
12
 
13
- * add example commands as epilog ([a49e9c7](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/a49e9c77ca10c9c13630ceab4d4b543df94d414d))
13
+ * adcs ca parsing ([bde2e18](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/bde2e18b938e7be809ef4183294e0a025d2e1e26))
14
14
 
15
- ## [0.3.1](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.0...v0.3.1) (2026-02-19)
15
+ ## [0.3.3](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.2...v0.3.3) (2026-02-19)
16
16
 
17
17
 
18
18
  ### Bug Fixes
19
19
 
20
- * dependencies for pypi builds ([92c7071](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/92c707175098a823c5a6f73533543cdb851e50f8))
20
+ * cell coloring; remove requirement for dns lookups and just lookup dumped dns records ([46d3d2a](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/46d3d2afc2b3980df396d5bccc1f5114b9033a61))
21
21
 
22
- ## [0.3.0](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.2.3...v0.3.0) (2026-02-18)
22
+ ## [0.3.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.1...v0.3.2) (2026-02-19)
23
23
 
24
24
 
25
- ### Features
25
+ ### Bug Fixes
26
26
 
27
- * support kerberos authentication via gssapi ([c997fb4](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/c997fb46990c2ffd26e82d491c5d4932acaeb332))
27
+ * add example commands as epilog ([a49e9c7](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/a49e9c77ca10c9c13630ceab4d4b543df94d414d))
28
28
 
29
- ## [0.2.3](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.2.2...v0.2.3) (2026-02-18)
29
+ ## [0.3.1](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.3.0...v0.3.1) (2026-02-19)
30
30
 
31
31
 
32
32
  ### Bug Fixes
33
33
 
34
- * register missing collection methods and fix parsing ([2a02d60](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/2a02d605c020475be59126e9ef768cf2b070338a))
34
+ * dependencies for pypi builds ([92c7071](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/92c707175098a823c5a6f73533543cdb851e50f8))
35
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyADRecon-ADWS
3
- Version: 0.3.3
3
+ Version: 0.3.5
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.3
3
+ Version: 0.3.5
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.5"
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.3" # Automatically updated by CI/CD pipeline during release
72
+ VERSION = "v0.3.5" # 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
 
@@ -221,9 +217,9 @@ def format_datetime(dt) -> str:
221
217
 
222
218
  def _extract_adws_value(attr):
223
219
  """Extract primitive value from ADWS Attribute object."""
224
- if hasattr(attr, 'value'):
225
- # It's an ADWS Attribute object
226
- return attr.value
220
+ if hasattr(attr, 'values'):
221
+ # It's an ADWS Attribute object - use .values to get all values (returns list)
222
+ return attr.values
227
223
  return attr
228
224
 
229
225
 
@@ -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)
@@ -6723,10 +6720,10 @@ Examples:
6723
6720
 
6724
6721
  # Configure logging level
6725
6722
  if args.verbose:
6726
- logging.basicConfig(level=logging.DEBUG, format='%(levelname)s - %(message)s')
6723
+ logging.basicConfig(level=logging.DEBUG, format='[%(levelname)s] %(message)s', force=True)
6727
6724
  logger.setLevel(logging.DEBUG)
6728
6725
  else:
6729
- logging.basicConfig(level=logging.INFO, format='%(message)s')
6726
+ logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(message)s', force=True)
6730
6727
  logger.setLevel(logging.INFO)
6731
6728
 
6732
6729
  # Validate required arguments for normal mode
@@ -55,7 +55,7 @@ The following ports must be accessible on the Domain Controller:
55
55
  > [!NOTE]
56
56
  > NTLM authentication works with DC IP addresses or hostnames.
57
57
 
58
- #### Kerberos Authentication
58
+ <!--#### Kerberos Authentication
59
59
  ```powershell
60
60
  .\pyadrecon_adws.exe -dc dc1.vulnad.local -d vulnad.local -u john --auth kerberos
61
61
  ```
@@ -92,7 +92,7 @@ klist
92
92
  ```powershell
93
93
  .\pyadrecon_adws.exe -dc dc1.vulnad.local -d vulnad.local -u john --auth kerberos
94
94
  ```
95
-
95
+ -->
96
96
  ---
97
97
 
98
98
  ## Installation Methods
@@ -162,10 +162,12 @@ python -m pip install .
162
162
  python .\pyadrecon_adws.py -dc 10.10.10.10 -d vulnad.local -u john -p "P@ssw0rd"
163
163
  ```
164
164
 
165
+ <!--
165
166
  **Kerberos:**
166
167
  ```powershell
167
168
  python .\pyadrecon_adws.py -dc dc1.vulnad.local -d vulnad.local -u john --auth kerberos
168
169
  ```
170
+ -->
169
171
  ---
170
172
 
171
173
  ### Building Your Own Executable
@@ -211,6 +213,7 @@ Contents:
211
213
 
212
214
  ## Troubleshooting
213
215
 
216
+ <!--
214
217
  ### Kerberos fails when using an IP address
215
218
 
216
219
  **Problem:** Kerberos requires an SPN based on the DC hostname (e.g., `ldap/dc1.vulnad.local`).
@@ -233,6 +236,7 @@ klist
233
236
  ```
234
237
 
235
238
  ---
239
+ -->
236
240
 
237
241
  ### DNS resolution fails
238
242
 
@@ -1,3 +0,0 @@
1
- {
2
- "version": "0.3.3"
3
- }
File without changes
File without changes