Skip to main content

Module database

Module database 

Source
Expand description

Backend database access (SQLite read-only queries).

Structs§

DbCandidate
A discovered database candidate with the metadata needed to disambiguate which DB the application actually uses.

Functions§

classify_databases
Classify every database discovered under dirs, returning application candidates first (non-WebView, largest by size — the substantial app DB outranks incidental ones) and WebView internals last. De-duplicates paths discovered via overlapping roots.
discover_databases
Discover SQLite database files in a directory (non-recursive, max depth 2).
is_webview_internal
Whether a discovered database path is a WebView/browser-engine internal store rather than the application’s own database (audit / red-team “wrong DB” finding).
query
Execute a read-only SQL query against a SQLite database.
select_app_database
Select the single most likely application database from dirs, excluding WebView internals.