Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > iPhone "2G" (Rev. 1) > iPhone OS 3.x

Reply
 
LinkBack Thread Tools Display Modes
  #161 (permalink)  
Old 10-22-2009, 11:17 AM
aviegas's Avatar
aviegas
Status: Offline
The Man
 
Join Date: Sep 2007
Posts: 1,077
Rep Power: 66
aviegas has a spectacular aura aboutaviegas has a spectacular aura aboutaviegas has a spectacular aura about
Default

Quote:
Originally Posted by Olethros View Post
This is also my understanding, and is why I took apart this firmware to look for changes. I still doubt that the original poster got push notifications properly working simply because of this hacked firmware. I cannot find a reason why it would work. I think the devicetree is a red herring and has nothing to do with solving this.

Does anyone know more about the structure of these unique certs? Do you get a new unique cert if you restore your phone and activate again? Is the UDID of the device embedded into the cert at all? There is some good information about which files are critical to push on the forum of the guy who is selling certificates.

Push Fix • View topic - Try this if all else fails
I was looking into that right now.

They are X509 certificates/key pairs in DER format. The problem is that they are signed by Apple, so there is no way to create such certificates other than by proper iTunes controlled Activation.

To illustrate, this is the dump of one of the certificates:

Code:
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            02:81:0b:5d:d0:8c:48:88:19:b5
        Signature Algorithm: sha1WithRSAEncryption
        Issuer: C=US, O=Apple Inc., OU=Apple iPhone, CN=Apple iPhone Device CA
        Validity
            Not Before: Oct 20 02:12:42 2009 GMT
            Not After : Oct 20 02:12:42 2012 GMT
        Subject: CN=F7066122-C872-469D-8B17-9D16E59ED1C4, C=US, ST=CA, L=Cupertino, O=Apple Inc., OU=iPhone
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
            RSA Public Key: (1023 bit)
                Modulus (1023 bit):
                    52:a9:a4:5c:0e:4a:6c:4d:fd:a3:a7:4a:b9:44:08:
                    88:2b:a4:ee:3d:e4:b4:04:0a:4c:bf:3b:1d:65:0a:
                    40:ac:1c:58:a1:c7:d3:5f:43:26:c5:32:c6:ce:e9:
                    c2:11:04:b1:f4:99:e0:fa:f5:fd:00:8e:91:2e:df:
                    b9:23:04:88:f3:a2:14:5e:83:14:47:0e:85:79:d5:
                    fe:58:cf:d0:60:6d:e3:d5:7b:04:10:5e:cf:6d:5d:
                    9a:7d:6d:54:5c:de:60:8a:0f:ca:04:6f:d6:61:f0:
                    c1:ee:dc:eb:91:0b:94:c5:f4:a4:f7:58:c3:97:2c:
                    a8:1a:e1:a2:b0:11:f3:1d
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Authority Key Identifier: 
                keyid:B2:FE:21:23:44:86:95:6A:79:D5:81:26:8E:73:10:D8:A7:4C:8E:74

            X509v3 Subject Key Identifier: 
                FB:56:5C:08:51:8A:1B:CA:59:D7:AA:1F:8F:2B:2D:16:6B:FF:AE:A1
            X509v3 Basic Constraints: critical
                CA:FALSE
            X509v3 Key Usage: critical
                Digital Signature, Key Encipherment
            X509v3 Extended Key Usage: critical
                TLS Web Server Authentication, TLS Web Client Authentication
    Signature Algorithm: sha1WithRSAEncryption
        bf:a3:9e:e8:88:6c:52:0f:4a:5d:c0:13:90:28:48:57:a3:36:
        68:21:bf:0d:9d:a5:31:b1:b5:73:87:78:a3:27:9d:79:5b:a3:
        22:92:c0:57:c5:0d:b5:be:44:17:4f:6d:a5:d5:1f:65:a1:f1:
        31:88:f9:c8:21:9f:57:66:ed:6e:e2:af:0a:50:ef:0f:07:ca:
        30:db:46:b4:d1:6c:3e:1d:e7:b5:21:26:72:97:0d:af:5e:ad:
        76:ca:81:3e:a4:d6:79:0f:b8:06:54:cb:fc:eb:55:3d:bb:7e:
        76:3f:cb:40:5d:49:c9:4f:22:ff:a7:ec:cf:4b:f0:a0:09:54:
        84:7d
