Commit Graph

1252 Commits

Author SHA1 Message Date
Marshall Hallenbeck 80bec84be4 fix(procdump): handle errors for procdump better 2023-03-12 03:25:10 -04:00
Marshall Hallenbeck 746fea855c fix(nanodump): handle errors for nanodump better 2023-03-12 03:23:30 -04:00
Marshall Hallenbeck 7c18c8fcc0 fix(handlekatz): handle errors for handlekatz better 2023-03-12 03:20:54 -04:00
Marshall Hallenbeck 1a766b2c09 fix(smb): update smb protocol to properly insert AdminRelations, GroupRelations, and LoggedinRelations to the database 2023-03-12 03:01:50 -04:00
Marshall Hallenbeck 619a0ada21 chore(mssqldb): remove unnecessary debug prints 2023-03-12 03:00:32 -04:00
Marshall Hallenbeck 8e8b00a2cc feat|fix(winrm): update winrm to use database to save hosts and credentials; closes #739 and closes #740 2023-03-12 03:00:00 -04:00
Marshall Hallenbeck 762a2f586a docs(rdpdb): add helpdoc for clear_database command 2023-03-12 01:57:28 -05:00
Marshall Hallenbeck 875ef80096 docs(cmedb): add workspace and proto helpdocs 2023-03-12 01:56:34 -05:00
Marshall Hallenbeck 1a164b460f refactor: standardize nomenclature to uses 'hosts' instead of 'computers' 2023-03-11 21:25:23 -05:00
Marshall Hallenbeck f76bc391ef fix some major bugs and add in proper admin relations to the database functionality 2023-03-11 19:44:12 -05:00
Marshall Hallenbeck 5abfc9a1ea refactor(smbdb): move DB-related functions together 2023-03-11 11:31:16 -05:00
Marshall Hallenbeck 3188868afc fix(cmedb): check if filter_term is not None on domain query check 2023-03-10 02:40:38 -05:00
Marshall Hallenbeck 47b2a9d74b feat(smbdb): add feature to print hosts by domain search in CMEDB 2023-03-10 01:53:10 -05:00
Marshall Hallenbeck 27eac339ab fix: catch BrokenPipeErrors when connecting via SMB 2023-03-10 01:12:59 -05:00
Marshall Hallenbeck 5105c4a08e fix(db): introduce 5 second timeout check so if the database is locked, it will retry 2023-03-10 01:09:14 -05:00
Marshall Hallenbeck 7583fa2abd docs(cmedb): update help strings for smb cmedb 2023-03-09 23:36:31 -05:00
Marshall Hallenbeck 2063063be9 fix: change back variable names for nthash and lmhash 2023-03-09 23:04:59 -05:00
Marshall Hallenbeck 5499ef7749 fix(zerologon): catch error and alert user if epm.hept_map fails due to host not being DC 2023-03-09 23:04:28 -05:00
Marshall Hallenbeck 376eb7aed6 fix(cmedb): add func.lower() calls back into certain columns that need it 2023-03-09 22:53:22 -05:00
Marshall Hallenbeck 7f219014cd fix(cmedb): fix LIKE queries to properly work 2023-03-09 22:48:33 -05:00
Marshall Hallenbeck 0ba6ce8f8e update formatting, some variable names, and other Pythonic things for winrm 2023-03-09 19:58:36 -05:00
Marshall Hallenbeck dd79c36981 feat(dbs): add help string and confirmation for all database clear_database functions 2023-03-09 19:25:18 -05:00
Marshall Hallenbeck 09c230b9be fix: try/except updating the database on spoolers and zerologon modules 2023-03-09 18:38:42 -05:00
Marshall Hallenbeck 773db5fba6 feat(petitpotam): update petitpotam module to update database if host is vulnerable. Also removed redundant function and cleaned up formatting 2023-03-09 18:37:11 -05:00
Marshall Hallenbeck 644f6db6b8 feat(zerologon): update zerologon module to update database if host is vulnerable 2023-03-09 18:33:58 -05:00
Marshall Hallenbeck 732aa751f8 feat(spooler): update spooler module to update database if spooler service is enabled 2023-03-09 18:31:32 -05:00
Marshall Hallenbeck 435cc0b425 feat(cmedb): update table when printing specific host to include additional info 2023-03-09 18:28:35 -05:00
Marshall Hallenbeck 944021533e fix(db): fix update columns reference for Upsert queries to properly update columns 2023-03-09 18:27:43 -05:00
Marshall Hallenbeck 8735f54144 fix(mssqldb): properly apply filters for sqlalchemy queries 2023-03-09 17:39:51 -05:00
Marshall Hallenbeck f1c3443f7e feat(smbdb): add feature to allow search on r/w/rw shares 2023-03-09 17:39:07 -05:00
Marshall Hallenbeck 2b2124fb3e fix(smbdb): properly apply filters for sqlalchemy queries 2023-03-09 17:38:37 -05:00
Marshall Hallenbeck f609c5ca92 chore: remove unnecessary commented code 2023-03-09 17:00:51 -05:00
Marshall Hallenbeck 46c83375c5 feat(ssh|winrmdb): update ssh and winrm database files to use proper sqlalchemy methods 2023-03-09 16:58:05 -05:00
Marshall Hallenbeck d4afcc4463 feat(ftpdb): update ftp database file to use new sqlalchemy connection and query methods 2023-03-09 16:58:05 -05:00
Marshall Hallenbeck d8b1fb620f fix(rdp|ldapdb): fix table name reflection 2023-03-09 16:58:01 -05:00
Marshall Hallenbeck 0b2236b308 fix(rdp|ldapdb): fix table name reflection 2023-03-09 16:52:34 -05:00
Marshall Hallenbeck 04f3b994ec feat(rdpdb): update rdp databse file to use new sqlalchemy connection and query methods 2023-03-09 16:49:13 -05:00
Marshall Hallenbeck 2950393fd5 chore(mssqldb): remove unnecessary import and add SAWarning ignore 2023-03-08 13:12:01 -05:00
Marshall Hallenbeck 912bf534b2 feat(mssqldb): update clear_database to be the same as smbdb 2023-03-08 13:11:01 -05:00
Marshall Hallenbeck 53f6f5b020 feat(mssqldb): update get_computers to be the same as smbdb 2023-03-08 13:10:32 -05:00
Marshall Hallenbeck c5ea25fcc5 feat(mssqldb): update is_computer_valid to be the same as smbdb 2023-03-08 13:09:59 -05:00
Marshall Hallenbeck 5c7ff62c10 feat(mssqldb): update get_credentials to be the same as smbdb 2023-03-08 13:09:35 -05:00
Marshall Hallenbeck 3ada097607 feat(mssqldb): update is_credential_valid to be the same as smbdb 2023-03-08 13:09:03 -05:00
Marshall Hallenbeck 0f5540c1f1 feat(mssqldb): update remove_admin_relations to be the same as smbdb 2023-03-08 13:08:42 -05:00
Marshall Hallenbeck 4684e4deed feat(mssqldb): update get_admin_relations to be the same as smbdb 2023-03-08 13:08:16 -05:00
Marshall Hallenbeck 80e7c3b3a8 feat(mssqldb): update add_admin_user to be the same as smbdb 2023-03-08 13:07:50 -05:00
Marshall Hallenbeck 08902565d5 feat(mssqldb): update remove_credentials to be the same as smbdb 2023-03-08 13:06:55 -05:00
Marshall Hallenbeck 68d4708e18 feat(mssqldb): update add_credential to be the same as smbdb 2023-03-08 13:06:28 -05:00
Marshall Hallenbeck 365b3ef228 feat(mssqldb): update add_computer to proper sqlalchemny syntax 2023-03-08 13:04:29 -05:00
Marshall Hallenbeck 92b1739514 feat(smbdb): only update hosts if they have changed to improve SQL write time 2023-03-08 13:03:48 -05:00