Hi. You can visit iphonehacks.com to get the jailbreak guide for your iPhone 3GS. To unlock your iPhone 3GS, you can visit ProUnlocking.com and get the remote unlocking service. This method of unlocking an iPhone is safe, simple, affordable, quick and permanent. It doesn't require a jailbreak too. Good luck.