11 Nov

Spamming with PHP and the iPhone

If you’re lucky enough to have an iPhone (yes, you’re a lucky guy if you have one) then I hope you’ve jail broken it.

I know there’s a lot of arguments over jail breaking your iPhone. Most are worried that it’s going to affect their warranty if it breaks but after speaking to a few people including chewie, it seems that it’s always possible to recover it by putting it into a special recovery mode and using itunes to install the original firmware… so I don’t consider it a risk. Jail breaking only opens the iPhone up to run unofficial applications, it doesn’t open it up to run on other networks such as vodafone. If putting in for a warranty claim then you simply click ‘restore’ in itunes and it puts the original, un-jailbroken firmware on :)

If you don’t already know how to jail break the iPhone, well you don’t need to know! Just download the application from Quickpwn, follow the onscreen instructions and you’re done in a matter of minutes… no special hardware of software needed.

Anyway, to the point… Last night I installed the UNIX subsystem using Installer/Cydia (installer comes automatically by jail breaking the phone). This allows you to SSH into the iphone using your standard SSH client (in my case the one bundled with mac os X as standard, via terminal) using the username root and password alpine.

I’ve wanted to code applications for the iPhone but not too worried about pretty interfaces and certainly didn’t wanna learn a new language or way of coding just for that. Once you’re SSH’d into the iPhone you can do all sorts of things and I thought to myself… I wonder if I could install PHP? After all PHP really is my home from home.

I ran this command ‘apt-get install php’ and about 2 minutes later I have php running on the iphone! How cool is that!? So now if I’m out and about and sitting on an unsecured wifi, I can just run a couple of spamming scripts and sit there with the iPhone spamming away in my pocket.

Also you could create some “useful” scripts to backup SMS and phonebook contacts, log your incoming/outgoing call details and whatever else you might like. If you get hold of someones iPhone for 30 mins then you could install a nice backdoor script running on a cron job which sends you data everytime they connect to the internet… you’ll probably goto jail but hey, maybe you’re a spy for mi5 ;)

Here’s a step by step guide to install Lighttpd + PHP on the iPhone

Share This PostDid you like this? If so, please bookmark it,
tell a friend
about it, and subscribe to the blog RSS feed.

Leave a Reply