Access to iOS file system without jailbreak?

I would like to write / use an open source script that can access the iOS file system (without jailbroken). On a Jailbroken device, I use ssh / scp to access, transfer data from the device. The intent is to copy some part of the iOS file system (say /var/mobile/Applications/xxx-xxxx/Documents ) on a Mac, using a non-Jailbroken device , using . script . I see tools like iFunBox can do this. I would like to know that this succeeds.

I came across mobiledevice.h but could not figure out how to use it.

Also, prefer to do it over USB .. for a jailbreak device, I use tcprelay.py to perform usb tunneling . Is there something I can use for an unauthorized device?

+7
filesystems ios ssh copy usb
source share
2 answers

The MobileDeviceManager library brings us simple file system operations (this is an easy-to-use Objective-C wrapper around the MobileDevice framework you've come across).

The fact is that it does not support copying files from a device to a computer, just the opposite. So, to get around this problem, I created a patch ( GitHub gist ) that you can combine into the included sample program to understand its copyFrom .

+5
source share

You can install the ifuse tool, which is located here: https://github.com/libimobiledevice/ifuse

To compile this tool, you need a working Gnu toolkit (make, libtool, etc.).

 #Don't worry - clang is still default sudo port install gcc48 

NB: update your .bash_profile (or similar) to include the following:

 #Important - this is where your compiled libs will get installed to, so we need this export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/** 

The rest of this process will take several minutes.

Install fuse4x

 sudo port install fuse4x 

Create dependencies:

Check out: https://github.com/libimobiledevice/libplist , cd at the box office and run:

 ./autogen.sh ./configure make sudo make install 

Check out: https://github.com/libimobiledevice/libusbmuxd , cd at the checkout and run:

 ./autogen.sh ./configure make sudo make install 

Check out: https://github.com/libimobiledevice/libimobiledevice , cd at the box office and run:

 ./autogen.sh ./configure make sudo make install 

(If you are running Linux, you will also need to install usbmuxd after creating libusbmuxd and libimobiledevice. Otherwise, for Windows and OSX ...)

Now create iFuse:

Check out: https://github.com/libimobiledevice/ifuse

 ./autogen.sh ./configure make sudo make install 

To use ifuse to access the application document directory:

Create a mount directory:

 sudo mkdir -p /Volumes/myapp.app 

Now mount the dir application:

 ifuse --container <appid> /Volumes/abced.app 

Where application id is the name displayed in the package identifier., Example:

  ifuse --container mycompany.ABCED.com /Volumes/abced.app/ 

(see attached picture)

enter image description here

+6
source share

All Articles