Commit Graph

1661 Commits (93615972d0e8321e3eb64030d9d8cedb4b570f13)

Author SHA1 Message Date
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 e6022139aa fix: try/except updating the database on spoolers and zerologon modules 2023-03-13 16:08:18 -04:00
Marshall Hallenbeck cbd312eb21 feat(petitpotam): update petitpotam module to update database if host is vulnerable. Also removed redundant function and cleaned up formatting 2023-03-13 16:08:16 -04:00
Marshall Hallenbeck 673afbafb5 feat(zerologon): update zerologon module to update database if host is vulnerable 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck f6bd41f94f feat(spooler): update spooler module to update database if spooler service is enabled 2023-03-13 16:07:07 -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 b368b2ca85 fix(mssqldb): properly apply filters for sqlalchemy queries 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
Marshall Hallenbeck 3996d21175 feat(ssh|winrmdb): update ssh and winrm database files to use proper sqlalchemy methods 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 3491499845 feat(ftpdb): update ftp database file to use new sqlalchemy connection and query methods 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck c55e2563a3 fix(rdp|ldapdb): fix table name reflection 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck fa073b4449 fix(rdp|ldapdb): fix table name reflection 2023-03-13 16:07:07 -04:00
Marshall Hallenbeck 222c6442ec feat(rdpdb): update rdp databse file to use new sqlalchemy connection and query methods 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 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 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 b25b74d473 chore: set asyncio logging level to CRITICAL to prevent unnecessary logging messages in debug mode 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 0a58d95218 feat(cmedb): add print_help function to assist in printing help commands 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