Jailbreak/unlock 3.1.3 with baseband 05.12.01

My sister has a old iPhone she wants to unlock and sell on ebay. After some googeling around, and looking through the forum, I'm at a loss. Anyone have any insight on how to do this? Thanks.
You need Spirit.

Open it, plug in your device, click jailbreak, and ta-da it's done 🙂
You need Spirit.

Open it, plug in your device, click jailbreak, and ta-da it's done 🙂

That will jailbreak you device. In order to unlock it, open the Cydia app on the phone and install ultrasn0w. Then the phone will be unlocked.

Original thread: https://forums.imore.com/threads/jailbreak-unlock-3-1-3-with-baseband-05-12-01.225689/