Maybe this method is already known here, but here is how to take a brand new 1.1.1 iPhone right out of the box and unlock it without ever physically connecting it to your Mac or PC. NO DOWNGRADING REQUIRED!
Power on the iPhone
Emergency call *3001#12345#*
Check your version is 04.** (1.1.1) if it is proceed.
1st step (add contact to access settings):
emergency call *#307# (hit dial)
your phone will ring. while ringing use the "<x" button to delete the numbers you entered (#307#) then dial the number 0 and hit call. your phone will ring again, hit Accept, then hit Hold, then hit Decline. You now have access to the keypad and you can enter contacts. Enter (+) a new contact. Give it first name A hit save, now assign a URL to contact A. Where it says url you will enter prefs://1F now save, and save at the next screen. Now you will be looking at A's contact info, click the URL you created and it will take you to the settings page; disable autolock and join your WiFi network. Hit home to take you back to the main screen ("please activate...")
2nd step (add another contact to access AppSnapp):
Emergency call, dial number 0 hit call, your phone will ring again, hit Accept, then hit Hold, then hit Decline. You now have access to the keypad and you can enter a 2nd contact. Enter (+) a new contact. Give it first name Z hit save, now assign a URL to contact Z. Where it says url you will enter
http://jailbreakme.com now save, and save at the next screen. Now you will be looking at Z's contact info, click the URL you created and it will take you to the jailbreakme web site. scroll to the bottom and "install app snap" Safari will crash after a second or two, let the phone sit at the home screen for about 30 seconds, it will suddenly ring. Answer it and after a second or so, the phone will lock up. Power it down, restart and TahDah!
3rd step (Activate iPhone and activate YouTube)
Open Installer, install Comunity Sources, then BSD, then Open SSH. After SSH your phone will reboot, find your IP address (settings, wifi, click the blue arrow next to your wifi connection). Now that you have SSH installed and your IP address, just log in to your iPhone with whatever program you like (I use Transmit for Mac, but there's putty, WinSCP, Fugu, CyberDuck... a ton of SSH for Mac and PC both). Now you will need to go to VAR/Root/Library/Lockdown and replace the three files inside with the files found here:
http://www.rapidshare.com/files/5846...utube.zip.html
then go back to USR/Libexec and move this lockdown file into Libexec:
http://rapidshare.com/files/63822007/lockdownd.zip
(after DLing you need to add .back to the end of lockdown (lockdown.back) Restart and now your phone is activated (you have to connect the phone to iTunes to activate YouTube, just plug in your phone and once iTunes sees it, YouTube will work).
step 4 (unlocking) SSH AnySim 1.1.1 in to "Applications" on your iPhone, restart the phone, launch AnySim, follow the directions and now you have a full functional unlocked iPhone (I can do it start to finish in 15 minutes or less)