How to jailbreak an iphone 3gs with passcode?

Looking to find an easy or program that can unlock and or jailbreak the iphone i'm also trying to use another network on it.let me know

D THIS SIDE… I would like you to tell that their is no other way except jailbreaking it,

ITS very very easy

STEPS:
1) download IPSW file for iphone 3gs. IPSW file is iOS (suppose iOS 5.1.1)
2) and restore your iphone using tha IPSW file via itunes
3) after you are done with the restore just download latest version of redsn0w
4) open redsn0w and go to extra and then go to "even more" and select bootrom option and put you iphone in dfu mode. If your iphone is new or old bootrom procced according to that if you have an new bootrom than you will have to go back and select extra again and then select "SELECT IPSW" and select iOS on you iphone and press ok and then go to main menu by hitting back and press jailbreak and put your iphone in dfu mode and you will be asked to install cydia and someother things, just check install cydia and install iPad baseband and it will give you warning just ignore it and hit yes and then your device is jailbroken.
5) after cydia is insatlled and your iphone is activated you will see NO SERVICE on the status bar, just open cydia and install ultrasnow fixer and reboot your iphone and when it switches on it will say searching and it will keep on searching for around 15 min. And after 15 mins you will see you iphone has been unlocked for any carrier.

In case you have an old bootrom just go to main menu and select jailbreak ( you don't need to select ipsw if your iphone is a old bootrom)
press jailbreak and put your iphone in dfu mode and you will be asked to install cydia and someother things, just check install cydia and install iPad baseband and it will give you warning just ignore it and hit yes and then your device is jailbroken.

after cydia is insatlled and your iphone is activated you will see NO SERVICE on the status bar, just open cydia and install ultrasnow fixer and reboot your iphone and when it switches on it will say searching and it will keep on searching for around 15 min. And after 15 mins you will see you iphone has been unlocked for any carrier.

also please check this link out

<a href="http://www.iphone5contest.info">ge… A Free iPhone 5 - act fast, only 3 spots left!</a>

http://www.iphone5contest.info

i'm also providing you a link of video about the unlocking and jailbreaking

Unlock iPhone 3GS AT&T here: http://senseiphone.com/unlock-att-iphone-imei-08294523/