Commit Graph

180 Commits (069749945c91c807875067385cbb5c475cbed501)

Author SHA1 Message Date
Marshall Hallenbeck 788701cb2c refactor: small perflint improvements 2023-05-05 14:37:20 -04:00
Marshall Hallenbeck 574fc5a212 refactor: remove unnecessary variable creation 2023-05-05 14:36:47 -04:00
Marshall Hallenbeck 7f73740e50 firefox: redo black 2023-05-04 09:22:31 -04:00
Marshall Hallenbeck a4b18d261b refactor(firefox): perflint and formatting refactors 2023-05-04 00:23:51 -04:00
mpgn 2be85b5da7 black formating 2023-05-02 11:17:59 -04:00
mpgn 45effc625a core switch to fail instead of error function 2023-04-21 06:20:47 -04:00
Marshall Hallenbeck 10ac9d22d2 fix(logging): fix logger assignment 2023-04-14 15:15:23 -04:00
Marshall Hallenbeck bb5df5160d fix(samruser): properly set logger 2023-04-14 15:11:12 -04:00
Marshall Hallenbeck 763a4f72ed fix(cmedb): cherry pick adding NoSuchTableError 2023-04-14 11:49:05 -04:00
Marshall Hallenbeck e6079e4ddf convert format() to f-string, update single quote to double, and some PEP8 fixes 2023-04-12 00:25:38 -04:00
Marshall Hallenbeck 713f4bcd9d clean up imports 2023-04-07 13:12:56 -04:00
Marshall Hallenbeck a9b7529796 fix(docs): replace single quote doc strings with double quote 2023-04-07 12:40:48 -04:00
mpgn 47cf9c9264 fix conflict 2023-04-07 11:26:20 -04:00
mpgn 81915c09b9 Fix kerberos auth with local-group function 2023-04-07 11:12:40 -04:00
Marshall Hallenbeck fec7a667d2 fix(logging): update logging to use cme_logger and fix some formatting 2023-03-30 16:36:58 -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 67bc50ca44 fix(smb): handle SMB SessionErrors when enumerating local groups 2023-03-24 14:25:17 -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
famos0 3980362dd1 add helper for cmedb dpapi 2023-03-21 10:41:10 +01: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 9a15dfce28 fix(cmedb): fix group display columns 2023-03-16 18:02:48 -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 63c1e03a1d fix(kerberos): add back in kerberos for Petitpotam and samrfunc 2023-03-16 08:34:07 -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 17fb198735 docs(cmedb): update help strings for smb cmedb 2023-03-13 16:10:30 -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 e9b353d645 feat(dbs): add help string and confirmation for all database clear_database functions 2023-03-13 16:08:18 -04:00
Marshall Hallenbeck 47d68dce7b feat(cmedb): update table when printing specific host to include additional info 2023-03-13 16:07: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 cffec370a4 feat(smbdb): add feature to allow search on r/w/rw shares 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