Then go to blackra1n.com and that is available for Mac and PC. download it and run that. Make sure your iPhone is connected and then click Make it Rain. Wait for couple of minutes, If iPhone comes up, just close it down. Wait for the precess to go on. . .
Jailbreak iPhone 3G/3GS on 3.1.2