Skip to main content

Fetch recipients and chat messages from the chat.db database.

Project description

imessage_reader

This is a forensic tool written in Python 3. Use this tool to fetch the content (phone numbers, email addresses and messages) from the chat.db database file on macOS (version 10.14 or above).

Background

Received messages (iMessage or SMS) and attachments will be saved in "~/Library/Messages". This directory contains a "chat.db" file (SQLite3) with two tables of interest: handle and message. The handle table contains the recipients (email address or phone number). The received messages are in the message table.

Note

Since the imessage databases are only available under macos, it makes no sense to use this tool under Windows or Linux.

Requirements

  • Python 3.8+
  • openpyxl
  • setuptools

Install

pip3 install imessage_reader

Usage

Start the program with:

imessage_reader

This will show you all users and messages.

Use

imessage_reader.py -e

to create an Excel file containing users and messages. The file will be stored in the Desktop folder.

Note: You need access to the Library folder in order to read the iMessage database file ("chat.db"). You can add access (for Terminal or iTerm) in

> System Preferences > Security & Privacy > Privacy > Full Disk Access

ToDo

  • Get the date of messages
  • Fetch the date of received messages.
  • Show a list of all known recipients.
  • Did the user receive the message via SMS or via iMessage?
  • Show attachments.
  • Add more tests.

Changelog

see CHANGELOG.rst

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imessage_reader-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

imessage_reader-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file imessage_reader-0.1.0.tar.gz.

File metadata

  • Download URL: imessage_reader-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for imessage_reader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab9d9026effb716ec7d508ddec2189f9842c9b809da54c3f2bb64c0c89beb129
MD5 c4aadbdbb7ecb4128dd3cf452943120f
BLAKE2b-256 dbf50552bb5d4c4257f5b6db7b20fdb2a70f0968488b0d8e59dd01322dd02abc

See more details on using hashes here.

File details

Details for the file imessage_reader-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: imessage_reader-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for imessage_reader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97f1596aa27f84ded9f912b2d39235fcb3b0b055aa2da3d85d099a87e25a31ba
MD5 9a885e59a7ccd252f7ffd8ca65e5d921
BLAKE2b-256 e4c5afa7b39b33a8064a32c22ddcfe18f7e1b0aa4670bb6ac184fb1630a76d2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page