PyADRecon 0.13.4__tar.gz → 0.13.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.
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/CHANGELOG.md +11 -11
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PKG-INFO +1 -1
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PyADRecon.egg-info/PKG-INFO +1 -1
- pyadrecon-0.13.6/PyADRecon.egg-info/scm_version.json +8 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/dashboard_generator.py +10 -2
- pyadrecon-0.13.6/package.json +3 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/pyadrecon.py +130 -86
- pyadrecon-0.13.4/PyADRecon.egg-info/scm_version.json +0 -8
- pyadrecon-0.13.4/package.json +0 -3
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.dockerignore +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.github/FUNDING.yml +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.github/pyadrecon.png +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.github/workflows/conventional-commits.yml +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.github/workflows/pypi.yml +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/.gitignore +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/Dockerfile +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/LICENSE +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PyADRecon.egg-info/SOURCES.txt +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PyADRecon.egg-info/dependency_links.txt +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PyADRecon.egg-info/entry_points.txt +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PyADRecon.egg-info/requires.txt +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PyADRecon.egg-info/scm_file_list.json +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/PyADRecon.egg-info/top_level.txt +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/README.md +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/pyproject.toml +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/requirements.txt +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/setup.cfg +0 -0
- {pyadrecon-0.13.4 → pyadrecon-0.13.6}/windows/README.md +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
## [0.13.
|
|
1
|
+
## [0.13.6](https://github.com/l4rm4nd/PyADRecon/compare/v0.13.5...v0.13.6) (2026-07-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* improve parsing ([ae9c618](https://github.com/l4rm4nd/PyADRecon/commit/ae9c618884cca16c8b03254c49c42aa6f1866c47))
|
|
7
7
|
|
|
8
|
-
## [0.13.
|
|
8
|
+
## [0.13.5](https://github.com/l4rm4nd/PyADRecon/compare/v0.13.4...v0.13.5) (2026-07-02)
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### Bug Fixes
|
|
12
12
|
|
|
13
|
-
*
|
|
13
|
+
* adjust dashboard generator ([8fd5a8b](https://github.com/l4rm4nd/PyADRecon/commit/8fd5a8bbc92c995cba1c49db84315974478b19c3)), closes [#6](https://github.com/l4rm4nd/PyADRecon/issues/6) [#7](https://github.com/l4rm4nd/PyADRecon/issues/7)
|
|
14
14
|
|
|
15
|
-
## [0.13.
|
|
15
|
+
## [0.13.4](https://github.com/l4rm4nd/PyADRecon/compare/v0.13.3...v0.13.4) (2026-06-30)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
### Bug Fixes
|
|
19
19
|
|
|
20
|
-
*
|
|
20
|
+
* bump impacket ([023b941](https://github.com/l4rm4nd/PyADRecon/commit/023b9415c434a224638fa451e8404c7833148803))
|
|
21
21
|
|
|
22
|
-
## [0.13.
|
|
22
|
+
## [0.13.3](https://github.com/l4rm4nd/PyADRecon/compare/v0.13.2...v0.13.3) (2026-02-22)
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
### Bug Fixes
|
|
26
26
|
|
|
27
|
-
*
|
|
27
|
+
* add EOL systemd detection ([81bdb7f](https://github.com/l4rm4nd/PyADRecon/commit/81bdb7f516a3023af08b7cab2be3b6242d68c174))
|
|
28
28
|
|
|
29
|
-
## [0.13.
|
|
29
|
+
## [0.13.2](https://github.com/l4rm4nd/PyADRecon/compare/v0.13.1...v0.13.2) (2026-02-22)
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
###
|
|
32
|
+
### Bug Fixes
|
|
33
33
|
|
|
34
|
-
*
|
|
34
|
+
* rework Foreign Security Principals in Privileged Groups ([50fe76e](https://github.com/l4rm4nd/PyADRecon/commit/50fe76e8674a79a84678947fde3d488a73e2f383))
|
|
35
35
|
|
|
@@ -53,6 +53,14 @@ class DashboardGenerator:
|
|
|
53
53
|
# Get generation timestamp
|
|
54
54
|
generation_timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
|
55
55
|
|
|
56
|
+
# Determine xlsx report filename relative to the dashboard output file
|
|
57
|
+
dashboard_dir = Path(self.output_file).parent
|
|
58
|
+
xlsx_candidates = sorted(dashboard_dir.glob("*-Report.xlsx"))
|
|
59
|
+
if xlsx_candidates:
|
|
60
|
+
xlsx_filename = xlsx_candidates[0].name
|
|
61
|
+
else:
|
|
62
|
+
xlsx_filename = "ADRecon-Report.xlsx"
|
|
63
|
+
|
|
56
64
|
html_content = f"""<!DOCTYPE html>
|
|
57
65
|
<html lang="en">
|
|
58
66
|
<head>
|
|
@@ -356,7 +364,7 @@ class DashboardGenerator:
|
|
|
356
364
|
title="View on GitHub">
|
|
357
365
|
<i class="fab fa-github"></i><span class="hidden sm:inline ml-1">GitHub</span>
|
|
358
366
|
</a>
|
|
359
|
-
<a
|
|
367
|
+
<a href="{xlsx_filename}" download
|
|
360
368
|
class="px-3 py-2 sm:px-4 rounded-lg bg-green-600 text-white hover:bg-green-700 transition text-sm sm:text-base whitespace-nowrap">
|
|
361
369
|
<i class="fas fa-file-excel"></i> <span class="hidden sm:inline">Download </span>XLSX
|
|
362
370
|
</a>
|
|
@@ -3024,7 +3032,7 @@ class DashboardGenerator:
|
|
|
3024
3032
|
}},
|
|
3025
3033
|
|
|
3026
3034
|
usersWithPasswordsInInfo() {{
|
|
3027
|
-
const pwdPatterns =
|
|
3035
|
+
const pwdPatterns = /\b(pw|password|passwort|kennwort|initial|pwd|pass|secret|cred|credential)\b/i;
|
|
3028
3036
|
let filtered = this.users.filter(u =>
|
|
3029
3037
|
(u.Description && pwdPatterns.test(u.Description)) ||
|
|
3030
3038
|
(u.Info && pwdPatterns.test(u.Info))
|
|
@@ -104,7 +104,7 @@ if not KERBEROS_AVAILABLE:
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
# Constants
|
|
107
|
-
VERSION = "v0.13.
|
|
107
|
+
VERSION = "v0.13.6" # Automatically updated by CI/CD pipeline during release
|
|
108
108
|
BANNER = f"""
|
|
109
109
|
╔═════════════════════════════════════════════════════════
|
|
110
110
|
║ PyADRecon {VERSION} - Python AD Reconnaissance Tool
|
|
@@ -572,7 +572,7 @@ def calculate_user_stats(users_data: List[Dict], password_age_days: int = 180, d
|
|
|
572
572
|
elif cat == 'Kerberos DES Only':
|
|
573
573
|
is_match = user.get('Kerberos DES Only', False) is True
|
|
574
574
|
elif cat == 'Kerberos RC4':
|
|
575
|
-
is_match =
|
|
575
|
+
is_match = user.get('Kerberos RC4', '') == 'Supported'
|
|
576
576
|
elif cat == 'Does Not Require Pre Auth':
|
|
577
577
|
is_match = user.get('Does Not Require Pre Auth', False) is True
|
|
578
578
|
elif cat.startswith('Password Age (>'):
|
|
@@ -2229,7 +2229,60 @@ class PyADRecon:
|
|
|
2229
2229
|
results = []
|
|
2230
2230
|
|
|
2231
2231
|
try:
|
|
2232
|
-
#
|
|
2232
|
+
# ----------------------------------------------------------------
|
|
2233
|
+
# Build an in-memory DN → {username, sid, type} cache so that we
|
|
2234
|
+
# avoid issuing one LDAP round-trip per member.
|
|
2235
|
+
#
|
|
2236
|
+
# Sources:
|
|
2237
|
+
# 1. self.results['Users'] – collected just before GroupMembers
|
|
2238
|
+
# 2. self.results['Groups'] – collected just before GroupMembers
|
|
2239
|
+
# 3. one bulk (objectCategory=computer) query done here
|
|
2240
|
+
# ----------------------------------------------------------------
|
|
2241
|
+
dn_cache = {} # normalised-lower-DN -> {'username', 'sid', 'type'}
|
|
2242
|
+
|
|
2243
|
+
for user in self.results.get('Users', []):
|
|
2244
|
+
dn = user.get('DistinguishedName', '')
|
|
2245
|
+
if dn:
|
|
2246
|
+
dn_cache[dn.lower()] = {
|
|
2247
|
+
'username': user.get('UserName', ''),
|
|
2248
|
+
'sid': user.get('SID', ''),
|
|
2249
|
+
'type': 'user',
|
|
2250
|
+
}
|
|
2251
|
+
|
|
2252
|
+
for group in self.results.get('Groups', []):
|
|
2253
|
+
dn = group.get('DistinguishedName', '')
|
|
2254
|
+
if dn:
|
|
2255
|
+
dn_cache[dn.lower()] = {
|
|
2256
|
+
'username': group.get('Name', ''),
|
|
2257
|
+
'sid': group.get('SID', ''),
|
|
2258
|
+
'type': 'group',
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
# Computers are collected after GroupMembers in the pipeline,
|
|
2262
|
+
# so fetch them now in a single bulk LDAP call.
|
|
2263
|
+
try:
|
|
2264
|
+
computer_entries = self.search(
|
|
2265
|
+
self.base_dn,
|
|
2266
|
+
"(objectCategory=computer)",
|
|
2267
|
+
['sAMAccountName', 'objectSid', 'distinguishedName']
|
|
2268
|
+
)
|
|
2269
|
+
for comp_entry in computer_entries:
|
|
2270
|
+
dn = get_attr(comp_entry, 'distinguishedName', '')
|
|
2271
|
+
if dn:
|
|
2272
|
+
dn_cache[dn.lower()] = {
|
|
2273
|
+
'username': get_attr(comp_entry, 'sAMAccountName', ''),
|
|
2274
|
+
'sid': sid_to_string(get_attr(comp_entry, 'objectSid')),
|
|
2275
|
+
'type': 'computer',
|
|
2276
|
+
}
|
|
2277
|
+
logger.debug(f"Group member DN cache built: {len(dn_cache)} entries")
|
|
2278
|
+
except Exception as e:
|
|
2279
|
+
logger.debug(f"Could not pre-fetch computers for group member cache: {e}")
|
|
2280
|
+
|
|
2281
|
+
base_dc_parts = [p.lower() for p in re.findall(r'DC=([^,]+)', self.base_dn, re.IGNORECASE)]
|
|
2282
|
+
|
|
2283
|
+
# ----------------------------------------------------------------
|
|
2284
|
+
# Main enumeration: one LDAP call for all groups with members
|
|
2285
|
+
# ----------------------------------------------------------------
|
|
2233
2286
|
entries = self.search(
|
|
2234
2287
|
self.base_dn,
|
|
2235
2288
|
"(&(objectCategory=group)(member=*))",
|
|
@@ -2238,91 +2291,27 @@ class PyADRecon:
|
|
|
2238
2291
|
|
|
2239
2292
|
for entry in entries:
|
|
2240
2293
|
group_name = get_attr(entry, 'name', '')
|
|
2241
|
-
group_sam = get_attr(entry, 'sAMAccountName', '')
|
|
2242
2294
|
members = get_attr_list(entry, 'member')
|
|
2243
2295
|
|
|
2244
2296
|
for member_dn in members:
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2297
|
+
member_dn_str = str(member_dn)
|
|
2298
|
+
|
|
2299
|
+
# Handle LDAP DN escaping (e.g. "Wagner\, Klaus")
|
|
2300
|
+
match = re.search(r'CN=((?:[^,\\]|\\.)+)', member_dn_str)
|
|
2301
|
+
member_name = re.sub(r'\\(.)', r'\1', match.group(1)) if match else member_dn_str
|
|
2302
|
+
|
|
2250
2303
|
member_username = ""
|
|
2251
2304
|
member_sid = ""
|
|
2252
2305
|
account_type = ""
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
)
|
|
2263
|
-
|
|
2264
|
-
if member_entries:
|
|
2265
|
-
member_entry = member_entries[0]
|
|
2266
|
-
member_username = get_attr(member_entry, 'sAMAccountName', '')
|
|
2267
|
-
member_sid_raw = get_attr(member_entry, 'objectSid')
|
|
2268
|
-
if member_sid_raw:
|
|
2269
|
-
member_sid = sid_to_string(member_sid_raw)
|
|
2270
|
-
|
|
2271
|
-
# Determine account type from objectClass
|
|
2272
|
-
object_classes = get_attr_list(member_entry, 'objectClass')
|
|
2273
|
-
object_classes_str = [str(oc).lower() for oc in object_classes]
|
|
2274
|
-
|
|
2275
|
-
if 'user' in object_classes_str and 'computer' not in object_classes_str:
|
|
2276
|
-
account_type = "user"
|
|
2277
|
-
elif 'computer' in object_classes_str:
|
|
2278
|
-
account_type = "computer"
|
|
2279
|
-
elif 'group' in object_classes_str:
|
|
2280
|
-
account_type = "group"
|
|
2281
|
-
else:
|
|
2282
|
-
account_type = "unknown"
|
|
2283
|
-
else:
|
|
2284
|
-
# Empty results - likely a referral to another domain
|
|
2285
|
-
member_dn_str = str(member_dn)
|
|
2286
|
-
|
|
2287
|
-
# Check if this is a cross-domain member (different DC components)
|
|
2288
|
-
# Extract DC components from member DN
|
|
2289
|
-
member_dc_parts = re.findall(r'DC=([^,]+)', member_dn_str, re.IGNORECASE)
|
|
2290
|
-
base_dc_parts = re.findall(r'DC=([^,]+)', self.base_dn, re.IGNORECASE)
|
|
2291
|
-
|
|
2292
|
-
# If member has different DC components, it's from another domain
|
|
2293
|
-
if member_dc_parts and member_dc_parts != base_dc_parts:
|
|
2294
|
-
is_foreign_principal = True
|
|
2295
|
-
member_domain = '.'.join(member_dc_parts)
|
|
2296
|
-
# Mark as foreign principal by including domain info in SID field
|
|
2297
|
-
member_sid = f"ForeignSecurityPrincipal:{member_domain}"
|
|
2298
|
-
logger.debug(f"Detected foreign principal: {member_name} from domain {member_domain}")
|
|
2299
|
-
|
|
2300
|
-
# Guess account type from DN
|
|
2301
|
-
if ',CN=Users,' in member_dn_str or ',OU=Users,' in member_dn_str:
|
|
2302
|
-
account_type = "user"
|
|
2303
|
-
elif ',CN=Computers,' in member_dn_str or ',OU=Computers,' in member_dn_str:
|
|
2304
|
-
account_type = "computer"
|
|
2305
|
-
elif ',CN=Builtin,' in member_dn_str or 'CN=Groups' in member_dn_str:
|
|
2306
|
-
account_type = "group"
|
|
2307
|
-
else:
|
|
2308
|
-
account_type = "foreignSecurityPrincipal" if is_foreign_principal else "unknown"
|
|
2309
|
-
|
|
2310
|
-
except Exception as e:
|
|
2311
|
-
logger.debug(f"Error querying member {member_dn}: {e}")
|
|
2312
|
-
# If lookup fails, try to detect cross-domain member from DN
|
|
2313
|
-
member_dn_str = str(member_dn)
|
|
2314
|
-
|
|
2315
|
-
# Check if this is a cross-domain member
|
|
2316
|
-
member_dc_parts = re.findall(r'DC=([^,]+)', member_dn_str, re.IGNORECASE)
|
|
2317
|
-
base_dc_parts = re.findall(r'DC=([^,]+)', self.base_dn, re.IGNORECASE)
|
|
2318
|
-
|
|
2319
|
-
if member_dc_parts and member_dc_parts != base_dc_parts:
|
|
2320
|
-
is_foreign_principal = True
|
|
2321
|
-
member_domain = '.'.join(member_dc_parts)
|
|
2322
|
-
member_sid = f"ForeignSecurityPrincipal:{member_domain}"
|
|
2323
|
-
logger.debug(f"Detected foreign principal (exception path): {member_name} from domain {member_domain}")
|
|
2324
|
-
|
|
2325
|
-
# Guess account type from DN
|
|
2306
|
+
|
|
2307
|
+
# ----------------------------------------------------------
|
|
2308
|
+
# Cross-domain check: skip LDAP for members from other domains.
|
|
2309
|
+
# ----------------------------------------------------------
|
|
2310
|
+
member_dc_parts = [p.lower() for p in re.findall(r'DC=([^,]+)', member_dn_str, re.IGNORECASE)]
|
|
2311
|
+
|
|
2312
|
+
if member_dc_parts and member_dc_parts != base_dc_parts:
|
|
2313
|
+
member_domain = '.'.join(member_dc_parts)
|
|
2314
|
+
member_sid = f"ForeignSecurityPrincipal:{member_domain}"
|
|
2326
2315
|
if ',CN=Users,' in member_dn_str or ',OU=Users,' in member_dn_str:
|
|
2327
2316
|
account_type = "user"
|
|
2328
2317
|
elif ',CN=Computers,' in member_dn_str or ',OU=Computers,' in member_dn_str:
|
|
@@ -2330,7 +2319,61 @@ class PyADRecon:
|
|
|
2330
2319
|
elif ',CN=Builtin,' in member_dn_str or 'CN=Groups' in member_dn_str:
|
|
2331
2320
|
account_type = "group"
|
|
2332
2321
|
else:
|
|
2333
|
-
account_type = "foreignSecurityPrincipal"
|
|
2322
|
+
account_type = "foreignSecurityPrincipal"
|
|
2323
|
+
logger.debug(f"Skipping cross-domain LDAP lookup for {member_name} from {member_domain}")
|
|
2324
|
+
|
|
2325
|
+
else:
|
|
2326
|
+
# ----------------------------------------------------------
|
|
2327
|
+
# Same-domain: O(1) cache hit, no LDAP call needed.
|
|
2328
|
+
# ----------------------------------------------------------
|
|
2329
|
+
cached = dn_cache.get(member_dn_str.lower())
|
|
2330
|
+
if cached:
|
|
2331
|
+
member_username = cached['username']
|
|
2332
|
+
member_sid = cached['sid']
|
|
2333
|
+
account_type = cached['type']
|
|
2334
|
+
else:
|
|
2335
|
+
# Cache miss (deleted/phantom object, ForeignSecurityPrincipal
|
|
2336
|
+
# stub in local domain, or MSA not in the three bulk sets).
|
|
2337
|
+
# Fall back to a single LDAP BASE lookup.
|
|
2338
|
+
try:
|
|
2339
|
+
member_entries = self.search(
|
|
2340
|
+
member_dn_str,
|
|
2341
|
+
"(objectClass=*)",
|
|
2342
|
+
['sAMAccountName', 'objectSid', 'objectClass'],
|
|
2343
|
+
search_scope=BASE
|
|
2344
|
+
)
|
|
2345
|
+
if member_entries:
|
|
2346
|
+
me = member_entries[0]
|
|
2347
|
+
member_username = get_attr(me, 'sAMAccountName', '')
|
|
2348
|
+
sid_raw = get_attr(me, 'objectSid')
|
|
2349
|
+
if sid_raw:
|
|
2350
|
+
member_sid = sid_to_string(sid_raw)
|
|
2351
|
+
ocs = [str(o).lower() for o in get_attr_list(me, 'objectClass')]
|
|
2352
|
+
if 'computer' in ocs:
|
|
2353
|
+
account_type = "computer"
|
|
2354
|
+
elif 'user' in ocs:
|
|
2355
|
+
account_type = "user"
|
|
2356
|
+
elif 'group' in ocs:
|
|
2357
|
+
account_type = "group"
|
|
2358
|
+
elif 'msds-managedserviceaccount' in ocs or 'msds-groupmanagedserviceaccount' in ocs:
|
|
2359
|
+
account_type = "msa"
|
|
2360
|
+
else:
|
|
2361
|
+
account_type = "unknown"
|
|
2362
|
+
except Exception as e:
|
|
2363
|
+
logger.debug(f"Fallback lookup failed for {member_dn_str}: {e}")
|
|
2364
|
+
|
|
2365
|
+
# If still empty, guess from DN structure
|
|
2366
|
+
if not account_type:
|
|
2367
|
+
if ',CN=ForeignSecurityPrincipals,' in member_dn_str:
|
|
2368
|
+
account_type = "foreignSecurityPrincipal"
|
|
2369
|
+
elif ',CN=Users,' in member_dn_str or ',OU=Users,' in member_dn_str:
|
|
2370
|
+
account_type = "user"
|
|
2371
|
+
elif ',CN=Computers,' in member_dn_str or ',OU=Computers,' in member_dn_str:
|
|
2372
|
+
account_type = "computer"
|
|
2373
|
+
elif ',CN=Builtin,' in member_dn_str or 'CN=Groups' in member_dn_str:
|
|
2374
|
+
account_type = "group"
|
|
2375
|
+
else:
|
|
2376
|
+
account_type = "unknown"
|
|
2334
2377
|
|
|
2335
2378
|
results.append({
|
|
2336
2379
|
"Group Name": group_name,
|
|
@@ -6333,9 +6376,10 @@ class PyADRecon:
|
|
|
6333
6376
|
disabled_count = counts['disabled_count']
|
|
6334
6377
|
cat_total = counts['total_count']
|
|
6335
6378
|
|
|
6336
|
-
# Calculate percentages
|
|
6337
|
-
|
|
6338
|
-
|
|
6379
|
+
# Calculate percentages relative to the category total (how many of
|
|
6380
|
+
# the flagged users are enabled vs disabled) and relative to all users
|
|
6381
|
+
enabled_pct = f"{(enabled_count / cat_total * 100):.1f}%" if cat_total > 0 else "0.0%"
|
|
6382
|
+
disabled_pct = f"{(disabled_count / cat_total * 100):.1f}%" if cat_total > 0 else "0.0%"
|
|
6339
6383
|
total_pct = f"{(cat_total / total_count * 100):.1f}%" if total_count > 0 else "0.0%"
|
|
6340
6384
|
|
|
6341
6385
|
user_stats_ws.append([
|
pyadrecon-0.13.4/package.json
DELETED
|
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
|