Metadata-Version: 2.4
Name: parse-smsdb
Version: 0.1.9
Summary: Extracts iMessage, RCS, SMS/MMS chat history from iOS database file.
Project-URL: Homepage, https://github.com/h4x0r/parse_sms.db
Project-URL: Bug Tracker, https://github.com/h4x0r/parse_sms.db/issues
Author-email: Albert Hui <albert@securityronin.com>
License: MIT License
        
        Copyright (c) 2025 Albert Hui
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: pytypedstream
Requires-Dist: typer
Description-Content-Type: text/markdown

# parse_smsdb

Extracts iMessage, RCS, SMS/MMS chat history from iOS database file.

![parse_smsdb screenshot](https://raw.githubusercontent.com/h4x0r/parse_sms.db/refs/heads/main/screenshot.png)

## Description

This tool parses sms.db originated from iOS devices and outputs a CSV (common-separated value) table with annotations useful for forensic examination.

Features:
- Highlight row gaps (indicative of deletions)
- Annotate unsent messages
- Flattens edited message data on to root table for easy review
- Output message read time and annotate unread messages (for services supporting read receipts)

## Getting Started

### Prerequisites

##### Windows
* nil

##### macOS / Linux
* Python 3.10+

### Installation

##### Windows
1. Download https://github.com/h4x0r/parse_sms.db/releases/download/v0.1.8/parse_smsdb-win-x64-0.1.8.zip
2. Extract ```parse_smsdb.exe``` from the downloaded zip file and put it in ```C:\Windows\system32```

##### macOS / Linux
1. Install from PyPI
```
pip install parse_smsdb
```

## Usage

* Parse sms.db within a .zip archive, e.g.
```
parse_smsdb 'IACIS Certified Mobile Device Examiner (ICMDE)/03 iOS/iOS Files/Evidence/506 - Editing SMS iOS 16.zip'
```

* Parse sms.db, e.g.
```
parse_smsdb 'private/var/mobile/Library/SMS/sms.db'
```

## Version History

* 0.1.8
	* Initial beta release

## Contact

[Albert Hui](https://www.linkedin.com/in/alberthui) | [albert@securityronin.com](mailto:albert@securityronin.com) | [@4n6h4x0r.bsky.social](https://bsky.app/profile/4n6h4x0r.bsky.social)

Project Link: [https://github.com/h4x0r/parse_sms.db](https://github.com/h4x0r/parse_sms.db)

## Acknowledgments

* [IACIS MDF Training Course](https://www.iacis.com/training/mobile-device-forensics/) and [Jung Son](https://www.linkedin.com/in/jungson/)'s teaching
* [Magnet Forensic](https://www.magnetforensics.com/)'s blog posts: [The Meaning of Messages](https://www.magnetforensics.com/blog/the-meaning-of-messages/), and [A look into iOS 18's changes](https://www.magnetforensics.com/blog/a-look-into-ios-18s-changes/)
