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 |
mpgn
|
4879895a02
|
add version option
|
2023-03-17 11:19:06 -04:00 |
Marshall Hallenbeck
|
192203972e
|
chore(imports): remove unused imports
|
2023-03-17 10:52:30 -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 |
famos0
|
3e4ce963ee
|
fix dfscoerce
|
2023-03-17 12:03:41 +01: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
|
c52a8566eb
|
fix(dpapi): revert my 'fix', properly connect to DC via domain query
|
2023-03-16 08:34:52 -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
|
5d6a4e28f1
|
Merge remote-tracking branch 'remote/cmedb_marshall' into cmedb_marshall
# Conflicts:
# cme/crackmapexec.py
# cme/modules/petitpotam.py
# cme/protocols/smb.py
# cme/protocols/smb/database.py
# cme/protocols/smb/db_navigator.py
# cme/protocols/winrm.py
# poetry.lock
|
2023-03-14 13:57:28 -04:00 |
Marshall Hallenbeck
|
d7162c3bbe
|
chore(connection): fix formatting
|
2023-03-14 13:13:28 -04:00 |
Marshall Hallenbeck
|
97d9f62803
|
fix(context): move where args are set to context so log/etc isnt overwritten
|
2023-03-14 13:03:09 -04:00 |
Marshall Hallenbeck
|
941efd353a
|
fix(dpapi): update target to be the host instead of domain
|
2023-03-14 01:26:08 -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
|
d9b2975db1
|
fix(procdump): handle errors for procdump better
|
2023-03-13 16:12:44 -04:00 |
Marshall Hallenbeck
|
0c3401e9e1
|
fix(nanodump): handle errors for nanodump better
|
2023-03-13 16:12:44 -04:00 |
Marshall Hallenbeck
|
00d45c1514
|
fix(handlekatz): handle errors for handlekatz better
|
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
|
cc3a42ab00
|
chore(mssqldb): remove unnecessary debug prints
|
2023-03-13 16:12:44 -04:00 |
Marshall Hallenbeck
|
b21e450f90
|
feat|fix(winrm): update winrm to use database to save hosts and credentials; closes #739 and closes #740
|
2023-03-13 16:12:42 -04:00 |
Marshall Hallenbeck
|
39502bc210
|
docs(rdpdb): add helpdoc for clear_database command
|
2023-03-13 16:12:32 -04:00 |
Marshall Hallenbeck
|
4a69778339
|
docs(cmedb): add workspace and proto helpdocs
|
2023-03-13 16:12:32 -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
|
3ecf54bb3f
|
fix(db): introduce 5 second timeout check so if the database is locked, it will retry
|
2023-03-13 16:10:30 -04:00 |
Marshall Hallenbeck
|
17fb198735
|
docs(cmedb): update help strings for smb cmedb
|
2023-03-13 16:10:30 -04:00 |
Marshall Hallenbeck
|
fba8559049
|
fix: change back variable names for nthash and lmhash
|
2023-03-13 16:10:28 -04:00 |
Marshall Hallenbeck
|
04ce05892d
|
fix(zerologon): catch error and alert user if epm.hept_map fails due to host not being DC
|
2023-03-13 16:10:07 -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
|
160efc6980
|
update formatting, some variable names, and other Pythonic things for winrm
|
2023-03-13 16:10:05 -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
|
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 |