iPhone ipsw firmware download that provided by Apple, when you do the relevant operation at your own risk.
A1332 / A1349
8B117 · iPhone3,1
8A400 · iPhone3,1
8A306 · iPhone3,1
8A293 · iPhone3,1