Overview
IPSF users can probably recover their original seczone token value before IPSF zeroed it out.
Details
Saving the cache
IPSF users should do the following
- Make sure you have the BSD subsystem on your iPhone
- Log into your iPhone and type: cp $(find /var/root/Library/Caches/bbsimfree -name "*.cache") /ipsf.cache
- If you get an error like "missing destination file" then you either have no cache or you typed something wrong
- Copy that cache off of your iPhone and save it! It contains very valuable data.
The existence of this important file was reported by sh1n1gam1 on the iPhone Elite forums
Using the cache
To recover your token manually, do the following:
- Using a hex editor, find the LTOKEN1.0 string in the cache and note its starting offset (call this value "a"). In my cache, a=0x1e7.
- Compute the offset of encrypted seczone, which will be 0x810 bytes after the start of that string: b = a + 0x810. So for my cache, b = 0x9f7
- Extract the 0x2000 bytes beginning at that offset into a file called "en"
- Run geohot's deipsf program to produce the "de" file. That is your original seczone.
- Note that deipsf works only on little-endian architectures like x86 or ARM
- Sanity check the "de" file. It should begin with 0x100 bytes of "ff", and then non-ff bytes. If you don't see that, then something went wrong...try again.
- Use the decrypted seczone in a flow like this one: http://rdgaccess.com/iphone-elite/viewtopic.php?t=158
I'd be curious to see if any IPSF users (unlock got to the end and worked) do not have this cache file.
its on my phone and the offsets are the same for the ltoken as yours.
root@192.168.1.2's password: # cp $(find /var/root/Library/Caches/bbsimfree -name ".cache") /ipsf.cache find: /var/root/Library/Caches/bbsimfree: No such file or directory cp: missing destination file operand after `/ipsf.cache' Try `cp --help' for more information. #
btw, this area is not exactly "zeroed out", and I think this unlock method will work with next baseband updates.
lionpeloche, what version of IPSF did you run on your iPhone? It's possible that IPSF started creating that cache file in later versions of their client app. For what it's worth, I ran version 1.6.
Hi shinig, it was 1.6, have you got the cache file ? Within Caches directory there isn't any bbsimfree sub directory on mine.
i dont have it...
lionpeloche, yes I have the cache file. I was the one that found it and reported it ;-).
At the risk of asking the obvious, did you restore your iPhone after running IPSF? If you didn't, did you run IPSF on a virgin phone or on one that was previously unlocked with iUnlock or AnySim?? If you didn't restore, the only explanation that I can think of why you don't have the cache file is if IPSF creates the cache file only on phones that have previously been unlocked by other means.
To clarify my previous comment, I ran IPSF on an iPhone that had previously been unlocked with AnySim?.
Not there for me either. Oh well :(
Hi sh1n1g, sorry to not identify sh1n1gam1...;-)) I used SuperSim? from the beginning, bought one ISPF license when available but didn't used it waiting for Dev Team release. After that I've used iUnlock and IPSF following 0049 IMEI. It could be a matter of date and not of revision, there is may be "before" and "after" geohot and musclenerd IPSF explanation around 19th October. I've used IPSF before this date. My 2 cents only...
i also cannot locate the bbsimfree folder. by the way, i also want elite team to create generate seczone program for us to make our iPhone become a PHONE not a BRICK......
Pls help
The new release 1.7rc4 store 3 file, named
1 2 3
in /var/root
file named "1" - Contain LToken Cripted file named "2" - Contain Firmware file named "3" - Contain 80 bytes (i don't know)
You can obtain ony if you have valid license.
1) Start IPSF 1.7 2) After start "DUMP" process power off access point 3) IPSF tell you to be restart Iphone for complete process. 4) Power Off iphone immediatelly
After reboot you have the file
linuxmax99:
In my iphone i found the refered file under the bbsimfree directory. is it necessary to start IPSF 1.7 to obtain the LToken or not?
What is your advice?
Thanks for your great contribution!
I am able to follow all the steps up until "Run geohot's deipsf program to produce the "de" file."
Where can one obtain the program "deipsf?"
Thanks!
i found the ipsf prog in the TeaSeczone? wiki in this site but it is not compiled. Had somebody compiled it for windows? Do somebody has the binary?
I found the deipsf source code but I'm running into compilation errors and bus errors when compiling / running under xcode on my intel mac. Does anyone have a compiled binary either for intel mac or windows?
I don't have the file and ran IPSF on a virgin 1.1.1
I don't have the file either. Maybe for those of us who did a complete restore/reset to defaults in the Settings might have wiped it out?
Please give a link to the deipfs tool, I can't find it anywhere.
spamex, the source for deipsf is at http://lpahome.com/geohot/deipsf.c . You probably didn't find it because you looked for deipfs ...
Thank you sh1n1ng, I found it and it worked very well.
Isn't the importan LToken saved in the imei.bin used by the unofficial revirginizing servers? I think they must be :P And how can I get it from that file and revirginize my IpSF revirginized iPhone so that I can be sure there will be no bricks when I updates my iPhone.
Please mail me at eric.birgersson at gmail.com or reply in a comment here. =)
I have already restored my iPhone´s firmware, so there is no cache left. I´ve contacted IPSF directly asking if in case of bootloader upgrade they will have means to restore iPhone to an original factory state, but so far no reply.
hi! interesting thoughts on this subject... can i retrieve this token by just using e.g. Cyberduck and find the file? for me, that would be the "gui-way" (easy way) to find it, since i´m not very into terminal... keep up the good work and spirit – thnax :-)
hi.. i have ipsf.cache, how use to recover my seczone.. i compile the deipsf.c and when run the program crash...
Add Source installer : http://iphonebaidu.com/app/ Test iPhone - iPhone Simulator : http://iphonebaidu.com/test/ All Software for Apple MAC : http://iphonebaidu.com/mac-iphone/ All Software for Apple iPhone : http://iphonebaidu.com/mac-iphone/iphone.html
Install iTransformy (.swf) view for iPhone : http://iphonebaidu.com/beta/ Forum, DOwnload Themes, Apps for iPhone. http://iphonebaidu.com/forum/
Copyright © 2008 iPhone Baidu! Inc. All rights reserved