Commit Graph

108 Commits (593b9090c904b0547edbf7f9a556752594cd8bb7)

Author SHA1 Message Date
mpgn 2be85b5da7 black formating 2023-05-02 11:17:59 -04:00
Marshall Hallenbeck 763a4f72ed fix(cmedb): cherry pick adding NoSuchTableError 2023-04-14 11:49:05 -04:00
Marshall Hallenbeck 713f4bcd9d clean up imports 2023-04-07 13:12:56 -04:00
Marshall Hallenbeck 26c026d003 feat(console): complete log overhaul, allowing more granular debug messages, and logging to console 2023-03-29 23:59:22 -04:00
Marshall Hallenbeck c42f9bcd3d feat(console): progress on dropping in console logging while keeping everything else the same 2023-03-29 14:19:31 -04:00
Marshall Hallenbeck bfcc689acc refactor(async): update how tasks are created to new threads using proper ThreadPool; update functionality everywhere to match 2023-03-26 01:52:37 -04:00
Marshall Hallenbeck 3cdb3cdf0b fix(cmedb): update error message to instruct user to only delete the workspaces folder 2023-03-22 11:58:49 -04:00
Marshall Hallenbeck 772986c0fa fix(cmedb): display error if DB reflection fails for new schema and tell user how to fix it 2023-03-22 11:51:24 -04:00
Marshall Hallenbeck 9b16a5bd4e feat(cmedb): add ability to export IPs of hosts with signing disabled, different implementation from pull #758 2023-03-20 22:03:23 -04:00
Marshall Hallenbeck 4adb335a58 fix(smb): update add_share() to ignore if the share already exists 2023-03-17 20:33:03 -04:00
Marshall Hallenbeck f6ff5ec37c fix(dpapi): do nothing if dpapi secret is already in database 2023-03-17 14:36:19 -04:00
Marshall Hallenbeck d59c107350 return updated host ids if any were updated 2023-03-17 13:02:46 -04:00
Marshall Hallenbeck 915062b420 fix(smb): groups functionality again returns inserted or updated group ids 2023-03-17 12:56:20 -04:00
Marshall Hallenbeck b5493295c8 fix(smb): readd functionality to add loggedin_relation to db without RETURNING clause 2023-03-17 09:58:12 -04:00
Marshall Hallenbeck 10efcc9d42 fix: remove remaining returned ids from sqlalchemy queries due to RETURNING clause 2023-03-17 09:13:16 -04:00
Marshall Hallenbeck 1a71bb2e0b fix(sqlite): remove all RETURNING clauses from queries due to sqlite not supporting until 3.35 2023-03-16 18:02:20 -04:00
Marshall Hallenbeck da99886ca8 fix(dpapi): update dpapi feature to sqlalchmey and update formatting 2023-03-14 01:25:20 -04:00
Marshall Hallenbeck 4f3759cdce feat(smb): add functionality to query SAMR for local groups if DC query fails; closes #687 2023-03-13 16:12:44 -04:00
Marshall Hallenbeck 735e230945 fix(smb): update smb protocol to properly insert AdminRelations, GroupRelations, and LoggedinRelations to the database 2023-03-13 16:12:44 -04:00
Marshall Hallenbeck 4891750af7 refactor: standardize nomenclature to uses 'hosts' instead of 'computers' 2023-03-13 16:12:30 -04:00
Marshall Hallenbeck ca0ab3b98c fix some major bugs and add in proper admin relations to the database functionality 2023-03-13 16:12:20 -04:00
Marshall Hallenbeck 1ce23664dc refactor(smbdb): move DB-related functions together 2023-03-13 16:11:08 -04:00
Marshall Hallenbeck 2532a9c3ba fix(cmedb): check if filter_term is not None on domain query check 2023-03-13 16:11:01 -04:00
Marshall Hallenbeck 0c30b840a5 feat(smbdb): add feature to print hosts by domain search in CMEDB 2023-03-13 16:11:01 -04:00
Marshall Hallenbeck 4b4e2126cd fix: catch BrokenPipeErrors when connecting via SMB 2023-03-13 16:10:59 -04:00
Marshall Hallenbeck 137a7c7283 fix(cmedb): add func.lower() calls back into certain columns that need it 2023-03-13 16:10:07 -04:00
Marshall Hallenbeck a955a7d7ab fix(cmedb): fix LIKE queries to properly work 2023-03-13 16:10:07 -04:00
Marshall Hallenbeck ec58fb7f7e fix(db): fix update columns reference for Upsert queries to properly update columns 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck e4c21e242d fix(smbdb): properly apply filters for sqlalchemy queries 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 7a43382c7b chore: remove unnecessary commented code 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 515209a4e0 feat(smbdb): only update hosts if they have changed to improve SQL write time 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 3143b56060 logging(smbdb): update log string to better specify which add_computer() is being called 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck beaab6034e format(smbdb): change order of functions to match other database classes 2023-03-13 16:07:05 -04:00
Marshall Hallenbeck d588b523e1 chore: remove old commented code 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 121b25d243 feat(smbdb): update remaining functions to proper sqlalchemy syntax 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 1d33c58059 refactor(smbdb): change all add_user references to add_credential and refactor some if statements 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 97eb27bdfa fix(smbdb): update Upsert technique 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 1bb0a476e0 feat(smbdb): work on fixing group sqlalchemy queries 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 92c8d5bf20 update variable name 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 1e5fec0b75 fix(smbdb): fix clear_database query 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck 17eda1767d fix(smbdb): reference inserted row id properly 2023-03-13 16:06:18 -04:00
Marshall Hallenbeck fde187e26e fix(cmedb): update get_computers to always return a list 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 3dd1daf87b feat(cmedb): update get_users to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck c8c8bbd531 feat(cmedb): update get_user to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck dc1a038474 feat(cmedb): update get_computers to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck ffb277fe55 feat(cmedb): update is_computer_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck dfd18456a0 feat(cmedb): update get_groups to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 6c27da82ef feat(cmedb): update is_group_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 5ca05031a9 feat(cmedb): update get_users_with_share_access to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 042f67ee73 feat(cmedb): update add_share to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00