Commit 9b60069
r0BIT
fix: resolve double-counting and password age display bugs
Bug B1 - Double-counting in credential validation:
- validate_specific_tasks() was storing each result twice (SMB path AND RPC path)
- Now only stores with original SMB path; lookup code already handles both formats
Bug B2 - Password age data not displayed:
- LDAP pwdLastSet was converted to timezone-naive datetime
- Task dates are parsed as timezone-aware (UTC)
- Comparison failed with 'can't compare offset-naive and offset-aware datetimes'
- Fixed by adding tz=timezone.utc to datetime creation in batch_get_user_attributes()1 parent 70dd7a5 commit 9b60069
File tree
3 files changed
+10
-9
lines changed- taskhound
- smb
- utils
- tests
3 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | | - | |
374 | 373 | | |
375 | 374 | | |
376 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
891 | | - | |
892 | | - | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
893 | 894 | | |
894 | 895 | | |
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
898 | 899 | | |
899 | 900 | | |
900 | | - | |
901 | | - | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
902 | 904 | | |
903 | 905 | | |
904 | 906 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
0 commit comments