The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-17-2007, 07:02 PM
Drakenza's Avatar
Developer
 
Join Date: Oct 2007
Device + Firmware: iPhone 3G/3GS, 3.0
Operating System: Mac OS X Leopard / Ubuntu
Posts: 211
Thanks: 1
Thanked 106 Times in 55 Posts
[HOW-TO] Be a Firmware Fraud ;)

Hey all,
I had a little free time and was rooting through my iPhone's folders with WinSCP and I came across a fun little plist.

With said plist and a little hackery, the following can be achieved:

A fake, albeit convincing, restore image:
Click the image to open in full size.

Fooling iTunes:
Click the image to open in full size.

Real iPhone Snapshots:
Click the image to open in full size.

I promise you, none of the above have been doctored in any way other than to remove sensitive information.
This is extremely easy to do:

1. Making the fake firmware file:
All you need to do is take any large file and zip it, then name the zip file to "ipsw." For my screenshot I took the 1.1.1 ipsw, renamed it to zip, unzipped it, then rezipped the new file with a lower compression in order to obtain a larger file size, and finally renamed it.

2. Modifying the plist on your iPhone:
SSH into your iPhone and navigate to "/System/Library/CoreServices"
In this folder, there's a file called "SystemVersion.plist" which is what we edit. That plist looks something like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BasedOn</key>
	<string>Whatever It's based on</string>
	<key>ProductBuildVersion</key>
	<string>Your Firmware's build number</string>
	<key>ProductCopyright</key>
	<string>1983-2007 Apple Inc.</string>
	<key>ProductName</key>
	<string>OS X</string>
	<key>ProductVersion</key>
	<string>Your firmware's version</string>
</dict>
</plist>
The two bold values are what you need to edit. Apple iPhone firmware numbers typically follow this sort of format: #X###x ("#" being a number and "X" and "x" being upper- and lower-case letters). For example, 3A109a is 1.1.1's build number.

3. Taking fake screenshots and distributing them:
Reboot your iPhone and plug it into iTunes, which will see it as whatever firmware you set it as. Now you can take screenshots of iTunes, of your fake ipsw, and of your iPhone using the snap utility by Erica Sadun. Now all you have to do is send a few emails, and you're world famous for having cracked Apple's databases, stolen partially-developed firmware, and jailbreaking it And when everyone starts yelling that you Photoshopped the images, you can honestly say that they're completely real.

Have fun
I'll go back to working on iDemocracy now

-- Drakenza

Disclaimer:
Don't really try to get famous by faking screenshots of a new firmware. This tutorial is just for fun... If you get sued by Apple or hated by the MMi community or whatever, you can't hold me responsible.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to Drakenza For This Useful Post:
jimmytim (11-17-2007)
  #2  
Old 11-17-2007, 10:25 PM
jimmytim's Avatar
What's Jailbreak?
 
Join Date: Oct 2007
Location: Oz
Posts: 9
Thanks: 3
Thanked 2 Times in 1 Post

You...are...cool!
I wonder if this stops itunes from doing auto firmware updates.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 11-18-2007, 01:04 AM
My iPhone is a Part of Me
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.4
Operating System: Vista
Location: Heart&soul@Israel, USA
Posts: 582
Thanks: 7
Thanked 44 Times in 36 Posts

hah, can u edit the # of firmware with letters?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 11-18-2007, 01:18 AM
ReVan's Avatar
iPhoneaholic
 
Join Date: Oct 2007
Location: BOOTLOADER
Posts: 454
Thanks: 6
Thanked 523 Times in 109 Posts

Yes, this stop iTunes from Updates. Can be risky when you need to restore your phone during a phone crash. Chances are that it might not detect or perform the right measures during the DFU mode.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 11-18-2007, 01:35 AM
Drakenza's Avatar
Developer
 
Join Date: Oct 2007
Device + Firmware: iPhone 3G/3GS, 3.0
Operating System: Mac OS X Leopard / Ubuntu
Posts: 211
Thanks: 1
Thanked 106 Times in 55 Posts

you can put anything in for the firmware, it's just a string.

And it will stop autoupdates (which could be a blessing in disguise) but doesn't mess with DFU and is totally reversible as far as I've tested.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 11-18-2007, 09:56 AM
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone, 1.2.0-ChronicOS
Operating System: XP + Ubuntu
Posts: 190
Thanks: 20
Thanked 51 Times in 31 Posts

Yeah I found this a little while ago too - You got me all excited there though because I thought you found a way to recompress a doctored iPhone firmware
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 11-18-2007, 12:15 PM
Drakenza's Avatar
Developer
 
Join Date: Oct 2007
Device + Firmware: iPhone 3G/3GS, 3.0
Operating System: Mac OS X Leopard / Ubuntu
Posts: 211
Thanks: 1
Thanked 106 Times in 55 Posts

@King Chronic: No, but interestingly enough I've been trying with doctored firmware images. I hit a hard stop at one "error 6". I'm thinking iTunes obviously checksums or looks for a signature or something which gets blown away due to de-/re-compressing the ipsw file. One approach would be to just disassemble iTunes and patch the checker but I'm thinking that's illegal
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 11-18-2007, 12:39 PM
redcard's Avatar
Livin the iPhone Life
 
