The Corner

Accessing an iPhone User’s Call History

It’s possible to access a user’s call history on a non-jailbroken phone running iOS 4.2. Other versions not tested. Proof of concept after the jump.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #cc2324}

p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}

span.s1 {color: #000000}

span.s2 {color: #538187}

span.s3 {color: #35595d}

span.s4 {color: #b80ca1}

span.s5 {color: #cc2324}

span.s6 {color: #410d80}

    FMDatabase* database = [FMDatabase databaseWithPath:@”/private/var/wireless/Library/CallHistory/call_history.db”];

    [database setLogsErrors: YES];

    if ([database open]) {

        FMResultSet* results = [database executeQuery:@”SELECT * FROM calls;”];

        while ([results next]) {

            NSLog(@”phone number: %@”, [[results resultDict] objectForKey:@”phone number”]);

        }

    }

This works because that SQLite3 database is readable by the “mobile” user, which all apps run as.

(You need to do some work to make the above code function. It doesn’t work “out-of-the-box” for obvious ethical reasons.)

Nathan Goulding — Nathan Goulding is the Chief Technology Officer of National Review. He often goes by “Chaka” in NRO’s popular blog The Corner. While having never attended a class in computer science, ...

Most Popular

Politics & Policy

Rod Rosenstein’s Resistance

Rod Rosenstein is even a weasel when repudiating his weasel moves. Here (with my italics) is the deputy attorney general’s non-denial denial of a New York Times report Friday that he brainstormed about ousting President Trump in May 2017: The New York Times’s story is inaccurate and factually incorrect. . . ... Read More
Politics & Policy

Fight for Kavanaugh 

The cynics — or, perhaps more precisely, the realists — believed that the Democrats were playing for time in the hopes of finding another accusation against Brett Kavanaugh. The cynics were right. The New Yorker stooped to publish a shoddy story alleging that Kavanaugh exposed himself to a woman while he ... Read More
White House

Trump Stands By ‘Fantastic’ Kavanaugh

President Trump was supportive of his nominee to the Supreme Court during a radio interview set to be broadcast on Monday morning, in which he characterized Brett Kavanaugh as a “fantastic, fantastic man” and called into question allegations of sexual assault. In the interview — recorded on Sunday, ... Read More