Created
May 12, 2011 14:23
-
-
Save telent/968586 to your computer and use it in GitHub Desktop.
The case of the incredible disappearing file ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GingerBreak got me a shell with uid 0. Now what? | |
/proc/mounts says | |
/dev/block/mmcblk0p25 /system ext4 ro,relatime,barrier=1,data=ordered 0 0 | |
# mount -o remount,rw /dev/block/mmcblk0p25 /system | |
# cat /system/bin/sh > /system/rootsh | |
# chmod 4711 /system/rootsh | |
# ls -l /system/rootsh | |
-rws--x--x root shell 82840 2011-05-12 15:08 rootsh | |
# sync;sync | |
# sync;sync | |
# ls -l /system/rootsh | |
-rws--x--x root shell 82840 2011-05-12 15:08 rootsh | |
# mount -o remount,rw /dev/block/mmcblk0p25 /system | |
# ls -l /system/rootsh | |
-rws--x--x root shell 82840 2011-05-12 15:08 rootsh | |
# mount -o remount,ro /dev/block/mmcblk0p25 /system | |
# ls -l /system/rootsh | |
/system/rootsh: No such file or directory | |
It's gone!? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If anyone should stumble across this and wonder what the problem was: the hardware device is write-protected but not in a way that linux can detect
http://ww.telent.net/2011/5/15/desire_s_don_t