Can I get the ipsw file off my iPhone 3gs and install it on my iPhone 4s?
No, even if you obtained the IPSW, it would not install since there are different IPSWs for different devices.

You can check the authenticity of an IPSW per this question:


Can an .ipsw firmware restore image&#39;s origin be verified?