Last active
November 23, 2020 17:38
-
-
Save phx/6473644 to your computer and use it in GitHub Desktop.
Dump iOS SMS/iMessage database to CSV.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# not an actual script - these are only commands, but the script would be basically the same. | |
# requires jailbroken iOS device | |
# get into the filesystem | |
ssh root:alpine@iphone | |
# update your package list, and install sqlite | |
apt-get update | |
apt-get install sqlite | |
# navigate to sms db directory | |
cd /var/mobile/Library/SMS | |
# drop the kids off at the pool | |
sqlite3 sms.db | |
# the following is for better illustration (the prompts will cause the "script" to fail): | |
sqlite> .mode csv | |
sqlite> .headers on | |
sqlite> .out message.csv | |
sqlite> select * from message; | |
# voila. | |
# write bash script using awk/grep and launchd (iOS/OSX crontab); sky's the limit. |
Author
phx
commented
Nov 17, 2020
via email
I'm not sure. It's been a very long time since I wrote this, and I haven't
messed around with any iOS development recently that I know of that could
access messages.
…On Mon, Nov 16, 2020 at 10:51 AM Bhargav Tarpara ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Hi! Is there a way to access the messages in imessage programmatically
without a jailbroken iphone?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://gist.github.com/6473644#gistcomment-3529390>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDXYYE6DJ3XLZ6EIBOUKXDSQFKCDANCNFSM4TXNGWZA>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment