Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSV-output to mmls #2749

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

jgru
Copy link

@jgru jgru commented Aug 28, 2022

Dear sleuthkit-maintainers,

this patch adds the ability to mmls to print its output in CSV-format.

Even though the conversion of mmls' current output to CSV could be easily achieved with Unix tools [1] I find it convenient to have the ability to output comma-separated values directly. Therefore, this patch introduces a new command line switch -c to instruct mmls to output CSV.

Exemplary usage:

./mmls -c -i ewf ~/Downloads/nps-2008-jean.E01 | csvlook 
ID Slot Start End Length Description
0 Meta 0 0 1 Primary Table (#0)
1 0 62 63 Unallocated
2 000:000 63 20,948,759 20,948,697 NTFS / exFAT (0x07)
3 20,948,760 20,971,519 22,760 Unallocated

Thanks for looking at and eventually considering to add this patch.

Best regards,
jgru


[1] E.g., mmls img.e01 | tail -n+5 | cut -c 7- | sed 's/\s\{2,\}/,/g'

@jgru jgru changed the title Add the ability to mmls to output CSV Add CSV-output to mmls Aug 28, 2022
Add the commandline switch '-c' to add the ability to print
CSV-formatted mmls-output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant