PyADRecon-ADWS 0.5.6__tar.gz → 0.5.7__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 (49) hide show
  1. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.gitignore +2 -0
  2. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/CHANGELOG.md +7 -7
  3. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PKG-INFO +1 -1
  4. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PyADRecon_ADWS.egg-info/PKG-INFO +1 -1
  5. pyadrecon_adws-0.5.7/PyADRecon_ADWS.egg-info/scm_version.json +8 -0
  6. pyadrecon_adws-0.5.7/package.json +3 -0
  7. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/pyadrecon_adws.py +250 -3
  8. pyadrecon_adws-0.5.6/PyADRecon_ADWS.egg-info/scm_version.json +0 -8
  9. pyadrecon_adws-0.5.6/package.json +0 -3
  10. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.dockerignore +0 -0
  11. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.github/FUNDING.yml +0 -0
  12. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  13. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  14. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.github/pyadrecon.png +0 -0
  15. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.github/workflows/conventional-commits.yml +0 -0
  16. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/.github/workflows/pypi.yml +0 -0
  17. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/Dockerfile +0 -0
  18. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/LICENSE +0 -0
  19. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PyADRecon_ADWS.egg-info/SOURCES.txt +0 -0
  20. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PyADRecon_ADWS.egg-info/dependency_links.txt +0 -0
  21. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PyADRecon_ADWS.egg-info/entry_points.txt +0 -0
  22. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PyADRecon_ADWS.egg-info/requires.txt +0 -0
  23. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PyADRecon_ADWS.egg-info/scm_file_list.json +0 -0
  24. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/PyADRecon_ADWS.egg-info/top_level.txt +0 -0
  25. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/README.md +0 -0
  26. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/dashboard_generator.py +0 -0
  27. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/generate_test_data.py +0 -0
  28. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/__init__.py +0 -0
  29. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/__init__.py +0 -0
  30. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/adws.py +0 -0
  31. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/__init__.py +0 -0
  32. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/encoder.py +0 -0
  33. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/__init__.py +0 -0
  34. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/attributes.py +0 -0
  35. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/constants.py +0 -0
  36. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/datatypes.py +0 -0
  37. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/elements.py +0 -0
  38. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/record.py +0 -0
  39. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/text.py +0 -0
  40. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/records/utils.py +0 -0
  41. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/encoder/xml_parser.py +0 -0
  42. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/ms_nmf.py +0 -0
  43. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/ms_nns.py +0 -0
  44. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws/soap_templates.py +0 -0
  45. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/helpers/adws_wrapper.py +0 -0
  46. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/pyproject.toml +0 -0
  47. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/requirements.txt +0 -0
  48. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/setup.cfg +0 -0
  49. {pyadrecon_adws-0.5.6 → pyadrecon_adws-0.5.7}/windows/README.md +0 -0
@@ -1,6 +1,8 @@
1
1
  # PyADRecon output directories
2
2
  PyADRecon-ADWS-Report-*/
3
+ PyADRecon-Report-*/
3
4
  results/
5
+ pyadrecon-ldap.py
4
6
 
5
7
  # Python
6
8
  __pycache__/
@@ -1,3 +1,10 @@
1
+ ## [0.5.7](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.5.6...v0.5.7) (2026-07-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add eol for computers and stats ([86c3b41](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/86c3b414b30a257e1ac35ec00dc979fca8d98fe2))
7
+
1
8
  ## [0.5.6](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.5.5...v0.5.6) (2026-07-09)
2
9
 
3
10
 
@@ -26,10 +33,3 @@
26
33
 
27
34
  * add EOL systemd detection ([254e0f1](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/254e0f18851a7c015cb9818c1e18301b65e6ca62))
28
35
 
29
- ## [0.5.2](https://github.com/l4rm4nd/PyADRecon-ADWS/compare/v0.5.1...v0.5.2) (2026-02-22)
30
-
31
-
32
- ### Bug Fixes
33
-
34
- * rework Foreign Security Principals in Privileged Groups ([171019f](https://github.com/l4rm4nd/PyADRecon-ADWS/commit/171019f50966e60662114ddc3201c07a54ead1c8))
35
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyADRecon-ADWS
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
5
5
  Author: LRVT
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyADRecon-ADWS
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: Python Active Directory Reconnaissance Tool (ADRecon port) using ADWS with NTLM support.
5
5
  Author: LRVT
6
6
  License-Expression: MIT
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.5.7",
3
+ "distance": 0,
4
+ "node": "g60cba536227e2924a99768219213639c9df45929",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-07-10"
8
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "version": "0.5.7"
3
+ }
@@ -77,7 +77,7 @@ except ImportError:
77
77
  DASHBOARD_AVAILABLE = False
78
78
 
79
79
  # Constants
80
- VERSION = "v0.5.6" # Automatically updated by CI/CD pipeline during release
80
+ VERSION = "v0.5.7" # Automatically updated by CI/CD pipeline during release
81
81
  BANNER = f"""
82
82
  ╔═══════════════════════════════════════════════════════════════════
83
83
  ║ PyADRecon-ADWS {VERSION} - Python AD Reconnaissance Tool (ADWS)
@@ -609,6 +609,183 @@ def calculate_user_stats(users_data: List[Dict], password_age_days: int = 180, d
609
609
  return stats
610
610
 
611
611
 
612
+ def get_os_eol_info(os_string: str) -> Dict[str, Any]:
613
+ """Return EOL status, EOL date, and days until/since EOL for a given OS string.
614
+
615
+ Mirrors the JavaScript EOL logic in dashboard_generator.py.
616
+ Returns a dict with keys: 'EOL Status', 'EOL Date', 'EOL Days Until/Since'.
617
+ All values are empty strings when the OS is not found or has >12 months of support.
618
+ """
619
+ import re
620
+
621
+ BUILD_MAPPING = {
622
+ # Windows 11 builds
623
+ '22000': '21H2',
624
+ '22621': '22H2',
625
+ '22631': '23H2',
626
+ '26100': '24H2',
627
+ '26200': '25H2',
628
+ '28000': '26H1',
629
+ # Windows 10 builds
630
+ '10240': '1507',
631
+ '10586': '1511',
632
+ '14393': '1607',
633
+ '15063': '1703',
634
+ '16299': '1709',
635
+ '17134': '1803',
636
+ '17763': '1809',
637
+ '18362': '1903',
638
+ '18363': '1909',
639
+ '19041': '2004',
640
+ '19042': '20H2',
641
+ '19043': '21H1',
642
+ '19044': '21H2',
643
+ '19045': '22H2',
644
+ }
645
+
646
+ EOL_DATABASE = {
647
+ 'Server 2003': {'securityEnd': '2015-07-14'},
648
+ 'Server 2008': {'securityEnd': '2020-01-14'},
649
+ 'Server 2008 R2': {'securityEnd': '2020-01-14'},
650
+ 'Server 2012': {'securityEnd': '2023-10-10'},
651
+ 'Server 2012 R2': {'securityEnd': '2023-10-10'},
652
+ 'Server 2016': {'securityEnd': '2027-01-12'},
653
+ 'Server 2019': {'securityEnd': '2029-01-09'},
654
+ 'Server 2022': {'securityEnd': '2031-10-14'},
655
+ 'Server 2025': {'securityEnd': '2034-10-10'},
656
+ 'XP': {'securityEnd': '2014-04-08'},
657
+ 'Vista': {'securityEnd': '2017-04-11'},
658
+ '7': {'securityEnd': '2020-01-14'},
659
+ '8': {'securityEnd': '2016-01-12'},
660
+ '8.1': {'securityEnd': '2023-01-10'},
661
+ '10-1507': {'securityEnd': '2025-10-14'},
662
+ '10-1507-E-LTSC': {'securityEnd': '2025-10-14'},
663
+ '10-1511': {'securityEnd': '2017-10-10'},
664
+ '10-1607': {'securityEnd': '2026-10-13'},
665
+ '10-1607-E-LTSC': {'securityEnd': '2026-10-13'},
666
+ '10-1703': {'securityEnd': '2019-10-08'},
667
+ '10-1709': {'securityEnd': '2020-10-13'},
668
+ '10-1803': {'securityEnd': '2021-05-11'},
669
+ '10-1809': {'securityEnd': '2021-05-11'},
670
+ '10-1809-E-LTSC': {'securityEnd': '2029-01-09'},
671
+ '10-1903': {'securityEnd': '2020-12-08'},
672
+ '10-1909': {'securityEnd': '2022-05-10'},
673
+ '10-2004': {'securityEnd': '2021-12-14'},
674
+ '10-20H2': {'securityEnd': '2023-05-09'},
675
+ '10-21H1': {'securityEnd': '2022-12-13'},
676
+ '10-21H2': {'securityEnd': '2024-06-11'},
677
+ '10-21H2-E-LTSC': {'securityEnd': '2027-01-12'},
678
+ '10-22H2': {'securityEnd': '2025-10-14'},
679
+ '11-21H2-Pro': {'securityEnd': '2023-10-10'},
680
+ '11-21H2-Enterprise': {'securityEnd': '2024-10-08'},
681
+ '11-22H2-Pro': {'securityEnd': '2024-10-08'},
682
+ '11-22H2-Enterprise': {'securityEnd': '2025-10-14'},
683
+ '11-23H2-Pro': {'securityEnd': '2025-11-11'},
684
+ '11-23H2-Enterprise': {'securityEnd': '2026-11-10'},
685
+ '11-24H2-Pro': {'securityEnd': '2026-10-13'},
686
+ '11-24H2-Enterprise': {'securityEnd': '2027-10-12'},
687
+ '11-25H2-Pro': {'securityEnd': '2027-10-12'},
688
+ '11-25H2-Enterprise': {'securityEnd': '2028-10-10'},
689
+ 'Ubuntu 16.04': {'securityEnd': '2021-04-02'},
690
+ 'Ubuntu 18.04': {'securityEnd': '2023-05-31'},
691
+ 'Ubuntu 20.04': {'securityEnd': '2025-05-31'},
692
+ 'Ubuntu 22.04': {'securityEnd': '2027-04-01'},
693
+ 'Debian 9': {'securityEnd': '2020-07-18'},
694
+ 'Debian 10': {'securityEnd': '2022-09-10'},
695
+ 'Debian 11': {'securityEnd': '2024-08-14'},
696
+ 'Debian 12': {'securityEnd': '2026-06-10'},
697
+ }
698
+
699
+ empty = {'EOL Status': '', 'EOL Date': '', 'EOL Days Until/Since': ''}
700
+
701
+ if not os_string:
702
+ return empty
703
+
704
+ # Determine which EOL database key to use
705
+ build_match = re.search(r'\((\d{5})\)', os_string)
706
+ build_number = build_match.group(1) if build_match else None
707
+ version = BUILD_MAPPING.get(build_number) if build_number else None
708
+
709
+ eol_key = None
710
+
711
+ if re.search(r'Windows Server 2003', os_string, re.IGNORECASE):
712
+ eol_key = 'Server 2003'
713
+ elif re.search(r'Windows Server 2008 R2', os_string, re.IGNORECASE):
714
+ eol_key = 'Server 2008 R2'
715
+ elif re.search(r'Windows Server 2008(?! R2)', os_string, re.IGNORECASE):
716
+ eol_key = 'Server 2008'
717
+ elif re.search(r'Windows Server 2012 R2', os_string, re.IGNORECASE):
718
+ eol_key = 'Server 2012 R2'
719
+ elif re.search(r'Windows Server 2012(?! R2)', os_string, re.IGNORECASE):
720
+ eol_key = 'Server 2012'
721
+ elif re.search(r'Windows Server 2016', os_string, re.IGNORECASE):
722
+ eol_key = 'Server 2016'
723
+ elif re.search(r'Windows Server 2019', os_string, re.IGNORECASE):
724
+ eol_key = 'Server 2019'
725
+ elif re.search(r'Windows Server 2022', os_string, re.IGNORECASE):
726
+ eol_key = 'Server 2022'
727
+ elif re.search(r'Windows Server 2025', os_string, re.IGNORECASE):
728
+ eol_key = 'Server 2025'
729
+ elif re.search(r'Windows 11', os_string, re.IGNORECASE) and version:
730
+ is_enterprise = bool(re.search(r'Enterprise', os_string, re.IGNORECASE))
731
+ edition = 'Enterprise' if is_enterprise else 'Pro'
732
+ eol_key = f'11-{version}-{edition}'
733
+ elif re.search(r'Windows 10', os_string, re.IGNORECASE) and version:
734
+ is_enterprise = bool(re.search(r'Enterprise', os_string, re.IGNORECASE))
735
+ is_ltsc = bool(re.search(r'LTSC', os_string, re.IGNORECASE))
736
+ eol_key = f'10-{version}-E-LTSC' if (is_enterprise and is_ltsc) else f'10-{version}'
737
+ elif re.search(r'Windows XP', os_string, re.IGNORECASE):
738
+ eol_key = 'XP'
739
+ elif re.search(r'Windows Vista', os_string, re.IGNORECASE):
740
+ eol_key = 'Vista'
741
+ elif re.search(r'Windows 7', os_string, re.IGNORECASE):
742
+ eol_key = '7'
743
+ elif re.search(r'Windows 8\.1', os_string, re.IGNORECASE):
744
+ eol_key = '8.1'
745
+ elif re.search(r'Windows 8(?!\.1)', os_string, re.IGNORECASE):
746
+ eol_key = '8'
747
+ elif re.search(r'Ubuntu.*16\.04', os_string, re.IGNORECASE):
748
+ eol_key = 'Ubuntu 16.04'
749
+ elif re.search(r'Ubuntu.*18\.04', os_string, re.IGNORECASE):
750
+ eol_key = 'Ubuntu 18.04'
751
+ elif re.search(r'Ubuntu.*20\.04', os_string, re.IGNORECASE):
752
+ eol_key = 'Ubuntu 20.04'
753
+ elif re.search(r'Ubuntu.*22\.04', os_string, re.IGNORECASE):
754
+ eol_key = 'Ubuntu 22.04'
755
+ elif re.search(r'Debian.*9', os_string, re.IGNORECASE):
756
+ eol_key = 'Debian 9'
757
+ elif re.search(r'Debian.*10', os_string, re.IGNORECASE):
758
+ eol_key = 'Debian 10'
759
+ elif re.search(r'Debian.*11', os_string, re.IGNORECASE):
760
+ eol_key = 'Debian 11'
761
+ elif re.search(r'Debian.*12', os_string, re.IGNORECASE):
762
+ eol_key = 'Debian 12'
763
+
764
+ if eol_key is None or eol_key not in EOL_DATABASE:
765
+ return empty
766
+
767
+ security_end_str = EOL_DATABASE[eol_key]['securityEnd']
768
+ security_end = datetime.strptime(security_end_str, '%Y-%m-%d')
769
+ now = datetime.now()
770
+ twelve_months_from_now = now + timedelta(days=365)
771
+
772
+ if now > security_end:
773
+ eol_status = 'EoL'
774
+ days_diff = (now - security_end).days
775
+ elif security_end <= twelve_months_from_now:
776
+ eol_status = 'Soon EoL'
777
+ days_diff = -((security_end - now).days)
778
+ else:
779
+ eol_status = 'Supported'
780
+ days_diff = -((security_end - now).days)
781
+
782
+ return {
783
+ 'EOL Status': eol_status,
784
+ 'EOL Date': security_end_str,
785
+ 'EOL Days Until/Since': days_diff,
786
+ }
787
+
788
+
612
789
  def calculate_computer_stats(computers_data: List[Dict], laps_data: List[Dict] = None, password_age_days: int = 30, dormant_days: int = 90) -> Dict[str, Any]:
613
790
  """Calculate computer account statistics for the Computer Stats tab."""
614
791
  if not computers_data:
@@ -704,7 +881,35 @@ def calculate_computer_stats(computers_data: List[Dict], laps_data: List[Dict] =
704
881
  stats['categories'][cat]['enabled_count'] += 1
705
882
  else:
706
883
  stats['categories'][cat]['disabled_count'] += 1
707
-
884
+
885
+ # Count EOL statistics
886
+ eol_stats = {
887
+ 'EoL': 0,
888
+ 'Soon EoL (<180 days)': 0,
889
+ 'Soon EoL (≥180 days)': 0,
890
+ 'Supported': 0,
891
+ 'Unknown (OS not recognized)': 0,
892
+ }
893
+ for computer in computers_data:
894
+ eol_status = computer.get('EOL Status', '')
895
+ days_val = computer.get('EOL Days Until/Since', '')
896
+ if eol_status == 'EoL':
897
+ eol_stats['EoL'] += 1
898
+ elif eol_status == 'Soon EoL':
899
+ try:
900
+ days = int(days_val)
901
+ except (TypeError, ValueError):
902
+ days = None
903
+ if days is not None and abs(days) < 180:
904
+ eol_stats['Soon EoL (<180 days)'] += 1
905
+ else:
906
+ eol_stats['Soon EoL (≥180 days)'] += 1
907
+ elif eol_status == 'Supported':
908
+ eol_stats['Supported'] += 1
909
+ else:
910
+ eol_stats['Unknown (OS not recognized)'] += 1
911
+ stats['eol_stats'] = eol_stats
912
+
708
913
  return stats
709
914
 
710
915
 
@@ -2222,6 +2427,8 @@ class PyADRecon:
2222
2427
  ipv4_address = hostname_to_ip.get(hostname_part, '')
2223
2428
  ipv6_address = hostname_to_ipv6.get(hostname_part, '')
2224
2429
 
2430
+ eol_info = get_os_eol_info(os_full)
2431
+
2225
2432
  computer_dict = {
2226
2433
  "UserName": get_attr(entry, 'sAMAccountName', ''),
2227
2434
  "Name": get_attr(entry, 'name', ''),
@@ -2230,6 +2437,9 @@ class PyADRecon:
2230
2437
  "IPv4Address": ipv4_address,
2231
2438
  "IPv6Address": ipv6_address,
2232
2439
  "Operating System": os_full,
2440
+ "EOL Status": eol_info['EOL Status'],
2441
+ "EOL Date": eol_info['EOL Date'],
2442
+ "EOL Days Until/Since": eol_info['EOL Days Until/Since'],
2233
2443
  "Logon Age (days)": logon_age_days,
2234
2444
  "Password Age (days)": pwd_age_days,
2235
2445
  f"Dormant (> {self.config.dormant_days} days)": dormant,
@@ -5462,6 +5672,7 @@ class PyADRecon:
5462
5672
  # Critical security issues (RED)
5463
5673
  red_columns = {
5464
5674
  "Delegation Type": ("Unconstrained", "Unconstrained"),
5675
+ "EOL Status": ("EoL",),
5465
5676
  }
5466
5677
 
5467
5678
  # Medium security issues (ORANGE)
@@ -5508,6 +5719,21 @@ class PyADRecon:
5508
5719
  if cell.value in (True, "TRUE", "True"):
5509
5720
  cell.fill = yellow_fill
5510
5721
 
5722
+ # EOL Status: Soon EoL — orange if < 180 days until EoL, yellow otherwise
5723
+ if "EOL Status" in headers and "EOL Days Until/Since" in headers:
5724
+ eol_status_cell = ws.cell(row=row_idx, column=headers["EOL Status"])
5725
+ if eol_status_cell.value == "Soon EoL":
5726
+ days_cell = ws.cell(row=row_idx, column=headers["EOL Days Until/Since"])
5727
+ try:
5728
+ days_val = int(days_cell.value)
5729
+ except (TypeError, ValueError):
5730
+ days_val = None
5731
+ # days_val is negative (future) for Soon EoL; abs < 180 → orange
5732
+ if days_val is not None and abs(days_val) < 180:
5733
+ eol_status_cell.fill = orange_fill
5734
+ else:
5735
+ eol_status_cell.fill = yellow_fill
5736
+
5511
5737
  # Special: Gray out entire row for disabled computers (after other formatting)
5512
5738
  if is_disabled:
5513
5739
  gray_fill = PatternFill(start_color="E0E0E0", end_color="E0E0E0", fill_type="solid")
@@ -6352,7 +6578,28 @@ class PyADRecon:
6352
6578
  cat_total,
6353
6579
  total_pct
6354
6580
  ])
6355
-
6581
+
6582
+ # EOL Summary section
6583
+ computer_stats_ws.append([])
6584
+ eol_heading_cell = WriteOnlyCell(computer_stats_ws, value="EOL Summary")
6585
+ eol_heading_cell.font = Font(bold=True, size=12)
6586
+ computer_stats_ws.append([eol_heading_cell])
6587
+ computer_stats_ws.append([])
6588
+
6589
+ eol_header_row = []
6590
+ for header in ["EOL Status", "Count", "Percentage"]:
6591
+ cell = WriteOnlyCell(computer_stats_ws, value=header)
6592
+ cell.font = header_font
6593
+ cell.fill = header_fill
6594
+ cell.alignment = left_alignment
6595
+ eol_header_row.append(cell)
6596
+ computer_stats_ws.append(eol_header_row)
6597
+
6598
+ eol_stats = computer_stats.get('eol_stats', {})
6599
+ for label, count in eol_stats.items():
6600
+ pct = f"{(count / total_count * 100):.1f}%" if total_count > 0 else "0.0%"
6601
+ computer_stats_ws.append([label, count, pct])
6602
+
6356
6603
  # Order sheets according to SHEET_ORDER
6357
6604
  ordered_names = []
6358
6605
  for sheet in SHEET_ORDER:
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "0.5.6",
3
- "distance": 0,
4
- "node": "gc82e70d0b61fd204a5c610a78f4669d4d3ce417a",
5
- "dirty": false,
6
- "branch": "HEAD",
7
- "node_date": "2026-07-09"
8
- }
@@ -1,3 +0,0 @@
1
- {
2
- "version": "0.5.6"
3
- }
File without changes
File without changes
File without changes