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
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
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
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
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
5e9ea346fd
feat(cmedb): add additional fields to smb db
2023-03-13 15:58:07 -04: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
Julio Ureña
c2993a5888
Modify remove_credentials to allow "creds remove"
...
`creds remove CredID` was not working because the method was commented on, I also changed the table name from credentials to users.
2022-12-12 14:39:29 -05:00
iLightThings
c005d844e0
Merge branch 'master' into cme_db_detailed
2022-09-23 12:02:40 -04:00
mpgn
105ad97947
quick fix cmedb export share
2022-09-22 18:24:27 -04:00
iLightThings
ba5a421b3e
Added local admins. Made CSV write function.
2022-09-22 08:31:02 -04:00
Wlayzz
b57ba767f8
Adding shebang and encoding utf-8 for all python files
2022-07-19 01:59:14 +02:00
mpgn
c47c77ce2e
Fix cmedb issue
2022-06-21 05:45:57 -04:00
mpgn
44e7ff155d
finish adding smbv1 and signing into cmedb
2022-06-18 17:43:09 -04:00
Serizao
b7e2d686d3
Update database.py
2022-03-02 08:11:38 +01:00
Serizao
19523a75b5
Update database.py
2022-03-02 08:07:20 +01:00
Serizao
b6acf4f4e3
Update database.py
2022-03-02 08:01:58 +01:00
byt3bl33d3r
cb5c8855ed
Version 5.1.3 🔥
...
- Replaced Gevent with AsyncIO
- Shares are now logged in the database and can be queried
- You can now press enter while a scan is being performed and CME will
give you a completion percentage and the number of hosts remaining to
scan
2020-11-15 16:42:28 -07:00
mpgn
a29cf6760c
update python3
2019-11-10 18:39:00 -05:00
Augustin Laville
fdb41c0125
Fix encoding in smb --sam
2019-04-12 13:32:38 +02:00
byt3bl33d3r
4b35455997
Refactored Database Menu code
...
- Fixed some MSSQL DB interaction bugs
- Made MSSQL DB schema more consistent
- cmedb output now gets formatted using terminaltables (so perty)
- Made everything a bit more PEP8 compliant
2017-11-02 17:43:08 +08:00
byt3bl33d3r
f1c6858e55
Fixed bug where creds dumped via mimikatz wouldn't be added to the database
2017-10-24 22:56:34 -06:00
byt3bl33d3r
57d5d7ca13
Y'all better be ready for this, initial 4.0 release
...
- Fixed an edge case in gpp_decrypt.py also renamed to gpp_password
- Added the gpp_autologin module
- Added a workaround for the current impacket smb server bug in
get_keystrokes
- fixed formatting in the SMB database navigator
- fixed an error where DC would have there dc attribute overwritten
- Other stuff that i don't remember
2017-04-06 22:34:30 -06:00
byt3bl33d3r
cae5ffb6ce
Various fixes
2017-04-03 09:25:05 -06:00
byt3bl33d3r
5dc7c4ae62
Fixed logic errors when adding users and groups to the database
...
- Added debug logging to core db functions
- Fixed logging output
- Updated modules to use the new API
2017-03-29 18:03:04 -06:00
byt3bl33d3r
751f209cd7
Initial 4.0 pre-release
2017-03-27 15:09:36 -06:00
byt3bl33d3r
8e6cc4e899
DB schema for the smb protocol is now final!
...
- added two more attributes to use in modules:opsec_safe and multiple_hosts
- renamed db function names
- Added the python_injector module and it's necessary files as a reminder
2016-12-20 00:23:40 -07:00
byt3bl33d3r
9fefd167b0
Initial commit for v4.0
...
Just fyi for anyone reading this, it's not even close to being
finished.
The amount of changes are pretty insane, this commit is to serve as a
refrence point for myself.
Highlights for v4.0:
- The whole codebase has been re-written from scratch
- Codebase has been cut around 2/4
- Protocols are now modular! In theory we could use CME for everything
- Module chaining has been removed for now, still trying to figure out a
more elegant solution
- Workspaces have implemented in cmedb
- The smb protocol's database schema has been changed to support storing users,
groups and computers with their respective memberships and relations.
- I'm in the process of re-writing most of the modules, will re-add them
once i've finished
2016-12-15 00:28:00 -07:00