Manually manipulating databases with Python – file_lister.py
In the first iteration of the script, we use several standard libraries to complete all of the functionality required for the full operation. As seen in prior scripts, we are implementing argparse
, csv
and logging
for their usual purposes, which include argument handling, writing CSV reports, and logging program execution. We have imported the sqlite3
module to handle all database operations. Unlike our next iteration, we will only be able to support sqlite3 databases through this script. The os
module allows us to recursively step through files in a directory and any subdirectories. Finally, the sys
module allows us to gather logging information about the system, and the datetime
module ...
Get Learning Python for Forensics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.