Save/"Hack" an iPhones SMS database to your computer automatically

Discussion in 'iPhone' started by Ryan, Apr 17, 2010.

  1. Ryan

    Ryan Well-Known Member

    Joined:
    Jan 19, 2008
    Messages:
    4,129
    Likes Received:
    28
    Device:
    Nexus 4
    Please only use this for good, ie. backing up your phones SMS database really quickly..

    Ok so first off your probably going to need a few things:



    Ok so step by step here is what you need to do.

    Install putty and find the install location.

    C:\Program Files\PuTTY (32-bit)
    C:\Program Files (x86)\PuTTY (64-bit)

    Please Register or Log in to view images



    Copy "pscp.exe" into C:\Windows\System32.

    People don't like going into System32 so here is the explanation for this action. When you use a command prompt in windows it gets all its commands from System32. Therefore when we want to use a command instead of having to navigate to the folder with the putty file in it, we can just type pscp and windows will automaticly look into System32 and find it.


    Go to your desktop and right click and create a new text file.

    Enter this into the text file.

    Code:
    pscp -pw RootPassword "root@TargetIP:/private/var/mobile/Library/SMS/sms.db" C:\Users\YourName\Desktop\sms.db
    Quick explanation: pscp [the putty ssh program] -pw [the password option to log in with] "root[the root login]@TargetIP[the address of the iPhone]:/private/var/mobile/Library/SMS/sms.db" [the location of the sms database inside the iPhones filesystem]C:\Users\YourName\Desktop\sms.db [the location to copy to, your desktop]


    Ok, replace "RootPassword" with the password to your iPhone, default is Alpine.

    Replace TargetIP with your iPhones IP adress on your wifi network. Note you must be on the same network as your iPhone for it to connect.

    Replace YourName with the account on your computer you are logged into with. May be different path for XP users.

    It is also essential to set your iPhones network configuration to "Static" so that the IP address remains the same.

    Please Register or Log in to view images



    Make sure the numbers you put into the options are IDENTICAL to the DHCP options, except the last numbers on the first one. Set the last 2 digits quite high (40-70) to avoid IP conflicts.


    Go to file -> save as -> change the file type to All files (*.*) and name it sms.bat

    Please Register or Log in to view images



    Now run the batch file. You will have a "sms.db" file appear on your desktop.

    Install and run the SQLite Database Browser and open the sms.db file with it.

    Go to the "Browse Data" tab and from the table drop down list select "message".

    Please Register or Log in to view images



    There you go

    Please Register or Log in to view images

    , Address is the phone number that the message was sent to / from. The date is obvious. The text is the message sent. Flags, 3 means message was sent FROM that phone. 2 means message was sent TO that phone.


    Enjoy, and please use for LEGAL purposes only.​
  2. all_against_one

    all_against_one New Member

    Joined:
    Jan 9, 2009
    Messages:
    326
    Likes Received:
    0
    Device:
    iPad 2 (White)
    Nice tutorial! Should be stickied!

    Please Register or Log in to view images

  3. Sup3rsonic

    Sup3rsonic New Member

    Joined:
    Feb 14, 2009
    Messages:
    634
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    I thought you were using this to spy on your brother?

    Please Register or Log in to view images

  4. Ryan

    Ryan Well-Known Member

    Joined:
    Jan 19, 2008
    Messages:
    4,129
    Likes Received:
    28
    Device:
    Nexus 4
    shhhh

    Please Register or Log in to view images

  5. xtaaxt

    xtaaxt New Member

    Joined:
    May 25, 2010
    Messages:
    2
    Likes Received:
    0
    Do you use this to spy on your dog? Woo, haha
  6. Contagon

    Contagon Member

    Joined:
    Jul 16, 2010
    Messages:
    191
    Likes Received:
    1
    Device:
    4G iPod touch
    Great guide, this'll help a ton.
  7. aleemmjf

    aleemmjf New Member

    Joined:
    Dec 18, 2009
    Messages:
    3
    Likes Received:
    0
    Device:
    2G iPod touch
    tahnkx man
  8. mrez

    mrez Member

    Joined:
    Jul 23, 2008
    Messages:
    145
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    anything like this for mac?
  9. shizzo3

    shizzo3 Member

    Joined:
    Mar 31, 2009
    Messages:
    159
    Likes Received:
    7
    Device:
    iPhone 5 (White)
    wait, i did something similar before,, my brother and i had both iphones in the same computer and we always doing back up on the same computer, so one day i restored my iphone and back up from the computer, but the back wasnt from my phone, it was for my brother's iphone, so i could see his SMS and pictures in my phone, they were saved in my phone, i just saw all the SMS that i had,, but i was still with my phone number,, weird uhh?? ;p
  10. binorx

    binorx New Member

    Joined:
    Dec 22, 2010
    Messages:
    11
    Likes Received:
    1
    in my opinion i thinks its better if you just download diskaid no openssh needed

Share This Page