In my continued research of mobile devices, I always wanted to find a way to quickly hunt for files to research. Because mobile devices (both Android and iOS) rely heavily on SQLite databases I figured why not make a script to pull these databases out from the filesystem for further analysis.
The premise behind my script was to spurred on by Eric Zimmerman's SQLECmd which has a -hunt switch that allows for finding database files from a folder structure. Using the -verbose option spit out a large log of what was found but it wasn't formatted exactly how I wanted it and it ran slower than I anticipated. And so in a galaxy far far away, SQLiteWalker was born!
Download link: https://github.com/stark4n6/SQLiteWalker
Simply put, it looks for magic header details for SQLite databases and extracts the files. Currently, SQLiteWalker can handle folder or .zip input formats. The only other required field is an output path for the exported files and reports. The only optional switch is quiet mode which will not output file paths to the console (it will still write them to the report file).
- Exported/Recreated folder structure with original database files
- File list report containing:
- File name
- File path
- Table structure
- Error list report (if applicable) containing:
- File name
- File path
- Error