PyADRecon-ADWS 0.4.13__tar.gz → 0.5.0__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.4.13 → pyadrecon_adws-0.5.0}/CHANGELOG.md +11 -11
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/PKG-INFO +1 -1
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/PyADRecon_ADWS.egg-info/PKG-INFO +1 -1
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/PyADRecon_ADWS.egg-info/SOURCES.txt +1 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/dashboard_generator.py +138 -31
- pyadrecon_adws-0.5.0/generate_test_data.py +348 -0
- pyadrecon_adws-0.5.0/package.json +3 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/pyadrecon_adws.py +11 -10
- pyadrecon_adws-0.4.13/package.json +0 -3
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.dockerignore +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.github/FUNDING.yml +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.github/pyadrecon.png +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.github/workflows/conventional-commits.yml +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.github/workflows/pypi.yml +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/.gitignore +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/Dockerfile +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/LICENSE +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/README.md +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/__init__.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/__init__.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/adws.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/__init__.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/encoder.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/__init__.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/attributes.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/constants.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/datatypes.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/elements.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/record.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/text.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/records/utils.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/encoder/xml_parser.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/ms_nmf.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/ms_nns.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws/soap_templates.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/helpers/adws_wrapper.py +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/pyproject.toml +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/requirements.txt +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/setup.cfg +0 -0
- {pyadrecon_adws-0.4.13 → pyadrecon_adws-0.5.0}/windows/README.md +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
## [0.
|
|
1
|
+
## [0.5.0](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.14...v0.5.0) (2026-02-22)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* paginated dashboard, fixed logging ([fbcd8d8](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/fbcd8d80d09c5efb727ab53d36dde465ea73b107))
|
|
7
7
|
|
|
8
|
-
## [0.4.
|
|
8
|
+
## [0.4.14](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.13...v0.4.14) (2026-02-22)
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### Bug Fixes
|
|
12
12
|
|
|
13
|
-
*
|
|
13
|
+
* rename finding ([e09d60f](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/e09d60f8112b7ad2568af288deaeacfe5cba5a6d))
|
|
14
14
|
|
|
15
|
-
## [0.4.
|
|
15
|
+
## [0.4.13](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.12...v0.4.13) (2026-02-22)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
### Bug Fixes
|
|
19
19
|
|
|
20
|
-
*
|
|
20
|
+
* rework protected users group ([0e850bd](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/0e850bdf0a30bf22f3f11ad60c87c8dc4f955b96))
|
|
21
21
|
|
|
22
|
-
## [0.4.
|
|
22
|
+
## [0.4.12](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.11...v0.4.12) (2026-02-21)
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
### Bug Fixes
|
|
26
26
|
|
|
27
|
-
*
|
|
27
|
+
* add support for --generate-dashboard-from ([7e6eb2b](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/7e6eb2b35dca62a0832a537f394d8dad42ed374f))
|
|
28
28
|
|
|
29
|
-
## [0.4.
|
|
29
|
+
## [0.4.11](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.4.10...v0.4.11) (2026-02-21)
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
### Bug Fixes
|
|
33
33
|
|
|
34
|
-
*
|
|
34
|
+
* update footer ([26fae34](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/26fae34a4a0fd921b752210a5879945a9f571569))
|
|
35
35
|
|
|
@@ -894,7 +894,7 @@ class DashboardGenerator:
|
|
|
894
894
|
</tr>
|
|
895
895
|
</thead>
|
|
896
896
|
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
|
|
897
|
-
<tr v-for="template in
|
|
897
|
+
<tr v-for="template in paginatedVulnCertTemplates" :key="template['Template Name']">
|
|
898
898
|
<td class="px-6 py-4 whitespace-nowrap font-medium">{{{{ template['Template Name'] }}}}</td>
|
|
899
899
|
<td class="px-6 py-4">
|
|
900
900
|
<span v-if="template['ESC Vulnerabilities'] !== 'None'" class="text-red-600 dark:text-red-400 font-semibold">
|
|
@@ -919,6 +919,33 @@ class DashboardGenerator:
|
|
|
919
919
|
</tbody>
|
|
920
920
|
</table>
|
|
921
921
|
</div>
|
|
922
|
+
|
|
923
|
+
<!-- Pagination for Vulnerable Certificate Templates -->
|
|
924
|
+
<div v-if="Math.ceil(vulnerableCertTemplates.length / itemsPerPage) > 1" class="flex items-center justify-between bg-gray-50 dark:bg-gray-700 px-4 py-3 mt-4 rounded-lg">
|
|
925
|
+
<div class="flex-1 flex justify-between sm:hidden">
|
|
926
|
+
<button @click="vulnCertTemplatePage = Math.max(1, vulnCertTemplatePage - 1)" :disabled="vulnCertTemplatePage === 1" class="pagination-btn">Previous</button>
|
|
927
|
+
<span class="text-sm text-gray-700 dark:text-gray-300">Page {{{{ vulnCertTemplatePage }}}} of {{{{ Math.ceil(vulnerableCertTemplates.length / itemsPerPage) }}}}</span>
|
|
928
|
+
<button @click="vulnCertTemplatePage = Math.min(Math.ceil(vulnerableCertTemplates.length / itemsPerPage), vulnCertTemplatePage + 1)" :disabled="vulnCertTemplatePage === Math.ceil(vulnerableCertTemplates.length / itemsPerPage)" class="pagination-btn">Next</button>
|
|
929
|
+
</div>
|
|
930
|
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
|
931
|
+
<div>
|
|
932
|
+
<p class="text-sm text-gray-700 dark:text-gray-300">
|
|
933
|
+
Showing <span class="font-medium">{{{{ (vulnCertTemplatePage - 1) * itemsPerPage + 1 }}}}</span> to <span class="font-medium">{{{{ Math.min(vulnCertTemplatePage * itemsPerPage, vulnerableCertTemplates.length) }}}}</span> of <span class="font-medium">{{{{ vulnerableCertTemplates.length }}}}</span> vulnerable templates
|
|
934
|
+
</p>
|
|
935
|
+
</div>
|
|
936
|
+
<div class="flex gap-2">
|
|
937
|
+
<button @click="vulnCertTemplatePage = Math.max(1, vulnCertTemplatePage - 1)" :disabled="vulnCertTemplatePage === 1" class="pagination-btn">
|
|
938
|
+
<i class="fas fa-chevron-left"></i> Previous
|
|
939
|
+
</button>
|
|
940
|
+
<span class="px-3 py-2 text-sm text-gray-700 dark:text-gray-300">
|
|
941
|
+
Page {{{{ vulnCertTemplatePage }}}} of {{{{ Math.ceil(vulnerableCertTemplates.length / itemsPerPage) }}}}
|
|
942
|
+
</span>
|
|
943
|
+
<button @click="vulnCertTemplatePage = Math.min(Math.ceil(vulnerableCertTemplates.length / itemsPerPage), vulnCertTemplatePage + 1)" :disabled="vulnCertTemplatePage === Math.ceil(vulnerableCertTemplates.length / itemsPerPage)" class="pagination-btn">
|
|
944
|
+
Next <i class="fas fa-chevron-right"></i>
|
|
945
|
+
</button>
|
|
946
|
+
</div>
|
|
947
|
+
</div>
|
|
948
|
+
</div>
|
|
922
949
|
</div>
|
|
923
950
|
|
|
924
951
|
<!-- Kerberoastable Accounts -->
|
|
@@ -1146,7 +1173,7 @@ class DashboardGenerator:
|
|
|
1146
1173
|
</tr>
|
|
1147
1174
|
</thead>
|
|
1148
1175
|
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
|
|
1149
|
-
<tr v-for="user in
|
|
1176
|
+
<tr v-for="user in paginatedCleartextPasswords" :key="user.UserName">
|
|
1150
1177
|
<td class="px-6 py-4 whitespace-nowrap font-medium">{{{{ user.UserName }}}}</td>
|
|
1151
1178
|
<td class="px-6 py-4">{{{{ user.Name }}}}</td>
|
|
1152
1179
|
<td class="px-6 py-4 text-sm">
|
|
@@ -1165,6 +1192,33 @@ class DashboardGenerator:
|
|
|
1165
1192
|
</tbody>
|
|
1166
1193
|
</table>
|
|
1167
1194
|
</div>
|
|
1195
|
+
|
|
1196
|
+
<!-- Pagination for Cleartext Passwords -->
|
|
1197
|
+
<div v-if="Math.ceil(usersWithPasswordsInInfo.length / itemsPerPage) > 1" class="flex items-center justify-between bg-gray-50 dark:bg-gray-700 px-4 py-3 mt-4 rounded-lg">
|
|
1198
|
+
<div class="flex-1 flex justify-between sm:hidden">
|
|
1199
|
+
<button @click="cleartextPage = Math.max(1, cleartextPage - 1)" :disabled="cleartextPage === 1" class="pagination-btn">Previous</button>
|
|
1200
|
+
<span class="text-sm text-gray-700 dark:text-gray-300">Page {{{{ cleartextPage }}}} of {{{{ Math.ceil(usersWithPasswordsInInfo.length / itemsPerPage) }}}}</span>
|
|
1201
|
+
<button @click="cleartextPage = Math.min(Math.ceil(usersWithPasswordsInInfo.length / itemsPerPage), cleartextPage + 1)" :disabled="cleartextPage === Math.ceil(usersWithPasswordsInInfo.length / itemsPerPage)" class="pagination-btn">Next</button>
|
|
1202
|
+
</div>
|
|
1203
|
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
|
1204
|
+
<div>
|
|
1205
|
+
<p class="text-sm text-gray-700 dark:text-gray-300">
|
|
1206
|
+
Showing <span class="font-medium">{{{{ (cleartextPage - 1) * itemsPerPage + 1 }}}}</span> to <span class="font-medium">{{{{ Math.min(cleartextPage * itemsPerPage, usersWithPasswordsInInfo.length) }}}}</span> of <span class="font-medium">{{{{ usersWithPasswordsInInfo.length }}}}</span> users with cleartext passwords
|
|
1207
|
+
</p>
|
|
1208
|
+
</div>
|
|
1209
|
+
<div class="flex gap-2">
|
|
1210
|
+
<button @click="cleartextPage = Math.max(1, cleartextPage - 1)" :disabled="cleartextPage === 1" class="pagination-btn">
|
|
1211
|
+
<i class="fas fa-chevron-left"></i> Previous
|
|
1212
|
+
</button>
|
|
1213
|
+
<span class="px-3 py-2 text-sm text-gray-700 dark:text-gray-300">
|
|
1214
|
+
Page {{{{ cleartextPage }}}} of {{{{ Math.ceil(usersWithPasswordsInInfo.length / itemsPerPage) }}}}
|
|
1215
|
+
</span>
|
|
1216
|
+
<button @click="cleartextPage = Math.min(Math.ceil(usersWithPasswordsInInfo.length / itemsPerPage), cleartextPage + 1)" :disabled="cleartextPage === Math.ceil(usersWithPasswordsInInfo.length / itemsPerPage)" class="pagination-btn">
|
|
1217
|
+
Next <i class="fas fa-chevron-right"></i>
|
|
1218
|
+
</button>
|
|
1219
|
+
</div>
|
|
1220
|
+
</div>
|
|
1221
|
+
</div>
|
|
1168
1222
|
</div>
|
|
1169
1223
|
|
|
1170
1224
|
<!-- LAPS Readable Passwords -->
|
|
@@ -1323,7 +1377,7 @@ class DashboardGenerator:
|
|
|
1323
1377
|
<!-- Protected Groups & AdminSDHolder -->
|
|
1324
1378
|
<div id="protected-users-section" v-if="protectedGroups.length > 0" class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
|
|
1325
1379
|
<h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">
|
|
1326
|
-
<i class="fas fa-shield-alt text-teal-600"></i>
|
|
1380
|
+
<i class="fas fa-shield-alt text-teal-600"></i> Not in Protected Users Group ({{{{ unprotectedPrivilegedUsers.length }}}})
|
|
1327
1381
|
</h2>
|
|
1328
1382
|
|
|
1329
1383
|
<div class="bg-teal-50 dark:bg-teal-900/20 border-l-4 border-teal-500 p-4 mb-6">
|
|
@@ -1798,21 +1852,31 @@ class DashboardGenerator:
|
|
|
1798
1852
|
</tr>
|
|
1799
1853
|
</tbody>
|
|
1800
1854
|
</table>
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1855
|
+
|
|
1856
|
+
<!-- Pagination for Users -->
|
|
1857
|
+
<div v-if="Math.ceil(filteredUsers.length / itemsPerPage) > 1" class="flex items-center justify-between bg-gray-50 dark:bg-gray-700 px-4 py-3 mt-4 rounded-lg">
|
|
1858
|
+
<div class="flex-1 flex justify-between sm:hidden">
|
|
1859
|
+
<button @click="userPage = Math.max(1, userPage - 1)" :disabled="userPage === 1" class="pagination-btn">Previous</button>
|
|
1860
|
+
<span class="text-sm text-gray-700 dark:text-gray-300">Page {{{{ userPage }}}} of {{{{ Math.ceil(filteredUsers.length / itemsPerPage) }}}}</span>
|
|
1861
|
+
<button @click="userPage = Math.min(Math.ceil(filteredUsers.length / itemsPerPage), userPage + 1)" :disabled="userPage === Math.ceil(filteredUsers.length / itemsPerPage)" class="pagination-btn">Next</button>
|
|
1804
1862
|
</div>
|
|
1805
|
-
<div class="flex
|
|
1806
|
-
<
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
<
|
|
1812
|
-
|
|
1813
|
-
class="
|
|
1814
|
-
|
|
1815
|
-
|
|
1863
|
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
|
1864
|
+
<div>
|
|
1865
|
+
<p class="text-sm text-gray-700 dark:text-gray-300">
|
|
1866
|
+
Showing <span class="font-medium">{{{{ (userPage - 1) * itemsPerPage + 1 }}}}</span> to <span class="font-medium">{{{{ Math.min(userPage * itemsPerPage, filteredUsers.length) }}}}</span> of <span class="font-medium">{{{{ filteredUsers.length }}}}</span> users
|
|
1867
|
+
</p>
|
|
1868
|
+
</div>
|
|
1869
|
+
<div class="flex gap-2">
|
|
1870
|
+
<button @click="userPage = Math.max(1, userPage - 1)" :disabled="userPage === 1" class="pagination-btn">
|
|
1871
|
+
<i class="fas fa-chevron-left"></i> Previous
|
|
1872
|
+
</button>
|
|
1873
|
+
<span class="px-3 py-2 text-sm text-gray-700 dark:text-gray-300">
|
|
1874
|
+
Page {{{{ userPage }}}} of {{{{ Math.ceil(filteredUsers.length / itemsPerPage) }}}}
|
|
1875
|
+
</span>
|
|
1876
|
+
<button @click="userPage = Math.min(Math.ceil(filteredUsers.length / itemsPerPage), userPage + 1)" :disabled="userPage === Math.ceil(filteredUsers.length / itemsPerPage)" class="pagination-btn">
|
|
1877
|
+
Next <i class="fas fa-chevron-right"></i>
|
|
1878
|
+
</button>
|
|
1879
|
+
</div>
|
|
1816
1880
|
</div>
|
|
1817
1881
|
</div>
|
|
1818
1882
|
</div>
|
|
@@ -1939,21 +2003,31 @@ class DashboardGenerator:
|
|
|
1939
2003
|
</tbody>
|
|
1940
2004
|
</table>
|
|
1941
2005
|
</div>
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
2006
|
+
|
|
2007
|
+
<!-- Pagination for Computers -->
|
|
2008
|
+
<div v-if="Math.ceil(filteredComputers.length / itemsPerPage) > 1" class="flex items-center justify-between bg-gray-50 dark:bg-gray-700 px-4 py-3 mt-4 rounded-lg">
|
|
2009
|
+
<div class="flex-1 flex justify-between sm:hidden">
|
|
2010
|
+
<button @click="computerPage = Math.max(1, computerPage - 1)" :disabled="computerPage === 1" class="pagination-btn">Previous</button>
|
|
2011
|
+
<span class="text-sm text-gray-700 dark:text-gray-300">Page {{{{ computerPage }}}} of {{{{ Math.ceil(filteredComputers.length / itemsPerPage) }}}}</span>
|
|
2012
|
+
<button @click="computerPage = Math.min(Math.ceil(filteredComputers.length / itemsPerPage), computerPage + 1)" :disabled="computerPage === Math.ceil(filteredComputers.length / itemsPerPage)" class="pagination-btn">Next</button>
|
|
1945
2013
|
</div>
|
|
1946
|
-
<div class="flex
|
|
1947
|
-
<
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
<
|
|
1953
|
-
|
|
1954
|
-
class="
|
|
1955
|
-
|
|
1956
|
-
|
|
2014
|
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
|
2015
|
+
<div>
|
|
2016
|
+
<p class="text-sm text-gray-700 dark:text-gray-300">
|
|
2017
|
+
Showing <span class="font-medium">{{{{ (computerPage - 1) * itemsPerPage + 1 }}}}</span> to <span class="font-medium">{{{{ Math.min(computerPage * itemsPerPage, filteredComputers.length) }}}}</span> of <span class="font-medium">{{{{ filteredComputers.length }}}}</span> computers
|
|
2018
|
+
</p>
|
|
2019
|
+
</div>
|
|
2020
|
+
<div class="flex gap-2">
|
|
2021
|
+
<button @click="computerPage = Math.max(1, computerPage - 1)" :disabled="computerPage === 1" class="pagination-btn">
|
|
2022
|
+
<i class="fas fa-chevron-left"></i> Previous
|
|
2023
|
+
</button>
|
|
2024
|
+
<span class="px-3 py-2 text-sm text-gray-700 dark:text-gray-300">
|
|
2025
|
+
Page {{{{ computerPage }}}} of {{{{ Math.ceil(filteredComputers.length / itemsPerPage) }}}}
|
|
2026
|
+
</span>
|
|
2027
|
+
<button @click="computerPage = Math.min(Math.ceil(filteredComputers.length / itemsPerPage), computerPage + 1)" :disabled="computerPage === Math.ceil(filteredComputers.length / itemsPerPage)" class="pagination-btn">
|
|
2028
|
+
Next <i class="fas fa-chevron-right"></i>
|
|
2029
|
+
</button>
|
|
2030
|
+
</div>
|
|
1957
2031
|
</div>
|
|
1958
2032
|
</div>
|
|
1959
2033
|
</div>
|
|
@@ -1988,6 +2062,8 @@ class DashboardGenerator:
|
|
|
1988
2062
|
kerberoastPage: 1,
|
|
1989
2063
|
asrepPage: 1,
|
|
1990
2064
|
lapsPage: 1,
|
|
2065
|
+
vulnCertTemplatePage: 1,
|
|
2066
|
+
cleartextPage: 1,
|
|
1991
2067
|
itemsPerPage: 50,
|
|
1992
2068
|
certTemplateFilter: 'all',
|
|
1993
2069
|
certTemplateRiskFilter: 'risk-gt-none',
|
|
@@ -2692,6 +2768,35 @@ class DashboardGenerator:
|
|
|
2692
2768
|
return filtered.slice(start, end);
|
|
2693
2769
|
}},
|
|
2694
2770
|
|
|
2771
|
+
paginatedVulnCertTemplates() {{
|
|
2772
|
+
const start = (this.vulnCertTemplatePage - 1) * this.itemsPerPage;
|
|
2773
|
+
const end = start + this.itemsPerPage;
|
|
2774
|
+
return this.vulnerableCertTemplates.slice(start, end);
|
|
2775
|
+
}},
|
|
2776
|
+
|
|
2777
|
+
paginatedCleartextPasswords() {{
|
|
2778
|
+
let filtered = this.usersWithPasswordsInInfo;
|
|
2779
|
+
|
|
2780
|
+
// Apply sorting
|
|
2781
|
+
if (this.cleartextSortColumn) {{
|
|
2782
|
+
const direction = this.cleartextSortDirection === 'asc' ? 1 : -1;
|
|
2783
|
+
const column = this.cleartextSortColumn;
|
|
2784
|
+
|
|
2785
|
+
filtered.sort((a, b) => {{
|
|
2786
|
+
const aValue = (a[column] || '').toString().toLowerCase();
|
|
2787
|
+
const bValue = (b[column] || '').toString().toLowerCase();
|
|
2788
|
+
|
|
2789
|
+
if (aValue < bValue) return -1 * direction;
|
|
2790
|
+
if (aValue > bValue) return 1 * direction;
|
|
2791
|
+
return 0;
|
|
2792
|
+
}});
|
|
2793
|
+
}}
|
|
2794
|
+
|
|
2795
|
+
const start = (this.cleartextPage - 1) * this.itemsPerPage;
|
|
2796
|
+
const end = start + this.itemsPerPage;
|
|
2797
|
+
return filtered.slice(start, end);
|
|
2798
|
+
}},
|
|
2799
|
+
|
|
2695
2800
|
filteredComputers() {{
|
|
2696
2801
|
let filtered = [...this.computers];
|
|
2697
2802
|
|
|
@@ -2936,6 +3041,7 @@ class DashboardGenerator:
|
|
|
2936
3041
|
this.vulnCertTemplateSortColumn = column;
|
|
2937
3042
|
this.vulnCertTemplateSortDirection = 'asc';
|
|
2938
3043
|
}}
|
|
3044
|
+
this.vulnCertTemplatePage = 1; // Reset to first page when sorting
|
|
2939
3045
|
}},
|
|
2940
3046
|
|
|
2941
3047
|
sortKerberoast(column) {{
|
|
@@ -2965,6 +3071,7 @@ class DashboardGenerator:
|
|
|
2965
3071
|
this.cleartextSortColumn = column;
|
|
2966
3072
|
this.cleartextSortDirection = 'asc';
|
|
2967
3073
|
}}
|
|
3074
|
+
this.cleartextPage = 1; // Reset to first page when sorting
|
|
2968
3075
|
}},
|
|
2969
3076
|
|
|
2970
3077
|
sortLaps(column) {{
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Generate large test CSV files for dashboard performance testing"""
|
|
3
|
+
|
|
4
|
+
import csv
|
|
5
|
+
import random
|
|
6
|
+
from datetime import datetime, timedelta
|
|
7
|
+
import os
|
|
8
|
+
|
|
9
|
+
# Configuration
|
|
10
|
+
NUM_USERS = 10000
|
|
11
|
+
NUM_CERT_TEMPLATES = 10000
|
|
12
|
+
NUM_COMPUTERS = 10000
|
|
13
|
+
OUTPUT_DIR = "PyADRecon-ADWS-Report-20260222042207/CSV-Files"
|
|
14
|
+
|
|
15
|
+
# Sample data for realistic generation
|
|
16
|
+
FIRST_NAMES = ["John", "Jane", "Michael", "Sarah", "David", "Emily", "James", "Lisa", "Robert", "Jennifer",
|
|
17
|
+
"William", "Linda", "Richard", "Patricia", "Joseph", "Elizabeth", "Thomas", "Barbara", "Charles", "Susan",
|
|
18
|
+
"Daniel", "Jessica", "Matthew", "Nancy", "Anthony", "Karen", "Mark", "Betty", "Donald", "Helen"]
|
|
19
|
+
|
|
20
|
+
LAST_NAMES = ["Smith", "Johnson", "Williams", "Brown", "Jones", "Garcia", "Miller", "Davis", "Rodriguez", "Martinez",
|
|
21
|
+
"Hernandez", "Lopez", "Gonzalez", "Wilson", "Anderson", "Thomas", "Taylor", "Moore", "Jackson", "Martin",
|
|
22
|
+
"Lee", "Perez", "Thompson", "White", "Harris", "Sanchez", "Clark", "Ramirez", "Lewis", "Robinson"]
|
|
23
|
+
|
|
24
|
+
DEPARTMENTS = ["IT", "HR", "Finance", "Sales", "Marketing", "Engineering", "Operations", "Legal", "Support", "Research"]
|
|
25
|
+
TITLES = ["Manager", "Director", "Analyst", "Engineer", "Administrator", "Specialist", "Coordinator", "Consultant", "Developer", "Technician"]
|
|
26
|
+
COMPANIES = ["Vulnad Corp", "TechCorp", "DataSystems", "SecureNet"]
|
|
27
|
+
|
|
28
|
+
CERT_TEMPLATE_TYPES = ["User", "Computer", "WebServer", "CodeSigning", "DomainController", "MachineEnrollment",
|
|
29
|
+
"SubCA", "Administrator", "SmartcardUser", "IPSecIntermediateOffline", "DirectoryEmailReplication"]
|
|
30
|
+
|
|
31
|
+
EKU_OPTIONS = ["1.3.6.1.5.5.7.3.2", "1.3.6.1.5.5.7.3.4", "1.3.6.1.4.1.311.10.3.4", "1.3.6.1.4.1.311.20.2.2",
|
|
32
|
+
"1.3.6.1.5.5.7.3.1", "1.3.6.1.5.5.7.3.3"]
|
|
33
|
+
|
|
34
|
+
ESC_VULNS = ["None", "ESC1", "ESC2", "ESC3", "ESC4", "ESC1, ESC3", "ESC2, ESC4"]
|
|
35
|
+
RISK_LEVELS = ["None", "LOW", "MEDIUM", "HIGH", "CRITICAL"]
|
|
36
|
+
|
|
37
|
+
OS_VERSIONS = [
|
|
38
|
+
"Windows Server 2019 Standard 10.0 (17763)",
|
|
39
|
+
"Windows Server 2016 Standard 10.0 (14393)",
|
|
40
|
+
"Windows Server 2022 Standard 10.0 (20348)",
|
|
41
|
+
"Windows 11 Pro 10.0 (22631)",
|
|
42
|
+
"Windows 10 Pro 10.0 (19045)",
|
|
43
|
+
"Windows 10 Enterprise 10.0 (19044)",
|
|
44
|
+
"Windows Server 2012 R2 Standard 6.3 (9600)",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
COMPUTER_PREFIXES = ["WS", "DC", "SRV", "LAPTOP", "DESKTOP", "PC", "DEV", "TEST", "PROD", "APP"]
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def random_date(start_year=2023, end_year=2026):
|
|
51
|
+
"""Generate random datetime"""
|
|
52
|
+
start = datetime(start_year, 1, 1)
|
|
53
|
+
end = datetime(end_year, 2, 22)
|
|
54
|
+
delta = end - start
|
|
55
|
+
random_days = random.randint(0, delta.days)
|
|
56
|
+
return (start + timedelta(days=random_days)).strftime("%m/%d/%Y %I:%M:%S %p")
|
|
57
|
+
|
|
58
|
+
def generate_users_csv():
|
|
59
|
+
"""Generate Users.csv with 10k records"""
|
|
60
|
+
print(f"Generating {NUM_USERS} user records...")
|
|
61
|
+
|
|
62
|
+
users_file = os.path.join(OUTPUT_DIR, "Users.csv")
|
|
63
|
+
|
|
64
|
+
# Read existing header
|
|
65
|
+
with open(users_file, 'r') as f:
|
|
66
|
+
reader = csv.DictReader(f)
|
|
67
|
+
fieldnames = reader.fieldnames
|
|
68
|
+
existing_users = list(reader)[:10] # Keep first 10 real users
|
|
69
|
+
|
|
70
|
+
with open(users_file, 'w', newline='') as f:
|
|
71
|
+
writer = csv.DictWriter(f, fieldnames=fieldnames)
|
|
72
|
+
writer.writeheader()
|
|
73
|
+
|
|
74
|
+
# Write existing users first
|
|
75
|
+
for user in existing_users:
|
|
76
|
+
writer.writerow(user)
|
|
77
|
+
|
|
78
|
+
# Generate new users
|
|
79
|
+
for i in range(NUM_USERS - len(existing_users)):
|
|
80
|
+
first_name = random.choice(FIRST_NAMES)
|
|
81
|
+
last_name = random.choice(LAST_NAMES)
|
|
82
|
+
username = f"{first_name.lower()}.{last_name.lower()}{random.randint(1, 999)}"
|
|
83
|
+
name = f"{first_name} {last_name}"
|
|
84
|
+
|
|
85
|
+
enabled = random.choice(["True", "False"])
|
|
86
|
+
never_logged = random.choice(["True", "False"])
|
|
87
|
+
logon_age = "" if never_logged == "True" else str(random.randint(0, 365))
|
|
88
|
+
password_age = str(random.randint(0, 900))
|
|
89
|
+
dormant = "True" if (logon_age and int(logon_age) > 90) else "False"
|
|
90
|
+
password_old = "True" if int(password_age) > 180 else "False"
|
|
91
|
+
admin_count = random.choice(["", "1"]) if random.random() < 0.05 else ""
|
|
92
|
+
|
|
93
|
+
has_spn = "True" if random.random() < 0.1 else "False"
|
|
94
|
+
|
|
95
|
+
sid_base = random.randint(1200, 99999)
|
|
96
|
+
|
|
97
|
+
row = {
|
|
98
|
+
"UserName": username,
|
|
99
|
+
"Name": name,
|
|
100
|
+
"Enabled": enabled,
|
|
101
|
+
"Must Change Password at Logon": random.choice(["True", "False"]),
|
|
102
|
+
"Cannot Change Password": "False",
|
|
103
|
+
"Password Never Expires": random.choice(["True", "False"]),
|
|
104
|
+
"Reversible Password Encryption": "False",
|
|
105
|
+
"Smartcard Logon Required": "False",
|
|
106
|
+
"Delegation Permitted": "True",
|
|
107
|
+
"Kerberos DES Only": "False",
|
|
108
|
+
"Kerberos RC4": "Default",
|
|
109
|
+
"Kerberos AES-128bit": "Default",
|
|
110
|
+
"Kerberos AES-256bit": "Default",
|
|
111
|
+
"Does Not Require Pre Auth": "False",
|
|
112
|
+
"Never Logged in": never_logged,
|
|
113
|
+
"Logon Age (days)": logon_age,
|
|
114
|
+
"Password Age (days)": password_age,
|
|
115
|
+
"Dormant (> 90 days)": dormant,
|
|
116
|
+
"Password Age (> 180 days)": password_old,
|
|
117
|
+
"Account Locked Out": "False",
|
|
118
|
+
"Password Expired": "False",
|
|
119
|
+
"Password Not Required": "False",
|
|
120
|
+
"Delegation Type": "",
|
|
121
|
+
"Delegation Protocol": "",
|
|
122
|
+
"Delegation Services": "",
|
|
123
|
+
"Logon Workstations": "",
|
|
124
|
+
"AdminCount": admin_count,
|
|
125
|
+
"Primary GroupID": "513",
|
|
126
|
+
"SID": f"S-1-5-21-4178490863-1286169181-2994033663-{sid_base}",
|
|
127
|
+
"SIDHistory": "",
|
|
128
|
+
"HasSPN": has_spn,
|
|
129
|
+
"Description": "",
|
|
130
|
+
"Title": random.choice(TITLES) if random.random() < 0.7 else "",
|
|
131
|
+
"Department": random.choice(DEPARTMENTS) if random.random() < 0.7 else "",
|
|
132
|
+
"Company": random.choice(COMPANIES) if random.random() < 0.5 else "",
|
|
133
|
+
"Manager": "",
|
|
134
|
+
"Info": "Password123!" if random.random() < 0.01 else "", # 1% have cleartext password
|
|
135
|
+
"Last Logon Date": "" if never_logged == "True" else random_date(),
|
|
136
|
+
"Password LastSet": random_date(),
|
|
137
|
+
"Account Expiration Date": "",
|
|
138
|
+
"Account Expiration (days)": "",
|
|
139
|
+
"Mobile": "",
|
|
140
|
+
"Email": f"{username}@vulnad.local" if random.random() < 0.8 else "",
|
|
141
|
+
"HomeDirectory": "",
|
|
142
|
+
"ProfilePath": "",
|
|
143
|
+
"ScriptPath": "",
|
|
144
|
+
"UserAccountControl": str(random.choice([512, 514, 66048, 66050])),
|
|
145
|
+
"First Name": first_name,
|
|
146
|
+
"Middle Name": "",
|
|
147
|
+
"Last Name": last_name,
|
|
148
|
+
"Country": "",
|
|
149
|
+
"whenCreated": random_date(2024, 2026),
|
|
150
|
+
"whenChanged": random_date(2024, 2026),
|
|
151
|
+
"DistinguishedName": f"CN={name},CN=Users,DC=vulnad,DC=local",
|
|
152
|
+
"CanonicalName": f"vulnad.local/Users/{name}"
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
writer.writerow(row)
|
|
156
|
+
|
|
157
|
+
print(f"✓ Generated {users_file}")
|
|
158
|
+
|
|
159
|
+
def generate_cert_templates_csv():
|
|
160
|
+
"""Generate CertificateTemplates.csv with 10k records"""
|
|
161
|
+
print(f"Generating {NUM_CERT_TEMPLATES} certificate template records...")
|
|
162
|
+
|
|
163
|
+
cert_file = os.path.join(OUTPUT_DIR, "CertificateTemplates.csv")
|
|
164
|
+
|
|
165
|
+
# Read existing header
|
|
166
|
+
with open(cert_file, 'r') as f:
|
|
167
|
+
reader = csv.DictReader(f)
|
|
168
|
+
fieldnames = reader.fieldnames
|
|
169
|
+
existing_certs = list(reader)[:5] # Keep first 5 real templates
|
|
170
|
+
|
|
171
|
+
with open(cert_file, 'w', newline='') as f:
|
|
172
|
+
writer = csv.DictWriter(f, fieldnames=fieldnames)
|
|
173
|
+
writer.writeheader()
|
|
174
|
+
|
|
175
|
+
# Write existing templates first
|
|
176
|
+
for cert in existing_certs:
|
|
177
|
+
writer.writerow(cert)
|
|
178
|
+
|
|
179
|
+
# Generate new templates
|
|
180
|
+
for i in range(NUM_CERT_TEMPLATES - len(existing_certs)):
|
|
181
|
+
template_base = random.choice(CERT_TEMPLATE_TYPES)
|
|
182
|
+
template_name = f"{template_base}Template{random.randint(1000, 99999)}"
|
|
183
|
+
display_name = f"{template_base} Template {i+1}"
|
|
184
|
+
|
|
185
|
+
enrollee_supplies = random.choice(["True", "False"])
|
|
186
|
+
allows_san = random.choice(["True", "False"])
|
|
187
|
+
exportable = random.choice(["True", "False"])
|
|
188
|
+
requires_approval = random.choice(["True", "False"])
|
|
189
|
+
|
|
190
|
+
# Determine ESC vulnerability based on risk factors
|
|
191
|
+
esc_vuln = "None"
|
|
192
|
+
risk_level = "None"
|
|
193
|
+
risk_factors = "None"
|
|
194
|
+
|
|
195
|
+
if random.random() < 0.15: # 15% vulnerable
|
|
196
|
+
esc_vuln = random.choice(["ESC1", "ESC2", "ESC3", "ESC4", "ESC1, ESC3"])
|
|
197
|
+
risk_level = random.choice(["HIGH", "CRITICAL", "MEDIUM"])
|
|
198
|
+
|
|
199
|
+
factors = []
|
|
200
|
+
if enrollee_supplies == "True":
|
|
201
|
+
factors.append("Enrollee Supplies Subject")
|
|
202
|
+
if allows_san == "True":
|
|
203
|
+
factors.append("SAN Allowed")
|
|
204
|
+
if exportable == "True":
|
|
205
|
+
factors.append("Exportable Key")
|
|
206
|
+
if not requires_approval or requires_approval == "False":
|
|
207
|
+
factors.append("No Manager Approval")
|
|
208
|
+
|
|
209
|
+
risk_factors = "; ".join(factors) if factors else "Configuration Risk"
|
|
210
|
+
elif random.random() < 0.3: # 30% low/medium risk
|
|
211
|
+
risk_level = random.choice(["LOW", "MEDIUM"])
|
|
212
|
+
risk_factors = random.choice(["Exportable Key", "SAN Allowed", "Auto-Enrollment Enabled"])
|
|
213
|
+
|
|
214
|
+
row = {
|
|
215
|
+
"Template Name": template_name,
|
|
216
|
+
"Display Name": display_name,
|
|
217
|
+
"Distinguished Name": f"CN={template_name},CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=vulnad,DC=local",
|
|
218
|
+
"Owner": "Enterprise Admins",
|
|
219
|
+
"Schema Version": str(random.choice([1, 2, 3, 4])),
|
|
220
|
+
"Created": random_date(2023, 2024),
|
|
221
|
+
"Modified": random_date(2024, 2026),
|
|
222
|
+
"Extended Key Usage": ", ".join(random.sample(EKU_OPTIONS, random.randint(1, 3))),
|
|
223
|
+
"Enrollee Supplies Subject": enrollee_supplies,
|
|
224
|
+
"Allows SAN": allows_san,
|
|
225
|
+
"Client Authentication": random.choice(["True", "False"]),
|
|
226
|
+
"Any Purpose EKU": "False",
|
|
227
|
+
"Enrollment Agent": "False",
|
|
228
|
+
"Exportable Key": exportable,
|
|
229
|
+
"Auto-Enrollment": random.choice(["True", "False"]),
|
|
230
|
+
"Requires Manager Approval": requires_approval,
|
|
231
|
+
"Authorized Signatures Required": "0",
|
|
232
|
+
"Enrollment Flag": hex(random.choice([0x20, 0x29, 0x9])),
|
|
233
|
+
"Certificate Name Flag": hex(random.choice([-0x5a000000, -0x7e000000])),
|
|
234
|
+
"Private Key Flag": hex(random.choice([0x0, 0x10])),
|
|
235
|
+
"Enrollment Rights": "Domain Admins; Domain Users; Enterprise Admins" if random.random() < 0.7 else "Domain Admins; Enterprise Admins",
|
|
236
|
+
"Auto-Enrollment Rights": "None",
|
|
237
|
+
"Write Permissions": "Domain Admins; Enterprise Admins",
|
|
238
|
+
"ESC Vulnerabilities": esc_vuln,
|
|
239
|
+
"Risk Level": risk_level,
|
|
240
|
+
"Risk Factors": risk_factors
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
writer.writerow(row)
|
|
244
|
+
|
|
245
|
+
print(f"✓ Generated {cert_file}")
|
|
246
|
+
|
|
247
|
+
def generate_computers_csv():
|
|
248
|
+
"""Generate Computers.csv with 10k records"""
|
|
249
|
+
print(f"Generating {NUM_COMPUTERS} computer records...")
|
|
250
|
+
|
|
251
|
+
comp_file = os.path.join(OUTPUT_DIR, "Computers.csv")
|
|
252
|
+
|
|
253
|
+
# Read existing header
|
|
254
|
+
with open(comp_file, 'r') as f:
|
|
255
|
+
reader = csv.DictReader(f)
|
|
256
|
+
fieldnames = reader.fieldnames
|
|
257
|
+
existing_computers = list(reader)[:5] # Keep first 5 real computers
|
|
258
|
+
|
|
259
|
+
with open(comp_file, 'w', newline='') as f:
|
|
260
|
+
writer = csv.DictWriter(f, fieldnames=fieldnames)
|
|
261
|
+
writer.writeheader()
|
|
262
|
+
|
|
263
|
+
# Write existing computers first
|
|
264
|
+
for comp in existing_computers:
|
|
265
|
+
writer.writerow(comp)
|
|
266
|
+
|
|
267
|
+
# Generate new computers
|
|
268
|
+
for i in range(NUM_COMPUTERS - len(existing_computers)):
|
|
269
|
+
prefix = random.choice(COMPUTER_PREFIXES)
|
|
270
|
+
comp_name = f"{prefix}{random.randint(1000, 99999)}"
|
|
271
|
+
username = f"{comp_name}$"
|
|
272
|
+
dns_hostname = f"{comp_name.lower()}.vulnad.local"
|
|
273
|
+
|
|
274
|
+
enabled = random.choice(["True", "False"])
|
|
275
|
+
has_ip = random.random() < 0.8
|
|
276
|
+
ipv4 = f"192.168.{random.randint(1, 254)}.{random.randint(1, 254)}" if has_ip else ""
|
|
277
|
+
|
|
278
|
+
logon_age = str(random.randint(0, 365))
|
|
279
|
+
password_age = str(random.randint(0, 365))
|
|
280
|
+
dormant = "True" if int(logon_age) > 90 else "False"
|
|
281
|
+
password_old = "True" if int(password_age) > 180 else "False"
|
|
282
|
+
|
|
283
|
+
os_version = random.choice(OS_VERSIONS)
|
|
284
|
+
|
|
285
|
+
# Unconstrained delegation (risky)
|
|
286
|
+
delegation_type = ""
|
|
287
|
+
delegation_protocol = ""
|
|
288
|
+
delegation_services = ""
|
|
289
|
+
if random.random() < 0.05: # 5% unconstrained
|
|
290
|
+
delegation_type = "Unconstrained"
|
|
291
|
+
delegation_protocol = "Kerberos"
|
|
292
|
+
delegation_services = "Any"
|
|
293
|
+
elif random.random() < 0.1: # 10% constrained
|
|
294
|
+
delegation_type = "Constrained"
|
|
295
|
+
delegation_protocol = "Kerberos"
|
|
296
|
+
delegation_services = "http/someserver"
|
|
297
|
+
|
|
298
|
+
sid_base = random.randint(1200, 99999)
|
|
299
|
+
primary_group = "516" if "DC" in comp_name or "SERVER" in comp_name.upper() else "515"
|
|
300
|
+
uac = "532480" if delegation_type == "Unconstrained" else "4096"
|
|
301
|
+
|
|
302
|
+
row = {
|
|
303
|
+
"UserName": username,
|
|
304
|
+
"Name": comp_name,
|
|
305
|
+
"DNSHostName": dns_hostname,
|
|
306
|
+
"Enabled": enabled,
|
|
307
|
+
"IPv4Address": ipv4,
|
|
308
|
+
"IPv6Address": "",
|
|
309
|
+
"Operating System": os_version,
|
|
310
|
+
"Logon Age (days)": logon_age,
|
|
311
|
+
"Password Age (days)": password_age,
|
|
312
|
+
"Dormant (> 90 days)": dormant,
|
|
313
|
+
"Password Age (> 180 days)": password_old,
|
|
314
|
+
"Delegation Type": delegation_type,
|
|
315
|
+
"Delegation Protocol": delegation_protocol,
|
|
316
|
+
"Delegation Services": delegation_services,
|
|
317
|
+
"Primary Group ID": primary_group,
|
|
318
|
+
"SID": f"S-1-5-21-4178490863-1286169181-2994033663-{sid_base}",
|
|
319
|
+
"SIDHistory": "",
|
|
320
|
+
"Description": "",
|
|
321
|
+
"ms-ds-CreatorSid": "",
|
|
322
|
+
"Last Logon Date": random_date(),
|
|
323
|
+
"Password LastSet": random_date(),
|
|
324
|
+
"UserAccountControl": uac,
|
|
325
|
+
"whenCreated": random_date(2024, 2026),
|
|
326
|
+
"whenChanged": random_date(2024, 2026),
|
|
327
|
+
"Distinguished Name": f"CN={comp_name},CN=Computers,DC=vulnad,DC=local"
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
writer.writerow(row)
|
|
331
|
+
|
|
332
|
+
print(f"✓ Generated {comp_file}")
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
if __name__ == "__main__":
|
|
336
|
+
print("=" * 60)
|
|
337
|
+
print("Generating large test datasets for dashboard testing")
|
|
338
|
+
print("=" * 60)
|
|
339
|
+
|
|
340
|
+
generate_users_csv()
|
|
341
|
+
generate_cert_templates_csv()
|
|
342
|
+
generate_computers_csv()
|
|
343
|
+
|
|
344
|
+
print("\n✓ All test data generated successfully!")
|
|
345
|
+
print(f"\nFiles created in: {OUTPUT_DIR}")
|
|
346
|
+
print(f" - Users.csv: {NUM_USERS} records")
|
|
347
|
+
print(f" - CertificateTemplates.csv: {NUM_CERT_TEMPLATES} records")
|
|
348
|
+
print(f" - Computers.csv: {NUM_COMPUTERS} records")
|
|
@@ -77,7 +77,7 @@ except ImportError:
|
|
|
77
77
|
DASHBOARD_AVAILABLE = False
|
|
78
78
|
|
|
79
79
|
# Constants
|
|
80
|
-
VERSION = "v0.
|
|
80
|
+
VERSION = "v0.5.0" # Automatically updated by CI/CD pipeline during release
|
|
81
81
|
BANNER = f"""
|
|
82
82
|
╔═══════════════════════════════════════════════════════════════════
|
|
83
83
|
║ PyADRecon-ADWS {VERSION} - Python AD Reconnaissance Tool (ADWS)
|
|
@@ -7131,6 +7131,14 @@ Examples:
|
|
|
7131
7131
|
|
|
7132
7132
|
args = parser.parse_args()
|
|
7133
7133
|
|
|
7134
|
+
# Configure logging level early so it's available for all modes
|
|
7135
|
+
if args.verbose:
|
|
7136
|
+
logging.basicConfig(level=logging.DEBUG, format='[%(levelname)s] %(message)s', force=True)
|
|
7137
|
+
logger.setLevel(logging.DEBUG)
|
|
7138
|
+
else:
|
|
7139
|
+
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(message)s', force=True)
|
|
7140
|
+
logger.setLevel(logging.INFO)
|
|
7141
|
+
|
|
7134
7142
|
# Standalone Excel generation mode
|
|
7135
7143
|
if args.generate_excel_from:
|
|
7136
7144
|
print(BANNER)
|
|
@@ -7148,11 +7156,12 @@ Examples:
|
|
|
7148
7156
|
# Standalone Dashboard generation mode
|
|
7149
7157
|
if args.generate_dashboard_from:
|
|
7150
7158
|
print(BANNER)
|
|
7159
|
+
logger.info("Running in standalone dashboard generation mode")
|
|
7160
|
+
|
|
7151
7161
|
if not DASHBOARD_AVAILABLE:
|
|
7152
7162
|
logger.error("[!] Dashboard generator not available (dashboard_generator.py not found)")
|
|
7153
7163
|
sys.exit(1)
|
|
7154
7164
|
|
|
7155
|
-
logger.info(f"[*] Generating HTML dashboard from: {args.generate_dashboard_from}")
|
|
7156
7165
|
result = generate_dashboard_from_csv(args.generate_dashboard_from, args.output)
|
|
7157
7166
|
if result:
|
|
7158
7167
|
logger.info(f"[+] Dashboard generated: {result}")
|
|
@@ -7163,14 +7172,6 @@ Examples:
|
|
|
7163
7172
|
# Print banner for normal mode
|
|
7164
7173
|
print(BANNER)
|
|
7165
7174
|
|
|
7166
|
-
# Configure logging level
|
|
7167
|
-
if args.verbose:
|
|
7168
|
-
logging.basicConfig(level=logging.DEBUG, format='[%(levelname)s] %(message)s', force=True)
|
|
7169
|
-
logger.setLevel(logging.DEBUG)
|
|
7170
|
-
else:
|
|
7171
|
-
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(message)s', force=True)
|
|
7172
|
-
logger.setLevel(logging.INFO)
|
|
7173
|
-
|
|
7174
7175
|
# Validate required arguments for normal mode
|
|
7175
7176
|
if not args.domain or not args.username or not args.domain_controller:
|
|
7176
7177
|
parser.error("the following arguments are required: -d/--domain, -u/--username, -dc/--domain-controller")
|
|
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
|