In the example, the issuing Certificate Authority is "Apple iPhone Device CA".

There is no "requirement" for the Push server to validate the certificate, and the certificate could be used exclusively as the delivery vessel for the public key and the iPhone identity. Code already exists for this and it's much simpler to use.

I can easily create one of those with a Private CA and give it a shot to see if that is the case.

Last edited by aviegas; 10-22-2009 at 11:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #162 (permalink)  
Old 10-22-2009, 01:22 PM
w9cae
Status: Offline
Member
 
Join Date: Nov 2007
Posts: 52
Rep Power: 4
w9cae is on a distinguished road
Default

In loading winterboard I totally hozed my first gen. So i had to reload the said firmware. And still my push is working. How I know this as my MobileMe account has find my iPhone. If push is not working correctly this function does not work. With this firmware this functions correctly & I am constantly receiving email via push like my legit iPhones.

I wish I could offer more help as to why this firmware is working. I have tried to locate the origination but its been a lost cause. Except I think this firmware was made in Asia possibly Vietnam.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #163 (permalink)  
Old 10-22-2009, 01:45 PM
Olethros
Status: Offline
Moderator
 
Join Date: Sep 2007
Location: Norway
Posts: 684
Rep Power: 38
Olethros is on a distinguished road
Default

Quote:
Originally Posted by w9cae View Post
In loading winterboard I totally hozed my first gen. So i had to reload the said firmware. And still my push is working. How I know this as my MobileMe account has find my iPhone. If push is not working correctly this function does not work. With this firmware this functions correctly & I am constantly receiving email via push like my legit iPhones.
I think you misunderstand. Push mail and push notifications for applications are two separate technologies. We are talking about push notifications for apps. Try to install a free app that supports push notifications (i recommend bargainbin). It has an option to configure "additional notifications" if you turn these all on then you should get some notifications quite quickly.

I can pretty much guarantee this will not work for you on a 2G hacktivated iPhone because as we keep on saying, the hacktivation lacks the proper certificates.

Push email has always worked on hacktivated phones even back in the iPhone OS 2.x days as long as it is properly configured.

There is some talk that the find my iphone feature uses the push notifications feature (when you try and send a message to your missing iPhone) I am not sure how they have implemented this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #164 (permalink)  
Old 10-22-2009, 02:05 PM
w9cae
Status: Offline
Member
 
Join Date: Nov 2007
Posts: 52
Rep Power: 4
w9cae is on a distinguished road
Default

Well I never had either locate me or push email working prior to this firmware. I have installed BargainBin but seem to be having problems making a list to track. I do have AP news which has push & is sending me updates.

Maybe some others with a first gen can load up this firmware & see if it works for them. Then we will know if I was just one off lucky or it is some sort of amazing hack work.

I will agree BargainBin does not work on my first gen but was simple to get working with notification on my 3GS which is not hacked.

Last edited by w9cae; 10-22-2009 at 02:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #165 (permalink)  
Old 10-22-2009, 02:32 PM
Olethros
Status: Offline
Moderator
 
Join Date: Sep 2007
Location: Norway
Posts: 684
Rep Power: 38
Olethros is on a distinguished road
Default

Quote:
Originally Posted by w9cae View Post
Well I never had either locate me or push email working prior to this firmware. I have installed BargainBin but seem to be having problems making a list to track. I do have AP news which has push & is sending me updates.

Maybe some others with a first gen can load up this firmware & see if it works for them. Then we will know if I was just one off lucky or it is some sort of amazing hack work.
Locate me and youtube can be broken due to incorrect hacktivation. I recall that was a bug in one of the first redsn0w versions.

If you have a problem making a list to track, then you have broken push notifications. When you say AP news, I guess you mean AP mobile. Is it really popping up alerts even if you do not have AP mobile app running? I highly doubt it.

I just tested both apps on my 2G iphone which is hacktivated and has broken push notifications. I got the "problem making a list to track" and I have got no alerts from AP mobile despite selecting the US as my region (last I heard was that the other AP mobile regions do not support push notifications yet)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #166 (permalink)  
Old 10-22-2009, 02:51 PM
w9cae
Status: Offline
Member
 
Join Date: Nov 2007
Posts: 52
Rep Power: 4
w9cae is on a distinguished road
Default

I dont get allot of alerts from AP mobile but when I do they are the same as for my legit iPhone.

But BargainBin I cant get it working so, guess your correct there is issue.