Join Date: Oct 2007
Device + Firmware: 3G 2.2
Operating System: Vista Ultimate
Location: Scotchland
Posts: 1,920
Thanks: 7
Thanked 175 Times in 158 Posts

Quote:
Originally Posted by jimmytim View Post
You...are...cool!
I wonder if this stops itunes from doing auto firmware updates.
But itunes doesnt do 'auto' firmware upgrades
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9  
Old 11-18-2007, 05:38 PM
My iPhone is a Part of Me
 
Join Date: Jul 2007
Device + Firmware: 3G 2.1
Operating System: XP/OSX 10
Location: Orlando FL
Posts: 765
Thanks: 17
Thanked 23 Times in 22 Posts

Ha Ha Ha Ha Ha Ha Ha Ha Ha Ha
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 12-02-2007, 02:16 PM
theone77's Avatar
iPhoneaholic
 
Join Date: Oct 2007
Device + Firmware: IpHoNe Classic 2.2.1
Operating System: Windows Ultimate Vista
Location: PlaNeT Earth in the Middle Part
Posts: 418
Thanks: 39
Thanked 255 Times in 103 Posts

Great ONE!!! can i have a build number of 1.1.2?

im using 1.1.1 but now im using 1.1.2 accdg to my itunes/about..LOL
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 12-03-2007, 04:15 AM
Imahottguy's Avatar
Livin the iPhone Life
 
Join Date: Jul 2007
Device + Firmware: 3G[s] JB redsn0w 0.8
Operating System: Win XP
Location: Lansing, MI, USA
Posts: 1,200
Thanks: 42
Thanked 77 Times in 62 Posts
Send a message via MSN to Imahottguy

Pre-modded f/w would be awesome. This way, n00bs couldn't screw up that bad

Nice find btw!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12  
Old 12-03-2007, 07:07 PM
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone, 1.2.0-ChronicOS
Operating System: XP + Ubuntu
Posts: 190
Thanks: 20
Thanked 51 Times in 31 Posts

Quote:
Originally Posted by Drakenza View Post
@King Chronic: No, but interestingly enough I've been trying with doctored firmware images. I hit a hard stop at one "error 6". I'm thinking iTunes obviously checksums or looks for a signature or something which gets blown away due to de-/re-compressing the ipsw file. One approach would be to just disassemble iTunes and patch the checker but I'm thinking that's illegal
True, but who would know you patched it?

Perhaps Apple compressed it in a certain way that it is readable by Stuffit/WinRAR (Whether you are on Mac/Win respectively), but also in a way that cannot be reproduced by the above programs
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13  
Old 12-05-2007, 10:33 PM
Drakenza's Avatar
Developer
 
Join Date: Oct 2007
Device + Firmware: iPhone 3G/3GS, 3.0
Operating System: Mac OS X Leopard / Ubuntu
Posts: 211
Thanks: 1
Thanked 106 Times in 55 Posts

Quote:
Originally Posted by King Chronic View Post
True, but who would know you patched it?

Perhaps Apple compressed it in a certain way that it is readable by Stuffit/WinRAR (Whether you are on Mac/Win respectively), but also in a way that cannot be reproduced by the above programs
If Apple wrote their own compression algorithm I doubt they would make it readable by anything other than iTunes. The fact that WinZip, WinRAR, Stuffit, and all the various other programs can extract ipsw files indicates that they're standard ZIPs. However, the degree of compression is not known.
I'm going to try to get the MD5 hash of a clean IPSW, unzip it, rezip it on various compressions, and compare hashes.
It's also very possible that iTunes doesn't care at all about the MD5 and rather, during that extraction phase, it goes through the file list and looks for non-Apple files.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14  
Old 12-06-2007, 03:34 PM
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone, 1.2.0-ChronicOS
Operating System: XP + Ubuntu
Posts: 190
Thanks: 20
Thanked 51 Times in 31 Posts

I was looking around in the dev wiki today and appearently people have been trying to do this, but the only problem is, iTunes doesn't like the fact that the modded DMG wasn't re-encrypted. It looks like it sort of came to a halt at that point...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15  
Old 12-07-2007, 06:42 PM
Kyle Matthews's Avatar
Owner / Founder - ModMyi
aka poetic_folly
 
Join Date: May 2007
Device + Firmware: iPhone 3G[S] | 3.0 | Jailbroke
Operating System: OS X Leopard 10.6.2
Location: Tampa, FL. Used to be Seattle.
Posts: 8,384
Thanks: 295
Thanked 2,623 Times in 855 Posts
Send a message via AIM to Kyle Matthews

Yah, while this is just a fun joke, being able to distribute (non-officially, of course ) pre-modded firmwares would be a fun, although dangerous (imagine the n00bs trying and getting jacked up stuff on folks phones) hack. Reminiscent of the PSP modding scene.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 07:44 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top