Skip to content

Instantly share code, notes, and snippets.

@4ft35t
Created August 19, 2024 08:41
Show Gist options
  • Save 4ft35t/925c2b44335fbd554f7435c1a6deb936 to your computer and use it in GitHub Desktop.
Save 4ft35t/925c2b44335fbd554f7435c1a6deb936 to your computer and use it in GitHub Desktop.
get simyo esim code
#!/bin/bash
# get eSim LPA profile
# https://blog.ugoearn.com/simyo_5ber/
# https://shuzijumin.com/thread-479-1-1.html
phone_number="06..."
password="..."
simyo_curl() {
curl \
-H 'X-Client-Token: e77b7e2f43db41bb95b17a2a11581a38' \
-H 'X-Client-Platform: android' \
-H 'X-Client-Version: 4.8.1' \
-H 'User-Agent: MijnSimyo/3.64.4 (Linux; Android 13; Scale/2.75)' \
-H 'Content-Type: application/json; charset=UTF-8' \
"$@"
}
esim_code=$(simyo_curl https://appapi.simyo.nl/simyoapi/api/v1/sessions -d '{"password":"'"$password"'","phoneNumber":"'$phone_number'"}' | tee /tmp/.simyo-esim | jq -r '.result.esimCode')
echo -e "eSim code:\nLPA:$esim_code"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment