Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Improved cmedb export function #643

Merged
merged 8 commits into from Oct 13, 2022
Merged

Conversation

ILightThings
Copy link
Contributor

@ILightThings ILightThings commented Sep 22, 2022

Sorry to make another PR so soon after the last one regarding roughly the same function.

In this PR, I've made a function write_csv that would simplify creating the CSV files. Using the CSV writer module to make sure other exports are also clean.

I've rewritten a bunch of the export features to follow the same calling convention of export <shares/creds/hosts/local_admins> <simple/detailed> <filename>.

Unfortunately, that does mean the export creds will now export both plaintext and hashes and will be up the user to filter out.

Finally, I also added local_admins to the export type to display what users have admin on what machines.

At the moment, I only have touched the SMB side of things, just wanted to get input before I continue onwards.

image

image

@mpgn
Copy link
Contributor

mpgn commented Sep 22, 2022

No problem ! let me know when you are ready :) cc @maaaaz

@ILightThings
Copy link
Contributor Author

At the moment, I can't find mssql export function. So I will just start with the most commonly used SMB export section.

@ILightThings ILightThings marked this pull request as ready for review September 23, 2022 16:03
@ILightThings
Copy link
Contributor Author

I hope that I did a fix conflict correctly. I've not had to do that before... My apologies.

@mpgn mpgn added enhancement all good tested in my lab labels Oct 10, 2022
@mpgn mpgn merged commit 4ec7a2b into byt3bl33d3r:master Oct 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
all good tested in my lab enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants