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

No Map for NIST SQLite DB #74

Open
daarrgcs opened this issue Jun 3, 2024 · 12 comments
Open

No Map for NIST SQLite DB #74

daarrgcs opened this issue Jun 3, 2024 · 12 comments
Assignees

Comments

@daarrgcs
Copy link

daarrgcs commented Jun 3, 2024

** SQLECmd version # **
The version of SQLECmd you are running
SQLECmd version 1.0.0.0

Describe the bug
A clear and concise description of what the bug is, including the full command line you are using.
Missing map when processing the NIST NSRLRDS_2024.03.1_modern_minimal.db file downloaded from: https://s3.amazonaws.com/rds.nsrl.nist.gov/RDS/rds_3.00_demo/RDSv3_Modern_Minimal_Demo.zip.

Thank you for your continued work with the programs you maintain!

To Reproduce
Steps to reproduce the behavior:

  1. Form Admin terminal, run .\SQLECmd.exe -f "E:\RDS_2024.03.1_modern_minimal\RDS_2024.03.1_modern_minimal.db" --csv "E:"
  2. Results yielded no csv output, but did create a missing map message.
  3. See error

Expected behavior
Process the db and export a csv.

Screenshots
image

Additional context
When processing the NIST NSRLRDS_2024.03.1_modern_minimal.db file, I received a message that there was a missing map. At least one database was found with no corresponding map (Use --debug for more details about discovery process) File name: E:\RDS_2024.03.1_modern_minimal\RDS_2024.03.1_modern_minimal.db, Tables: FILE,MFG,OS,PKG,VERSION

@EricZimmerman
Copy link
Owner

So make the map? How is this a bug

@daarrgcs
Copy link
Author

daarrgcs commented Jun 3, 2024 via email

@AndrewRathbun AndrewRathbun self-assigned this Jun 3, 2024
@daarrgcs
Copy link
Author

daarrgcs commented Jun 3, 2024 via email

@AndrewRathbun
Copy link
Collaborator

dbSchema

@daarrgcs,, here's the DB schema. What exactly were you looking to get from SQLECmd with this DB? Just a CSV output?

@daarrgcs
Copy link
Author

daarrgcs commented Jun 4, 2024 via email

@AndrewRathbun
Copy link
Collaborator

You are responding via email, so the attachment didn't go through. Can you respond through GitHub and attach it here?

@daarrgcs
Copy link
Author

daarrgcs commented Jun 4, 2024

smap file is attached. NIST_NSRLminimalv3-FileHashexport_csv Conv.smap.txt
NIST_NSRLminimalv3-FileHashexport_screenshot

@AndrewRathbun
Copy link
Collaborator

There's no such column as crc32 in the FILE table, FYI.

image

@daarrgcs
Copy link
Author

daarrgcs commented Jun 5, 2024 via email

@daarrgcs
Copy link
Author

daarrgcs commented Jun 5, 2024

There is a crc32 field in the table from what I'm seeing.
/mnt/e/RDS_2024.03.1_modern_minimal$ head RDS_2024.03.1_modern_minimal.csv
sha256,sha1,md5,crc32,file_name,file_size,package_id

image

@AndrewRathbun
Copy link
Collaborator

Ahh, for some reason, I downloaded RDS_2022.10.1_modern_minimal.db so maybe they've since added the crc32 column.

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

No branches or pull requests

3 participants