通过网络协议破解iPhone和iPod文件系统结构
时间:2007-11-12 11:26:48 来源:注册机之家 作者:软件新闻
AFP guest on the iphone
Need to connect as guest at the moment - I need to work on the auth.
it also only uses the mtab backend, but for now it will be ok - we can read and write ok
Thanks to drudge of http://conceitedsoftware.com/iphone/site/
for asking about this, he has packaged most of the stuff on this site from start to end!
19:19 < drudge> how about something using the afp
[ ] afpd.tgz 05-Nov-2007 21:08 131K
21:28 < core> not bad from question to a working web page in two hours :)
So to the code
Extract the tar.gz file to /opt/iphone/afp/
Then just:
/opt/iphone/afp/startserver.sh
Should start the daemon
Then back over on the mac:


imac /afpd/ df -H /Volumes/test\ folder/
Filesystem Size Used Avail Capacity Mounted on
afp_2nBRVm2nBRVm2nBRVm2nBRVm-1.2d000007 7.8G 7.2G 609M 92% /Volumes/test folder
imac /afpd/ touch /Volumes/test\ folder/test
imac /afpd/ time dd if=/dev/zero of=/Volumes/test\ folder/test.dat bs=1024 count=100
100+0 records in
100+0 records out
102400 bytes transferred in 0.000856 secs (119636972 bytes/sec)
0.000u 0.003s 0:00.23 0.0% 0+0k 0+1io 0pf+0w
imac /afpd/ ls -ltra /Volumes/test\ folder/
total 256
drwxrwxrwx 2 core core 264 Nov 5 20:36 Temporary Items
drwxrwxrwx 2 core core 264 Nov 5 20:36 Network Trash Folder
drwxrwxrwt 7 root admin 238 Nov 5 20:47 ..
-rwxrwxrwx 1 core core 0 Nov 5 20:48 test
-rwxrwxrwx 1 core core 102400 Nov 5 20:48 test.dat
drwxrwxrwx 7 core core 264 Nov 5 20:48 .
-rwxrwxrwx 1 core core 6148 Nov 5 20:48 .DS_Store
imac /afpd/ md5 /Volumes/test\ folder/test.dat
MD5 (/Volumes/test folder/test.dat) = 4c6426ac7ef186464ecbb0d81cbfcb1e
Back on the iphone:
# md5 /tmp/test/test.dat
4c6426ac7ef186464ecbb0d81cbfcb1e /tmp/test/test.dat
Result!
You can change the export by editing this file:
# cat /opt/iphone/afp/etc/netatalk/AppleVolumes.system
/tmp/test "test folder" cnidscheme:mtab
Remember that the daemon runs as nobody, so currently can only see chmod 777 areas :)
Real world speed tests, 2+ seconds for a 3.1MB file:
imac /Flood/ time cp 02\ Birdhouse\ in\ Your\ Soul.m4p /Volumes/iPhone\ Root/
0.000u 0.036s 0:02.85 1.0% 0+0k 0+0io 0pf+0w
imac /Flood/ du -h 02\ Birdhouse\ in\ Your\ Soul.m4p
3.1M 02 Birdhouse in Your Soul.m4p 本文来自注册机之家



文章评论
共有 0位注册机之家成员发表了评论 查看完整内容