I bought my iphone from a friend. When it would turn on, there was nothing i could do, because there was no sim card, and itunes wouldnt reconize it. There was no way of finding which firmware i had.
Heres how i solved it:
1. Downloaded QuickPWN 2.2.1 and connected my iphone. i went through all of the steps, until this one said i was using the wrong firmware, and i needed 3.0
2. looked up how to jailbrake 3.0
3. Used Redsn0w, and selected the option to unlock
4 YAY!

Im supprised that there isnt instructions out there for this situation.
Keywords (for others to find)
hactivate jailbrake iphone unlock connect to itunes