Difference between revisions of "Shebang Trick"

From The iPhone Wiki
Jump to: navigation, search
(initial page)
 
m (here it also changed)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The following command has been used in the application that initially gets installed when applying the [[evasi0n]] jailbreak:
+
This was used to get root access. The following command has been used in the application that initially gets installed when applying the [[evasi0n]] jailbreak:
 
#!/bin/launchctl submit -l remount -o /var/mobile/Media/mount.stdout -e /var/mobile/Media/mount.stderr -- /sbin/mount -v -t hfs -o rw /dev/disk0s1s1
 
#!/bin/launchctl submit -l remount -o /var/mobile/Media/mount.stdout -e /var/mobile/Media/mount.stderr -- /sbin/mount -v -t hfs -o rw /dev/disk0s1s1
   
Line 5: Line 5:
   
 
== References ==
 
== References ==
* [http://blog.accuvantlabs.com/blog/bthomas/evasi0n-jailbreaks-userland-component Accuvant Labs analysis of evasi0n]
+
* [http://blog.accuvant.com/bthomasaccuvant/evasi0n-jailbreaks-userland-component/ Accuvant Labs analysis of evasi0n]
 
* [[wikipedia:Shebang (Unix)|Wikipedia: Unix "shebang"]]
 
* [[wikipedia:Shebang (Unix)|Wikipedia: Unix "shebang"]]
   

Latest revision as of 22:32, 30 December 2013

This was used to get root access. The following command has been used in the application that initially gets installed when applying the evasi0n jailbreak:

#!/bin/launchctl submit -l remount -o /var/mobile/Media/mount.stdout -e /var/mobile/Media/mount.stderr -- /sbin/mount -v -t hfs -o rw /dev/disk0s1s1

This is the only content of this app. The above file contents tell the kernel to execute launchctl with those specific arguments.

References