Skip to content

Instantly share code, notes, and snippets.

@r-plus
Last active April 4, 2023 15:48
Show Gist options
  • Select an option

  • Save r-plus/50328b93e51e4a4642f7ae5f16efc677 to your computer and use it in GitHub Desktop.

Select an option

Save r-plus/50328b93e51e4a4642f7ae5f16efc677 to your computer and use it in GitHub Desktop.

Revisions

  1. r-plus revised this gist Apr 4, 2023. 1 changed file with 30 additions and 0 deletions.
    30 changes: 30 additions & 0 deletions rootless-filesystem-notes.md
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,36 @@ i7:~ mobile% ls -ld /var/mobile/Library/Preferences
    drwxr-xr-x 300 mobile mobile 9600 Apr 5 00:30 /var/mobile/Library/Preferences/
    ```

    ### `/var/jb/System/Library/PreferenceBundles` is not writable, `/var/jb/Library/{PreferenceBundles,PreferenceLoader}` is writable

    ```
    i7:~ mobile% ls -l /var/jb/System/Library
    合計 0
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 Extensions/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 Fonts/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 Frameworks/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 Internet\ Plug-Ins/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 KeyboardDictionaries/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 LaunchDaemons/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 PreferenceBundles/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 PrivateFrameworks/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 SystemConfiguration/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 VideoDecoders/
    i7:~ mobile% ls -l /var/jb/Library/
    合計 0
    drwxr-xr-x 3 root wheel 96 Apr 4 23:50 Frameworks/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 LaunchAgents/
    drwxr-xr-x 5 root wheel 160 Apr 4 23:49 LaunchDaemons/
    drwxr-xr-x 3 root wheel 96 Apr 4 23:50 MobileSubstrate/
    drwxr-xr-x 2 mobile staff 64 Mar 30 02:48 PreferenceBundles/
    drwxr-xr-x 3 mobile staff 96 Apr 4 23:50 PreferenceLoader/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 Preferences/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 Ringtones/
    drwxr-xr-x 2 root wheel 64 Apr 4 23:49 Wallpaper/
    drwxr-xr-x 12 root wheel 384 Apr 4 23:50 dpkg/
    ```

    ### /var/jb is symlink
    ```
    i7:~ mobile% ls -l /var/jb
  2. r-plus renamed this gist Apr 4, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. r-plus revised this gist Apr 4, 2023. 1 changed file with 27 additions and 0 deletions.
    27 changes: 27 additions & 0 deletions note.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    ### mobile user directory
    ```
    i7:~ mobile% pwd
    /var/jb/var/mobile
    ```

    ### mobile user home directory is empty

    ```
    i7:~ mobile% ls -la ~
    合計 0
    drwxr-xr-x 2 mobile mobile 64 Apr 5 00:27 ./
    drwxr-xr-x 19 root wheel 608 Apr 4 23:49 ../
    ```

    ### `/var/mobile/Library/Preferences` directory still writable

    ```
    i7:~ mobile% ls -ld /var/mobile/Library/Preferences
    drwxr-xr-x 300 mobile mobile 9600 Apr 5 00:30 /var/mobile/Library/Preferences/
    ```

    ### /var/jb is symlink
    ```
    i7:~ mobile% ls -l /var/jb
    lrwxr-xr-x 1 root wheel 123 Apr 4 23:49 /var/jb -> /private/preboot/<LONG_RANDOM_ID>/procursus/
    ```
  4. r-plus created this gist Apr 4, 2023.
    6,764 changes: 6,764 additions & 0 deletions var-jb-file-tree.txt
    6,764 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.