Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter the index of the device for installation #37

Open
Tarch1 opened this issue Jan 3, 2024 · 7 comments
Open

Enter the index of the device for installation #37

Tarch1 opened this issue Jan 3, 2024 · 7 comments

Comments

@Tarch1
Copy link

Tarch1 commented Jan 3, 2024

As the main title I'm trying to figure out what is the meaning of this request, I type my AppleID and didn't work, then came out this:

Invalid index
Enter OPTION to continue : Other Socket:9. Port: 64886. Error: 0
Receiving request size...
Checking socket: 9
Received bytes: 4(of 4)
Receiving 48 bytes...
Checking socket: 9
Received bytes: 48(of 48)
parse anisette data ret
Represented Value: 241
Sent Bytes Count: 4 (4)
Sent Data: 4 Bytes
Failed to handle request:Failed to cSent Bytes Count: 241 (241)
Sent Data: onnect to any resolved endp241 Bytes
oint
Detected device:Tobia’s iPhone
Starting notification connection to device: Tobia’s iPhone
Sent wired server connection available response!
Started wired server connection!
Receiving request size...
Receiving 48 bytes...
parse anisette data ret
Represented Value: 241
Failed to handle request:Failed to connect to any resolved endpoint

Very glad if you could help me.
PS: I'm very new to ios (1 month) so if my request is a little noob be kind

@powenn
Copy link
Owner

powenn commented Jan 3, 2024

Did you install all dependencies ?
Tethered mode or wifi mode ?

Also please provide more details on the installation procedure, like start the script -> t option -> plugin iPhone -> try install altstore

@Tarch1
Copy link
Author

Tarch1 commented Jan 5, 2024

HI thanks for the support.
Yes I did install everything, I even followed most of this guide (https://www.reddit.com/r/jailbreak/comments/18fkjqy/tutorial_how_to_setup_altserver_on_raspberry/) but in the end keep asking me the index.
That's the process:

python3.11 main.py 
Fetching version ...
Done
Enter sudo password : 

#####################################
#  Welcome to the AltServer script  #
#####################################

ScriptUsage: [OPTION]

OPTIONS
    i, --Install AltStore or ipa files
        Install AltStore or ipa files to your device
    w, --Switch to wifi Daemode mode (Default using it after launch)
        Switch and restart to wifi Daemode mode to refresh apps or AltStore
    t, --Switch to usb tethered Daemode mode
        Switch and restart to usb tethered Daemode mode to refresh apps or AltStore
    e, --Exit
        Exit script
    h, --Help
        Show this message
    p, --Pair
        Show paired devices
    u, --Update
        Update this script
        
For more information: 
https://github.com/powenn/AltServer-Linux-PyScript


Enter OPTION to continue : No argument supplied, if you want for help, please use -h or --help
Not supplying ipa, running in server mode!
Running python3 command to advertise AltServer: from ctypes import *; dll = CDLL('libdns_sd.so'); sdRef = c_int(); flags = 0; interfaceIndex = 0; name = None; regtype = br'_altserver._tcp'; domain = None; host = None; port = 9193; txtLen = 17; txtRecord = b'\x10\x73\x65\x72\x76\x65\x72\x49\x44\x3D\x31\x32\x33\x34\x35\x36\x37'; ret = dll.DNSServiceRegister(byref(sdRef), flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, None, None); print('DNSServiceRegister result: %d' % ret); from threading import Event; Event().wait(); 
Starting netmuxd
Starting mDNS discovery for _apple-mobdev2._tcp.local with mdns
Listening on /var/run/usbmuxd
*** WARNING *** The program 'python3.11' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
DNSServiceRegister result: 0
Adding device 00008110-000E34240250201E
t



Enter OPTION to continue : No argument supplied, if you want for help, please use -h or --help
Not supplying ipa, running in server mode!
Running python3 command to advertise AltServer: from ctypes import *; dll = CDLL('libdns_sd.so'); sdRef = c_int(); flags = 0; interfaceIndex = 0; name = None; regtype = br'_altserver._tcp'; domain = None; host = None; port = 38276; txtLen = 17; txtRecord = b'\x10\x73\x65\x72\x76\x65\x72\x49\x44\x3D\x31\x32\x33\x34\x35\x36\x37'; ret = dll.DNSServiceRegister(byref(sdRef), flags, interfaceIndex, name, regtype, domain, host, port, txtLen, txtRecord, None, None); print('DNSServiceRegister result: %d' % ret); from threading import Event; Event().wait(); 
*** WARNING *** The program 'python3.11' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
DNSServiceRegister result: 0
Detected device:Tobia’s iPhone
Starting notification connection to device: Tobia’s iPhone
i
[0] : Tobia’s iPhone , 00008110-000E34240250201E
Enter the index of the device for installation :  0
Enter your Apple ID : ***************
Enter password of the Apple ID : ************
Do you want to install AltStore ? (y/n) [n for select your own iPA] : y
Installing app...
parse anisette data ret
Alert: Could not install AltStore.ipa to unknown.
    Failed to connect to any resolved endpoint
Press any key to continue...

Exception: Failed to connect to any resolved endpoint
 0# 0x00000000005CF298
 1# 0x000000000099EC2C

Finished!


and if I open AltStore on device (installed with another windows pc) then it read something:

DNSServiceRegister result: 0
Detected device:Tobia’s iPhone
Starting notification connection to device: Tobia’s iPhone
Sent wired server connection available response!
Started wired server connection!
Receiving request size...
Receiving 48 bytes...
parse anisette data ret
Represented Value: 241
Failed to handle request:Failed to connect to any resolved endpoint

@powenn
Copy link
Owner

powenn commented Jan 6, 2024

Found same issue on my Kali Linux MBA , I will look into this issue
Guess caused by some dependencies upgrade , everything works before on the same device .

@Tarch1
Copy link
Author

Tarch1 commented Jan 6, 2024

Ok thanks again, so I will only have to wait or I have to do some things?

@powenn
Copy link
Owner

powenn commented Jan 6, 2024

#34

Try anisette server docker , and script modification is required

@Tarch1
Copy link
Author

Tarch1 commented Jan 14, 2024

OK resolved,
I've installed Doker ( docker docker-compose docker-machine docker-scan docker-buildx ) every packages, just to be sure, then I tried this script from (https://gist.github.com/Jaakkonen/fb2b96915cead9dd77be79644a14c546) :

sudo docker run -d -v lib_cache:/opt/lib/ --restart=always -p 6969:6969 --name anisette dadoum/anisette-server:latest
ALTSERVER_ANISETTE_SERVER=http://127.0.0.1:6969 altserver -a "$MAIL" -p "$PASSWORD" -u "$UUID" AltStore-1_7.ipa

Here the log of the script (log.txt).
that installed Altstore correctly, then executing your altserver, refreshing an app (YouTube Music) finally worked, although it was really slow (5 minutes).
Later (leaving main.py in the background) I tried refreshing Uyou+ but it cloudn't find Altserver.

PS: leaving main.py in the background and disconnecting and reconnecting the iPhone worked and refreshing uyou+took less time than YM

@Tarch1
Copy link
Author

Tarch1 commented Jan 14, 2024

I have a question, it mandatory to have the iphone unlocked? because if it lock out the server interrupts somehow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants