How it works...

First, we import the required libraries to handle argument parsing, writing spreadsheets, and interacting with SQLite databases.

from __future__ import print_functionimport argparseimport csvimport osimport sqlite3import sys

This recipe's command-line handler is relatively straightforward. It accepts two positional arguments, IEF_DATABASE and OUTPUT_DIR, representing the file path to the IEFv6.db file and the desired output location, respectively.

if __name__ == '__main__':    parser = argparse.ArgumentParser(        description=__description__,        epilog="Developed by {} on {}".format(            ", ".join(__authors__), __date__)    )    parser.add_argument("IEF_DATABASE", help="Input IEF database") parser.add_argument("OUTPUT_DIR", help="Output DIR") ...

Get Python Digital Forensics Cookbook now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.