NyaMisty / AltServer-Linux

AltServer for AltStore, but on-device
GNU Affero General Public License v3.0
988 stars 74 forks source link

[Suggestion] Support usbfluxd #24

Closed turannul closed 2 years ago

turannul commented 2 years ago

If possible this possible It would be amazing. Title clear enough?

NyaMisty commented 2 years ago

Not that useful?

turannul commented 2 years ago

Not that useful?

how not useful emulating USB connection over network? https://github.com/corellium/usbfluxd People could create AltDeamon servers with VPN or DNS

NyaMisty commented 2 years ago

Why? Because usbfluxd are now only used by Corellium-like service.

turannul commented 2 years ago

Why? Because usbfluxd are now only used by Corellium-like service.

We can modify? to make possible connect with usb without physical cable. Massive Improve change for this project.

jgottula commented 2 years ago

This is probably quite a bit less "automagic" and user-friendly... but I figure it's worth pointing out that usbip is also out there as a generic way to "tunnel" communication with any type of USB device on a remote system over the network so that it appears and operates essentially as if it's a USB device connected directly to the local system.

I've used it before for some other projects, and it generally works. (I haven't specifically used it for usbmuxd / Apple Mobile Device use cases, but I don't think anything would break.)

Again, it's not a tremendously user-friendly solution, so probably not something you'd want to package in as an actual feature. But it's another option available for anyone out there who wants to tinker around with this sort of thing.

jgottula commented 2 years ago

Actually perhaps usbip would have problems... since it forwards the entire USB device rather than just the higher level protocol stuff. So maybe the device would, like, trust-pair to the usbip client system (versus the usbfluxd server system) and that'd be different and break stuff. 🤔

Never attempted it, so I'm not sure.

Spidy123222 commented 2 years ago

Difference is that on libimobiledevice on pc using this module it interfaces like a hub so like usb over ip which doesn't work on iOS directly. I've tried it only works by connecting to another device that has a usbmuxd instance. So it's kind of like a usb over ip thing itself to different computers.

Removing machine > Host machine >(cable or WiFi sync)> idevice or in corelliums case it would be on that host computer as a VM.

Description:

Usbfluxd Redirects the standard usbmuxd socket to allow connections to local and remote usbmuxd instances so remote devices appear connected locally.

NyaMisty commented 2 years ago

I recently have a chance to try out the usbfluxd, and it seems that usbfluxd is capable to detect the iOS devices in the same network (even over VPN). So AltServer-Linux's network version will be totally abandoned. For install IPA over WiFi, you can run the usbfluxd before AltServer-Linux.

NyaMisty commented 2 years ago

For usbfluxd, its mDNS is only used for finding other usbfluxd, so sadly not useful. For usbmuxd2, it's very unstable, so not useful Have to wait for usbmuxd to support network device.