I am actually happy my MobileMe functionality & email alerts are now coming through. I can also send a message with locate my iPhone.

I will say this, my 3G iPhone, I put a prepaid sim from the same provider it is locked to, it activates & works. But with the prepaid sim none of the MobileMe or locate me works. YouTube & that is fine.

Anyones guess could be correct, I have had my first gen since launch day. And ran a myriad of hacks to get it working. Since 2.0 I just kept hitting update & it kept working. Then 3.0 came out & gave me hell at one stage I was locked out of my first gen. So for me finding a hacked firmware that now we can say for the most part works. Was cool, if I do find any more info I pop a post here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #167 (permalink)  
Old 10-23-2009, 07:13 PM
aviegas's Avatar
aviegas
Status: Offline
The Man
 
Join Date: Sep 2007
Posts: 1,077
Rep Power: 66
aviegas has a spectacular aura aboutaviegas has a spectacular aura aboutaviegas has a spectacular aura about
Default

Quote:
Originally Posted by Olethros View Post
The only unexplained difference is DeviceTree.m68ap.img3 pwnage tool does not change this file at all but it is definitely changed in the other ipsw. I cannot yet explain why it is changed and because it is a binary file I can't really tell what the changes are.
I think I know the reason why it works (at least for a while): the set of certificates in this custom ipsw is different, and since not many users have installed it, at least for a while it works. As soon as someone another iPhone that shares the same certificates attempts to use Push, it fails.

The problem is the standard hacktivation certificates from pwnagetool and redsnow is that they are the same and tons of iPhones are loaded with them, therefore the chance of certificate conflict is enormous.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #168 (permalink)  
Old 10-30-2009, 01:32 PM
kdhoe
Status: Online
Junior Member
 
Join Date: Mar 2008
Location: Belgium
Posts: 26
Rep Power: 0
kdhoe is on a distinguished road
Default

I think I know how that guy @ pushfix.info makes his "unique" certificates.

He always reactivates an iPhone or iPod Touch. Every iTunes activation generates a new set of certificates. He extracts those certs and sends them to all his "customers"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #169 (permalink)  
Old 10-30-2009, 01:52 PM
volkspost
Status: Offline
iPhone Moderator
 
Join Date: Aug 2007
Posts: 3,576
Rep Power: 212
volkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to allvolkspost is a name known to all
Default

Quote:
Originally Posted by kdhoe View Post
I think I know how that guy @ pushfix.info makes his "unique" certificates.

He always reactivates an iPhone or iPod Touch. Every iTunes activation generates a new set of certificates. He extracts those certs and sends them to all his "customers"
bingo, you got it, I guess
__________________
Read the stickies and search the forum before posting!
If you want to become a Hackint0sh supporter click here
----------
iPhone 3GS factory unlocked (3.1.2; Blackra1n, Cydia, OpenSSH, custom 3.0 ipcc file (no sig), tethering hack by Dev team, 32 GB)
iPhone 3G (3.0.1; Redsn0w 0.8, Cydia, OpenSSH) 16 GB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #170 (permalink)  
Old 10-30-2009, 02:02 PM
Olethros
Status: Offline
Moderator
 
Join Date: Sep 2007
Location: Norway
Posts: 684
Rep Power: 38
Olethros is on a distinguished road
Default

I had the same thought, but he claims to have automated the certificate generation. Does he have a script that grabs the certificate then deletes the appropriate files and triggers a reactivation? He has thoughtfully documented the files required to be deleted for reactivation on his forum.

Won't Apple notice the same device requesting reactivation over and over again and blacklist it?

He's likely stockpiled thousands of certificates already anyway.

Last edited by Olethros; 10-30-2009 at 02:04 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Push Notifications in a JB 2G iPhone imactor iPhone OS 3.x 5 07-07-2009 03:24 AM
Push notifications on iPhone 3g? powerpcougar PwnageTool (3G(S) jailbreak/pwn) 2 06-24-2009 03:26 PM
Official, Consolidated iPhone Hack Unlock Thread freudling General 9 10-31-2008 10:28 AM
[GUIDE] ZiPhone - unlock solution (read the warning 1st post) geircito Older Software Unlock Solution 187 06-17-2008 09:33 PM
Synchronica does not PUSH email for Iphone Noodles General 0 09-20-2007 12:08 AM



All times are GMT +2. The time now is 06:42 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105