How to recover your iPhone password
In order to recover your iPhone password you will need to have the following software installed on your computer.
Download it from this website.
The correct 5.0.1 IPSW for your device. Earlier models not listed can use the bypass connect to iTunes feature but cannot read passwords.
RedSn0w. Make sure to select the Windows version as this will not work on Mac. Currently I am using 0.9.14b1 and it seems to be completely stable.
If you are using Java version 7 you might need to uninstall it and then download 6.0 from here.
This works best with Windows 7 32-bit version. Some have reported that it will work with 64-bit and Windows 8. For more information about using these operating systems see this page.
This does not work with Mac.