Here is the Guide to Unlock iPhone 3gs 3.1, Checkout the Guide Here:-
Unlock iPhone 3GS 3.1 with ultrasn0w | TechnoBuzz.net
Unlock iPhone 3GS 3.1 with ultrasn0w | TechnoBuzz.net
Original thread: https://forums.imore.com/threads/unlock-iphone-3gs-firmware-3-1-with-ultrasn0w.179044/