Commit Graph

56 Commits (c42f9bcd3de9a1ff77b44588d77e43fc8b1b72e2)

Author SHA1 Message Date
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 b69e070674 fix(mssql): remove group references since mssql db doesnt have groups 2023-03-17 13:03:13 -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 cc3a42ab00 chore(mssqldb): remove unnecessary debug prints 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 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 e9b353d645 feat(dbs): add help string and confirmation for all database clear_database functions 2023-03-13 16:08:18 -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 b368b2ca85 fix(mssqldb): 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 9c48638733 chore(mssqldb): remove unnecessary import and add SAWarning ignore 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 99d041684a feat(mssqldb): update clear_database to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 16f0fe5b35 feat(mssqldb): update get_computers to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck e170f839f7 feat(mssqldb): update is_computer_valid to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck c38117a8dd feat(mssqldb): update get_credentials to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 608304d5d5 feat(mssqldb): update is_credential_valid to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 75fcf0e666 feat(mssqldb): update remove_admin_relations to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 051a7c0e4b feat(mssqldb): update get_admin_relations to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 3b86e8c1fa feat(mssqldb): update add_admin_user to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 38854a59e4 feat(mssqldb): update remove_credentials to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck f9ff7cef7a feat(mssqldb): update add_credential to be the same as smbdb 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 0eb20ff3a2 feat(mssqldb): update add_computer to proper sqlalchemny syntax 2023-03-13 16:07:07 -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 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 1aec4ea798 refactor(cmedb): pass dbengine object instead of session object 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 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 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 f9f8de0c74 fix(cmedb): import print_table from cmedb 2023-03-13 15:58:38 -04:00
Julio Ureña c04b2ba465 Fix cmedb displayed credentials for mssql
The columns were not in the correct order, which caused them to be displayed incorrectly. This change properly orders the way CMEDB displays credentials in the mssql protocol.
2022-12-12 14:39:29 -05:00
mpgn 247de78541
Merge pull request #597 from guervild/mssql-upload-download
Mssql upload / download
2022-10-13 14:55:20 +02:00
Wlayzz b57ba767f8 Adding shebang and encoding utf-8 for all python files 2022-07-19 01:59:14 +02:00
guervild 6e27377b90
Update mssql database.py 2022-06-29 14:14:03 +02:00
guervild d09e68fd6d
Add upload/download function to mssql 2022-06-29 13:44:41 +02:00
mpgn 2cf0c0fb90 Migrate cmedb to python3 2019-11-12 16:39:26 -05:00