Unlocking the iPhone has never been so easy, this method only requires that you have a Wi Fi connection..so let’s get to it!
1 - Turn on the iPhone, wait until you get to the activation screen, slide the slider to get to the keypad.
2 - On the keypad type the following: *#307# tap the call button, the phone will start vibrating, while it’s vibrating tap the backspace to erase the characters you just typed in, now type 0 and tap call again.
3 - The phone will call itself, tap Answer, tap the hold button, and tap decline and this should take you to the Contact list.
4 - Create a contact, name it whatever you want but add the following urls in the url section of the contact:
prefs://1F
http://jailbreakme.com
5 - Click done and your contact will then be saved. Now click on the url named: prefs://1F, this will take you to your iPhone’s settings.
6 - Tap Wi Fi and select your Wi Fi network, type in your WEP password. Once you’re connected you should see the Wi Fi symbol on the status bar up at the top of the screen.
7 - Push the HOME button to get back to the activation screen, slide once again to get to the keypad.
8 - This time press 0 and tap call, if the call fails, repeat Step 2 from above. If it doesn’t fail, the phone should vibrate again, tap answer. Now tap hold, and then tap decline, you should be able to get back to your contact.
9 - Tap contact and this time we will tap on the other url: http://jailbreakme.com – scroll all the way down and tap Install AppSnapp.
10 - Safari will crash and take you back to the activation screen, this is normal. Wait about 2 minutes and reboot the iphone completely by holding the power button down and sliding it off.
11 - Once you are rebooted, you should end up with a jailbroken iPhone. If you still end up at the activation screen, repeat all the steps above, I had to perform this method twice on mine.
Keep in mind that this will only jailbreak the iPhone and not unlock it. To unlock the phone you will need to install AnySim which can be found from the Installer app on the iPhone home page.