Commit Graph

480 Commits (4879895a02af4517c30eff1d598d567859aee75c)

Author SHA1 Message Date
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 c211f53cbd feat(smbdb): add help_creds 2023-03-13 16:06:18 -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 fa6c20f76a feat(cmedb): add help string to hosts command 2023-03-13 16:06:16 -04:00
Marshall Hallenbeck 6056602a3d feat(cmedb): add help string to groups command 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 0d8824eaf4 feat(cmedb): add help string to shares command 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 526ec5373e fix comment 2023-03-13 16:05:59 -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
Marshall Hallenbeck dc417119b6 fix(cmedb): fix db column reference 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck f1c8c0704b feat(cmedb): update get_group_relations to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 7bfd048078 feat(cmedb): update get_admin_relations to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 2f4b4c0a23 feat(cmedb): update get_credentials to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck d4fe0c18d8 feat(cmedb): update is_user_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 22606143da fix(smbdb): update result query syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 2348fc7e13 fix(SAwarnings): add warning ignore for SAWarnings 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 29e673c885 feat(cmedb): update is_credentials_valid to use proper sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 9b2b1656b7 feat(smbdb): completely revamp get_shares_by_access function (needs testing) 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 75619809ad feat(cmedb): update get_shares sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 780ca00e32 feat(cmedb): update is_share_valid sqlalchemy syntax 2023-03-13 16:05:59 -04:00
Marshall Hallenbeck 8463829b5b feat(database): working on making database operations more async, reducing write concurrency issues, and fixing sqlalchemy query formats 2023-03-13 16:05:57 -04:00
Marshall Hallenbeck 06a82744cd WIP: improve computer add and update logic to reduce writes 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck bdc887ccae feat(mssqldb): update get_computers to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 4b5dfbb025 feat(mssqldb): update is_computer_valid to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck da1e788f23 feat(mssqldb): update get_credentials to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck b70cdc58e1 feat(mssqldb): update is_credential_valid to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 9e1b8fbe88 feat(mssqldb): update remove_admin_relations to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 70346c9c8a feat(mssqldb): update get_admin_relations to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 28b16538ed feat(mssqldb): update add_admin_user to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 54035df8b1 feat(mssqldb): update remove_credentials to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 876dd9d331 feat(mssqldb): update add_credential to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck a8f23e9ed9 chore(mssqldb): fix formatting 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck f33d254c83 feat(mssqldb): update add_computer to use sqlalchemny 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck b44b05a0fa small formatting fix in db_navigator 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck b4c189a2a7 small formatting fix 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 108629bc02 feat(smbdb): update additional user functions to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 484ab65aad feat(smbdb): update is_user_valid to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck a66b3a0a72 feat(smbdb): update is_credential_local to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 7401f48f82 feat(cmedb): update creds remove command to use sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck a634530128 feat(cmedb): add database column for count of members of groups from AD, and the last queried time of it. Additionally transition to sqlalchemy 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 9094e2e80f fix(smbdb): fix extraneous commit call that was causing errors due to timing 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 5debcb793e chore(smbdb): fix formatting 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 1aec4ea798 refactor(cmedb): pass dbengine object instead of session object 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 165142b543 fix(smb-database): remove redundant commit calls 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 0212f7bd28 feat(cmedb): update sql queries for groups command 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck c8b472321a feat(cmedb): update queries and fix parameter names 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 4c3f68925b chore(cmedb): remove debug print statements 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck 86fa6d3437 chore(cmedb): remove unnecessary update_computer function 2023-03-13 16:05:05 -04:00
Marshall Hallenbeck e34fdc2dda feat(database): update each protocol to use sqlalchemy table reference and add database clear function; closes #189 2023-03-13 16:05:03 -04:00
Marshall Hallenbeck 3dd7134898 chore(smb): fix formatting for smb.py 2023-03-13 16:03:50 -04:00
Marshall Hallenbeck 3c62a58008 fix(smb): update logging for shares 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 18d2b273af feat(cmedb): update cmedb.groups sql queries to use sqlalchemy 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 6d140bb1ce feat(cmedb): update some functions for smb.creds 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck bc2ba6a025 feat(cmedb): update queries for smb.hosts 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 9185555c0f feat(cmedb): update db connection reference and one query 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 7e2c9333fd refactor(cmedb): fix cursor connection reference 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck f9f8de0c74 fix(cmedb): import print_table from cmedb 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 388f520103 WIP - cmedb update 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 218c9b745e feat(sqlalchemy): WIP - working sqlalchemy session object being passed 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 1d5d558f99 fix(display table): properly check for new DB additions and clean up previous checks 2023-03-13 15:58:38 -04:00
Marshall Hallenbeck 5e9ea346fd feat(cmedb): add additional fields to smb db 2023-03-13 15:58:07 -04:00
mpgn 9ca90fcecc is_admin check wrong 2023-02-23 04:38:44 -05:00
mpgn c0b1d71cc8
Merge branch 'master' into dpapi 2023-02-22 20:43:47 +01:00
mpgn 26e0393a31 Add check to verify if latest version of cmedb is used 2023-02-22 14:41:58 -05:00
zblurx bf254506d0 fix column for cme dpapi browser 2023-02-22 14:02:36 +01:00
zblurx 7bfdd0a75d store dpapi secrets in cmedb 2023-02-22 13:58:53 +01:00
zblurx 393dfc3987 store domain backup key 2023-02-22 12:56:24 +01:00
mpgn 602e7bb020 add option to dump cookie dpapi 2023-02-19 15:35:37 -05:00
mpgn f381728740 add message when dumping dpapi 2023-02-19 08:33:05 -05:00
mpgn 681e821514 fix local auth dpapi check 2023-02-19 08:06:02 -05:00
mpgn 63c49c0895 add check if da 2023-02-16 08:33:26 -05:00
mpgn 9a1e52f176 change logic for masterkey 2023-02-16 08:09:21 -05:00
mpgn 19a6c3887f merge master into pr 2023-02-16 08:04:23 -05:00
mpgn d5d2d54619 Rewrite all vnc module method 2023-02-16 06:24:07 -05:00
zblurx ffae9abf49 fix trycatch in dpapi 2023-02-14 11:15:14 +01:00
zblurx d5fb5cf36e change pydes to pycryptodomex 2023-02-14 10:00:12 +01:00
mpgn ec4f9ddfec remove printf ldap bloodhound 2023-02-14 03:46:43 -05:00
mpgn 3e2abb9e1e improve share filter 2023-02-13 15:53:55 -05:00
zblurx 6f198372ca merge firefox into dpapi core option 2023-02-13 11:48:12 +01:00
mpgn a551244f38 Add option to only view readable/writable shares credit to @jenaye 2023-02-12 17:19:46 -05:00
mpgn 8c5f25a2db if ldaps then ldaps my friend 2023-02-12 16:11:22 -05:00
mpgn 9f6db06846 Change output filename for winrm 2023-02-12 16:03:38 -05:00
mpgn ce1293b12c check if user password expired for as-reproasting 2023-02-12 15:58:07 -05:00
Alexandre ZANNI c05d27b8d2 [chore] better grep 2023-02-12 09:18:41 -05:00
mpgn c36a0fe445 add fqdn to kerberos option 2023-02-12 09:17:27 -05:00