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

Elections

Romney Is a Misfit for America

Mitt’s back. The former governor of Massachusetts and occasional native son of Michigan has a new persona: Mr. Utah. He’s going to bring Utah conservatism to the whole Republican party and to the country at large. Wholesome, efficient, industrious, faithful. “Utah has a lot to teach the politicians in ... Read More
Law & the Courts

What the Second Amendment Means Today

The horrifying school massacre in Parkland, Fla., has prompted another national debate about guns. Unfortunately, it seems that these conversations are never terribly constructive — they are too often dominated by screeching extremists on both sides of the aisle and armchair pundits who offer sweeping opinions ... Read More
U.S.

Fire the FBI Chief

American government is supposed to look and sound like George Washington. What it actually looks and sounds like is Henry Hill from Goodfellas: bad suit, hand out, intoning the eternal mantra: “F*** you, pay me.” American government mostly works by interposition, standing between us, the free people at ... Read More
Film & TV

Black Panther’s Circle of Hype

The Marvel Cinematic Universe (MCU) first infantilizes its audience, then banalizes it, and, finally, controls it through marketing. This commercial strategy, geared toward adolescents of all ages, resembles the Democratic party’s political manipulation of black Americans, targeting that audience through its ... Read More