Commit Graph

  • c8b472321a feat(cmedb): update queries and fix parameter names Marshall Hallenbeck 2023-03-04 15:33:07 -05:00
  • 4c3f68925b chore(cmedb): remove debug print statements Marshall Hallenbeck 2023-03-04 11:24:43 -05:00
  • 86fa6d3437 chore(cmedb): remove unnecessary update_computer function Marshall Hallenbeck 2023-03-04 11:22:44 -05:00
  • e34fdc2dda feat(database): update each protocol to use sqlalchemy table reference and add database clear function; closes #189 Marshall Hallenbeck 2023-03-04 11:12:29 -05:00
  • 10e7180c20 chore(cmedb): fix small formatting Marshall Hallenbeck 2023-03-04 11:10:35 -05:00
  • 3dd7134898 chore(smb): fix formatting for smb.py Marshall Hallenbeck 2023-03-04 09:11:31 -05:00
  • 3c62a58008 fix(smb): update logging for shares Marshall Hallenbeck 2023-03-04 08:44:28 -05:00
  • 18d2b273af feat(cmedb): update cmedb.groups sql queries to use sqlalchemy Marshall Hallenbeck 2023-03-03 21:05:04 -05:00
  • 6d140bb1ce feat(cmedb): update some functions for smb.creds Marshall Hallenbeck 2023-03-03 20:38:31 -05:00
  • bc2ba6a025 feat(cmedb): update queries for smb.hosts Marshall Hallenbeck 2023-03-03 19:37:02 -05:00
  • 9185555c0f feat(cmedb): update db connection reference and one query Marshall Hallenbeck 2023-03-03 19:28:56 -05:00
  • 7e2c9333fd refactor(cmedb): fix cursor connection reference Marshall Hallenbeck 2023-03-03 19:19:11 -05:00
  • f9f8de0c74 fix(cmedb): import print_table from cmedb Marshall Hallenbeck 2023-03-03 19:06:18 -05:00
  • f65a78a03e chore(cmedb): formatting fixes Marshall Hallenbeck 2023-03-03 19:04:29 -05:00
  • 388f520103 WIP - cmedb update Marshall Hallenbeck 2023-03-03 17:28:46 -05:00
  • e120efd347 chore(cmedb): fix formatting and other PEP8 violations Marshall Hallenbeck 2023-03-03 17:25:02 -05:00
  • 4c9faccdfa remove debug prints and fix typo Marshall Hallenbeck 2023-03-03 17:10:07 -05:00
  • ad5898ee3e feat(cmedb): WIP - update cmedb to use sqlalchemy connector Marshall Hallenbeck 2023-03-03 17:03:53 -05:00
  • 218c9b745e feat(sqlalchemy): WIP - working sqlalchemy session object being passed Marshall Hallenbeck 2023-03-03 14:02:47 -05:00
  • 1d5d558f99 fix(display table): properly check for new DB additions and clean up previous checks Marshall Hallenbeck 2023-03-03 12:04:46 -05:00
  • 2aa198b601 feat(sqlalchemy): change DB connection to sqlalchemy and add it as a dependency Marshall Hallenbeck 2023-03-03 09:55:05 -05:00
  • dce692833c fix: correct cmedb import Marshall Hallenbeck 2023-03-03 09:50:43 -05:00
  • 5e9ea346fd feat(cmedb): add additional fields to smb db Marshall Hallenbeck 2023-03-03 09:50:28 -05:00
  • 50a74951c8 refactor: centralize shared path variables and improve cmedb intialization Marshall Hallenbeck 2023-03-02 11:01:29 -05:00
  • 23d8d588e8 chore(gitignore): add .idea to gitignore Marshall Hallenbeck 2023-03-02 11:00:37 -05:00
  • d9fffd39ec Merge pull request #10 from zblurx/dpapi mpgn 2023-03-13 13:08:55 +01:00
  • 23db90b853 Merge pull request #8 from zblurx/log mpgn 2023-03-13 12:44:20 +01:00
  • 6e45d431c1 feat(smb): add functionality to query SAMR for local groups if DC query fails; closes #687 Marshall Hallenbeck 2023-03-12 12:41:02 -04:00
  • 80bec84be4 fix(procdump): handle errors for procdump better Marshall Hallenbeck 2023-03-12 03:25:10 -04:00
  • 746fea855c fix(nanodump): handle errors for nanodump better Marshall Hallenbeck 2023-03-12 03:23:30 -04:00
  • 7c18c8fcc0 fix(handlekatz): handle errors for handlekatz better Marshall Hallenbeck 2023-03-12 03:20:54 -04:00
  • 1a766b2c09 fix(smb): update smb protocol to properly insert AdminRelations, GroupRelations, and LoggedinRelations to the database Marshall Hallenbeck 2023-03-12 03:01:50 -04:00
  • 619a0ada21 chore(mssqldb): remove unnecessary debug prints Marshall Hallenbeck 2023-03-12 03:00:32 -04:00
  • 8e8b00a2cc feat|fix(winrm): update winrm to use database to save hosts and credentials; closes #739 and closes #740 Marshall Hallenbeck 2023-03-12 03:00:00 -04:00
  • 762a2f586a docs(rdpdb): add helpdoc for clear_database command Marshall Hallenbeck 2023-03-12 01:57:28 -05:00
  • 875ef80096 docs(cmedb): add workspace and proto helpdocs Marshall Hallenbeck 2023-03-12 01:56:34 -05:00
  • 1a164b460f refactor: standardize nomenclature to uses 'hosts' instead of 'computers' Marshall Hallenbeck 2023-03-11 21:25:23 -05:00
  • f76bc391ef fix some major bugs and add in proper admin relations to the database functionality Marshall Hallenbeck 2023-03-11 19:44:12 -05:00
  • 5abfc9a1ea refactor(smbdb): move DB-related functions together Marshall Hallenbeck 2023-03-11 11:31:16 -05:00
  • 3188868afc fix(cmedb): check if filter_term is not None on domain query check Marshall Hallenbeck 2023-03-10 02:40:38 -05:00
  • 47b2a9d74b feat(smbdb): add feature to print hosts by domain search in CMEDB Marshall Hallenbeck 2023-03-10 01:53:10 -05:00
  • 27eac339ab fix: catch BrokenPipeErrors when connecting via SMB Marshall Hallenbeck 2023-03-10 01:12:59 -05:00
  • 5105c4a08e fix(db): introduce 5 second timeout check so if the database is locked, it will retry Marshall Hallenbeck 2023-03-10 01:09:14 -05:00
  • 7583fa2abd docs(cmedb): update help strings for smb cmedb Marshall Hallenbeck 2023-03-09 23:36:31 -05:00
  • 2063063be9 fix: change back variable names for nthash and lmhash Marshall Hallenbeck 2023-03-09 23:04:59 -05:00
  • 5499ef7749 fix(zerologon): catch error and alert user if epm.hept_map fails due to host not being DC Marshall Hallenbeck 2023-03-09 23:04:28 -05:00
  • 376eb7aed6 fix(cmedb): add func.lower() calls back into certain columns that need it Marshall Hallenbeck 2023-03-09 22:53:22 -05:00
  • 7f219014cd fix(cmedb): fix LIKE queries to properly work Marshall Hallenbeck 2023-03-09 22:48:33 -05:00
  • 0ba6ce8f8e update formatting, some variable names, and other Pythonic things for winrm Marshall Hallenbeck 2023-03-09 19:58:36 -05:00
  • dd79c36981 feat(dbs): add help string and confirmation for all database clear_database functions Marshall Hallenbeck 2023-03-09 19:25:18 -05:00
  • 09c230b9be fix: try/except updating the database on spoolers and zerologon modules Marshall Hallenbeck 2023-03-09 18:38:42 -05:00
  • 773db5fba6 feat(petitpotam): update petitpotam module to update database if host is vulnerable. Also removed redundant function and cleaned up formatting Marshall Hallenbeck 2023-03-09 18:37:11 -05:00
  • 644f6db6b8 feat(zerologon): update zerologon module to update database if host is vulnerable Marshall Hallenbeck 2023-03-09 18:33:58 -05:00
  • 732aa751f8 feat(spooler): update spooler module to update database if spooler service is enabled Marshall Hallenbeck 2023-03-09 18:31:32 -05:00
  • 435cc0b425 feat(cmedb): update table when printing specific host to include additional info Marshall Hallenbeck 2023-03-09 18:28:35 -05:00
  • 944021533e fix(db): fix update columns reference for Upsert queries to properly update columns Marshall Hallenbeck 2023-03-09 18:27:43 -05:00
  • 8735f54144 fix(mssqldb): properly apply filters for sqlalchemy queries Marshall Hallenbeck 2023-03-09 17:39:51 -05:00
  • f1c3443f7e feat(smbdb): add feature to allow search on r/w/rw shares Marshall Hallenbeck 2023-03-09 17:39:07 -05:00
  • 2b2124fb3e fix(smbdb): properly apply filters for sqlalchemy queries Marshall Hallenbeck 2023-03-09 17:38:37 -05:00
  • f609c5ca92 chore: remove unnecessary commented code Marshall Hallenbeck 2023-03-09 17:00:51 -05:00
  • 46c83375c5 feat(ssh|winrmdb): update ssh and winrm database files to use proper sqlalchemy methods Marshall Hallenbeck 2023-03-09 16:55:53 -05:00
  • d4afcc4463 feat(ftpdb): update ftp database file to use new sqlalchemy connection and query methods Marshall Hallenbeck 2023-03-09 16:54:31 -05:00
  • d8b1fb620f fix(rdp|ldapdb): fix table name reflection Marshall Hallenbeck 2023-03-09 16:50:32 -05:00
  • 0b2236b308 fix(rdp|ldapdb): fix table name reflection Marshall Hallenbeck 2023-03-09 16:50:32 -05:00
  • 04f3b994ec feat(rdpdb): update rdp databse file to use new sqlalchemy connection and query methods Marshall Hallenbeck 2023-03-09 16:49:13 -05:00
  • 2950393fd5 chore(mssqldb): remove unnecessary import and add SAWarning ignore Marshall Hallenbeck 2023-03-08 13:12:01 -05:00
  • 912bf534b2 feat(mssqldb): update clear_database to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:11:01 -05:00
  • 53f6f5b020 feat(mssqldb): update get_computers to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:10:32 -05:00
  • c5ea25fcc5 feat(mssqldb): update is_computer_valid to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:09:59 -05:00
  • 5c7ff62c10 feat(mssqldb): update get_credentials to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:09:35 -05:00
  • 3ada097607 feat(mssqldb): update is_credential_valid to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:09:03 -05:00
  • 0f5540c1f1 feat(mssqldb): update remove_admin_relations to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:08:42 -05:00
  • 4684e4deed feat(mssqldb): update get_admin_relations to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:08:16 -05:00
  • 80e7c3b3a8 feat(mssqldb): update add_admin_user to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:07:50 -05:00
  • 08902565d5 feat(mssqldb): update remove_credentials to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:06:55 -05:00
  • 68d4708e18 feat(mssqldb): update add_credential to be the same as smbdb Marshall Hallenbeck 2023-03-08 13:06:28 -05:00
  • 365b3ef228 feat(mssqldb): update add_computer to proper sqlalchemny syntax Marshall Hallenbeck 2023-03-08 13:04:29 -05:00
  • 92b1739514 feat(smbdb): only update hosts if they have changed to improve SQL write time Marshall Hallenbeck 2023-03-08 13:03:48 -05:00
  • a2544278d1 logging(smbdb): update log string to better specify which add_computer() is being called Marshall Hallenbeck 2023-03-08 12:57:55 -05:00
  • 7466b0774e format(smbdb): change order of functions to match other database classes Marshall Hallenbeck 2023-03-08 12:55:22 -05:00
  • b9dea995e5 feat(smbdb): add help_creds Marshall Hallenbeck 2023-03-08 01:43:55 -05:00
  • deb92a56a3 chore: remove old commented code Marshall Hallenbeck 2023-03-08 01:26:02 -05:00
  • 3e41c87808 feat(smbdb): update remaining functions to proper sqlalchemy syntax Marshall Hallenbeck 2023-03-08 01:24:44 -05:00
  • ecf72fb6f3 refactor(smbdb): change all add_user references to add_credential and refactor some if statements Marshall Hallenbeck 2023-03-08 00:27:14 -05:00
  • 5cb48ac701 chore: set asyncio logging level to CRITICAL to prevent unnecessary logging messages in debug mode Marshall Hallenbeck 2023-03-08 00:25:58 -05:00
  • a225050af7 fix(smbdb): update Upsert technique Marshall Hallenbeck 2023-03-07 23:01:36 -05:00
  • 43cbeef131 feat(smbdb): work on fixing group sqlalchemy queries Marshall Hallenbeck 2023-03-07 21:27:24 -05:00
  • 0d79392d93 update variable name Marshall Hallenbeck 2023-03-06 19:19:13 -05:00
  • 64866e01e1 fix(smbdb): fix clear_database query Marshall Hallenbeck 2023-03-06 19:02:03 -05:00
  • e0bb89bbfa fix(smbdb): reference inserted row id properly Marshall Hallenbeck 2023-03-06 18:51:01 -05:00
  • 0c9eb48e96 feat(cmedb): add help string to hosts command Marshall Hallenbeck 2023-03-06 18:45:44 -05:00
  • 7267455a37 feat(cmedb): add help string to groups command Marshall Hallenbeck 2023-03-06 18:42:34 -05:00
  • 992ce3a047 feat(cmedb): add help string to shares command Marshall Hallenbeck 2023-03-06 18:41:33 -05:00
  • c212c4a8be feat(cmedb): add print_help function to assist in printing help commands Marshall Hallenbeck 2023-03-06 18:41:05 -05:00
  • 3efa6b2644 fix comment Marshall Hallenbeck 2023-03-06 18:29:08 -05:00
  • 14c706f6cb fix(cmedb): update get_computers to always return a list Marshall Hallenbeck 2023-03-06 18:26:58 -05:00
  • f5a51833fa feat(cmedb): update get_users to use proper sqlalchemy syntax Marshall Hallenbeck 2023-03-06 18:07:07 -05:00
  • 7c6f8f58f3 feat(cmedb): update get_user to use proper sqlalchemy syntax Marshall Hallenbeck 2023-03-06 18:05:18 -05:00
  • 6da0b19343 feat(cmedb): update get_computers to use proper sqlalchemy syntax Marshall Hallenbeck 2023-03-06 18:04:26 -05:00
  • 75a73b0e6a feat(cmedb): update is_computer_valid to use proper sqlalchemy syntax Marshall Hallenbeck 2023-03-06 17:58:05 -05:00