To unlock please download the script on debian/ubuntu machine it will work on mac if you have python pip installed
if you restored device to factory settings skip step 1
Launch the script and selcet Dump Sim card files from device this will dump files from the device so you can later activate the sim card
Restore the device to factory settings this can be done via itunes or 3utools
Choose Automatic Icloud bypass and follow the steps
if iphone gets unlocked go to step 4
In the same directory where you dumped files open the script again with command ./start.sh
Then select Dump Sim card files to device (WORKS IF YOU DID OPTION 5)
Test out everything sim card may not work but you atleast tried.