ipatool icon indicating copy to clipboard operation
ipatool copied to clipboard

No long auth login just: INF email= name=" " success=true (Re-Open Ref #246)

Open MyFriendlyUserName opened this issue 2 years ago β€’ 10 comments

What happened?

Referencing #246 as reference was auto-closed and issue is still there in version 2.1.4 (ARM64):

$ ipatool-2.1.4-macos-arm64 auth login -e <apple-id-email>
9:24AM INF enter password:
9:24AM INF email= name=" " success=true

When trying to search something:

$ ipatool-2.1.4-macos-arm64 search test
9:23AM ERR error="country code is invalid: country code mapping for store front () was not found" success=false

Country Code should be AT.

Thanks for your help!

Version

2.1.4

Relevant log output

No response

Please let me know, how I can help you to fix this issue.

MyFriendlyUserName avatar Nov 09 '24 08:11 MyFriendlyUserName

Having this exact same issue, the previously closed issue talking about the same thing has some solutions listed, however none of them seem to work.

CrumplesHQ avatar Nov 09 '24 20:11 CrumplesHQ

You could manually add the store front code in your keychain {"name":"","password":"***","storefront":"code"} find your store front code here https://github.com/majd/ipatool/blob/63ee6fc6a42a89d51c9caac632cefd65218825ab/pkg/appstore/storefront.go

ionuttofan avatar Nov 12 '24 19:11 ionuttofan

manually add the store front code in your keychain

How, @ionuttofan ? I tried opening the keychain app, and I found the ipatool entry in there but I couldn't find a way to edit it manually πŸ˜…

EDIT: Found it! Solution: https://github.com/majd/ipatool/issues/303#issuecomment-2440153361

For US πŸ‡ΊπŸ‡Έ the json would be e.g. {"name":" ","password":"YOUR_PW_HERE","storefront":"143441"}

rogerluan avatar Nov 13 '24 13:11 rogerluan

look for keychain acces, then open keychain acces, after this on login screen, look for ipatool-auth.service. Double click on that and on the end of the page, you'll see "show password". Check that box and you can edit everything

ionuttofan avatar Nov 13 '24 13:11 ionuttofan

I was facing the same issue and resolved it on Linux (Kali) by modifying the "Keystore" entry as follows:

  • Log in as described
  • Identify where ipatool stores the data (gnome-keyring for me) and find a method to modify these entries (I've installed seahorse)
  • The "password" for the keyring entry of ipatool will look like: {"Key":"account","Data":"ey[...]","Label":"","Description":"","KeychainNotTrustApplication":false,"KeychainNotSynchronizable":false}
  • The relevant bit here, is the base64 encoded value of "Data":"ey[...]"
  • Base64 decode the value (e.g. using https://www.base64decode.org/)
  • Add "storefront":"1234" (take the appropriate value from https://github.com/majd/ipatool/blob/8a20cfcb1defae0581156e8ff90f2e6105b9d65b/pkg/appstore/store_front.go), the resulting value should look like: {"name":" ","password":"hunter2","storefront":"143456"} (obviously, adjust the storefront ID and keep your own password)
  • Base64 encode the value (e.g. using https://www.base64encode.org/)
  • Overwrite the "Data" value in the password entry of the keyring/store/chain you've identified before.
  • Test ./ipatool-2.1.4-linux-amd64 search "test" should work now

BreakfastSerial avatar Nov 19 '24 09:11 BreakfastSerial

Where is the key stored in windows ? There is a .ipatool folder in user path, but content is encoded in some weird structure I can't figure it out.

eduedp avatar Nov 19 '24 13:11 eduedp

Cann someone tell me what a keychain is???

Corndoglover69 avatar Nov 24 '24 07:11 Corndoglover69

keychain

If you are using macOS , go to Lounchpad -> Other -> Keychain Access

FlashTang avatar Nov 25 '24 08:11 FlashTang

keychain

If you are using macOS , go to Lounchpad -> Other -> Keychain Access

using windows

Corndoglover69 avatar Nov 28 '24 20:11 Corndoglover69

The issue should be fixed in #316.

majd avatar Dec 12 '24 22:12 majd