Now that you already have jailbroken your iPhone here you will learn how to unlock your iPhone 3G and 3GS if you haven't jailbroken yet, click here to learn how to jailbreak your iphone.
Follow these steps to unlock your iPhone.
1- Launch Blackra1n app.
.PNG)
2- Touch Cydia and then tap Install
.PNG)
3- Launch Cydia. (At first launch you might get a message Reorganizing and will close after that, you will have to relaunch cydia)
.PNG)
4- Tap on Manage.
.PNG)
5- Tap on Sources
.PNG)
6- Then tap on Edit
.PNG)
7- Then tap on Add.
.PNG)
8- Enter http://blackra1n.com now tap Add Source.
.PNG)
9- Cydia will update the sources
.PNG)
10- After that tap on Return to Cydia
.PNG)
11- Now tap Done
.PNG)
12- Tap Blackra1n.com
.PNG)
13- Tap blacksn0w
.PNG)
14- Now tap Install
.PNG)
Now Cydia will install it and your iPhone is unlocked. Congratulations.
15- Restart iPhone and you are done.