Notifications
Clear all

iPhone SMS.db

6 Posts
4 Users
0 Reactions
3,864 Views
(@griso)
New Member
Joined: 14 years ago
Posts: 2
Topic starter  

Hello,

I've one question concerning the SMS.db of an iPhone.
Is there a way to find out to which phone number a sms in the sms.db was sent?
The sms.db stores all incoming SMS in the sms.db, even I you switch the SIM card.
I've now the problem that I can't reconstruct to which phone number a SMS was sent.

Any hints?

Regards
Joerg


   
Quote
keydet89
(@keydet89)
Famed Member
Joined: 21 years ago
Posts: 3568
 

I did a quick Google search and found somethings that might be of interest
http//www.igeekden.com/2010/08/how-to-backup-read-iphone-sms-messages-and-contact-lists-with-ifunbox/

http//linuxsleuthing.blogspot.com/2011/02/parsing-iphone-sms-database.html

http//database-viewer-plus-for-iphone.soft32.com/

Seems this is a SQLite database; you can view the schema with something like SQLite Database Browser, and even write a script (Perl DBI) to extract the data, if you want…

HTH


   
ReplyQuote
Logan
(@logan)
Trusted Member
Joined: 15 years ago
Posts: 66
 

Your best bet is to probably match records extracted from the database with any billing records you have obtained for each SIM card. I could be wrong, but there does not appear to be any field in the database regarding the receiving number.

iMessage messages have a 'To' and 'From' field, as do MMS messages. If there are any extracted from the handset then that could give you some idea as to the time frame that each SIM card was used in the handset.


   
ReplyQuote
(@meatball4rensix)
New Member
Joined: 13 years ago
Posts: 2
 

Well, I am somewhat confused by what's being asked based upon the responses to your post.

Joerg, can you clear things up a bit?

Are you trying to figure out if the SMS.db contains "to" / "from" tags?
As Joshua said, the SMS.db does not have "to/from" tags for standard SMS messages. However, there are "to/from" tags in the following format "sender email address or telephone #" followed immediately by what appears to be a GUID followed by "Madridp" folled by " host telephone number and GUID". Your best bet would be to obtain call detail records and compare date/time stamps or see if the cellular provider retains SMS content.

Are you saying the SIM card of the device was changed? Meaning on X date the iPhone had X SIM card and X SMS.db, but on Y date the iPhone now had Y SIM card but SMS messages were still being written to X SMS.db? This could be a problem, but you should see the change as indicated above if any of the messages are iMessages. Additionally, depending on what you are using to view the image you'r working with you might find other artifacts/date/time stamps helping identify when the switch was made or likely made.

Or are you trying to identify the destination of SMS messages sent from the iPhone? This is fairly easy to do and I am in the middle of writing a blog with simple instructions and a few tips to use.

Cheers,
Dave


   
ReplyQuote
(@griso)
New Member
Joined: 14 years ago
Posts: 2
Topic starter  

Are you saying the SIM card of the device was changed? Meaning on X date the iPhone had X SIM card and X SMS.db, but on Y date the iPhone now had Y SIM card but SMS messages were still being written to X SMS.db?

yes, this was the background of my question.
Thanks a lot for your help.

Regards
Joerg


   
ReplyQuote
(@meatball4rensix)
New Member
Joined: 13 years ago
Posts: 2
 

Joerg,

In that case I would be looking towards other artifacts in the phone. Based upon the information contained within these plists I would guess they may be of value. However, you may have to do some testing to find out. Or you might check with Apple Security to see if they will tell you whether or not these plists will be changed/updated depending on the insertion of a new SIM card.

In no particular order really, I would look at

/wireless/Library/Preferences/com.apple.commcenter.plist

* Because this plist holds the carrier ID, ICCID, and telephone number notably. I would imagine this might have an updated date/time stamps or you may find a deleted com.apple.commcenter.plst in unallocated space if a new one was created.

/root/Library/Lockdown/data_ark.plist

/logs/AppleSupport/general.log

/logs/lockdownd.log

/log/DiagnosticMessages/*.asl (can be opened in text editor)

Also as a second thought, I haven't looked at iTunes backups in some time though you might be able to use those as historical snapshots if it contains the com.apple.commcenter.plist (almost like using Windows Restore Points or Volume Shadow Copies to see historical changes on a machine).

And finally, you may serve Apple with legal paper - assuming you can - for data contained within the users iCloud backup should they possess an iCloud account. iOS 5 allows users to choose between their computer locally and iCloud for backups.

Hopefully this was helpful and leads to some useful information.

Cheers,
Dave


   
ReplyQuote
Share: