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


Go Back   Hackint0sh > Projects and Hacks > iPhone > General > General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-05-2007, 06:44 AM
The Operator
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 199
Rep Power: 14
The Operator will become famous soon enough
Default Java version of DVD Jon's Phone Activation Server

For all the iPhone Mac users out there, I've taken one step towards not needing Windows to use DVD Jon's method for activation. I ported his Phone Activation Server application from C# to Java.

Here's a link to the executable JAR file (double-click to run it on Mac OS X - remember to shut down any running web server first though):

*removed* - see post #17 for newer version

And here's a link to the Java source code (zipped):

*removed* - see post #17 for newer version

Unfortunately, I don't have a locked iPhone I can test it with. So if someone wants to give it a go, please report back as to whether it works or not (it also runs on Windows - so you can follow DVD Jon's method and use this version of the server instead).

Also, if anyone would like to host those files somewhere better, feel free to do so (as long as they are kept unmodified).

Now we just need to figure out some magic hexadecimal changes to iTunes for Mac... where's a Mac version of SoftICE when you need it?

Last edited by The Operator; 07-06-2007 at 07:46 AM. Reason: Removed links to old version
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-05-2007, 08:47 AM
shiney
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 80
Rep Power: 7
shiney is on a distinguished road
Default

Quote:
Originally Posted by The Operator View Post
For all the iPhone Mac users out there, I've taken one step towards not needing Windows to use DVD Jon's method for activation. I ported his Phone Activation Server application from C# to Java.

Here's a link to the executable JAR file (double-click to run it on Mac OS X - remember to shut down any running web server first though):

http://www.yousendit.com/download/OG...TStsamMwTVE9PQ

And here's a link to the Java source code (zipped):

http://www.yousendit.com/download/OG...cGtsamMwTVE9PQ

Unfortunately, I don't have a locked iPhone I can test it with. So if someone wants to give it a go, please report back as to whether it works or not (it also runs on Windows - so you can follow DVD Jon's method and use this version of the server instead).

Also, if anyone would like to host those files somewhere better, feel free to do so (as long as they are kept unmodified).

Now we just need to figure out some magic hexadecimal changes to iTunes for Mac... where's a Mac version of SoftICE when you need it?

hey dude...umm sorry i cant test i too dont have a iphone though can u just provide me with a link to softice for windows vista...i searched all over but couldnt find it..thanx!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-05-2007, 12:43 PM
The Operator
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 199
Rep Power: 14
The Operator will become famous soon enough
Default

Quote:
Originally Posted by shiney View Post
hey dude...umm sorry i cant test i too dont have a iphone though can u just provide me with a link to softice for windows vista...i searched all over but couldnt find it..thanx!
No, sorry, I'm predominantly a Mac user (hence the need for a Mac version of DVD Jon's method).

I've only used SoftICE/DriverStudio on 98/2000/XP. Here's a page you might find interesting though:

http://en.wikipedia.org/wiki/Softice

Looks like SyserDebugger is what you're looking for on Vista.
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

  #4 (permalink)  
Old 07-05-2007, 06:17 PM
jopari
Status: Offline
Junior Member
 
Join Date: Mar 2007
Posts: 28
Rep Power: 0
jopari is on a distinguished road
Default

For mac users, perhaps Oxed will work?

[Edit: Well, maybe I was doing something wrong, but I was unable to find Dvd John's "magic numbers". Guess they're different for the Mac version?]

Last edited by jopari; 07-05-2007 at 06:30 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
  #5 (permalink)  
Old 07-05-2007, 06:59 PM
The Operator
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 199
Rep Power: 14
The Operator will become famous soon enough
Default

Quote:
Originally Posted by jopari View Post
For mac users, perhaps Oxed will work?
Yeah, I just downloaded that. I've been using Hex Fiend though, which works ok too. But a hex editor is no replacement for a low-level debugger with the power of SoftICE.

Quote:
[Edit: Well, maybe I was doing something wrong, but I was unable to find Dvd John's "magic numbers". Guess they're different for the Mac version?]
I took a look at where he patched iTunes.exe on Windows and there's nothing which stands out about those locations (ie. they're not simple string replacements). So they must be code patches, which obviously won't translate simply to the Mac version of iTunes.

I've found some "interesting" strings in the Mac version, and am planning to see where those strings are being used in the code. Unfortunately, not having an iPhone makes it very difficult since I can't use gdb (because I have no way to attempt activation). I tried scanning for obvious function names using nm, but I don't see anything.

One easy thing to check (if I had a locked iPhone) would be to see if my Java version of the Phone Activation Server works with the Mac version of iTunes without modification. That would be nice (but highly doubtful). There were a couple of error strings in there regarding a signature from the server (which Jon mentions in his blog as well). So I'm guessing that his patches bypass the need for that signature...

Last edited by The Operator; 07-06-2007 at 07:47 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
  #6 (permalink)  
Old 07-05-2007, 08:35 PM
exNavy
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 136
Rep Power: 9
exNavy is on a distinguished road
Default

I was hoping someone would offer this crack for Mac people. Good luck Operator!
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

  #7 (permalink)  
Old 07-05-2007, 08:45 PM
The Operator
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 199
Rep Power: 14
The Operator will become famous soon enough
Default

omg, otx is a genius piece of software... I can see through time... but I'm still running blind. If only I had an iPhone to test with.

PM me if you have a locked iPhone and can help out. I really need to see what error message comes up when the Mac version of iTunes tries to activate with my app.

Basically, what you'd need to do (on Mac) is:

1) Edit /etc/hosts and add "127.0.0.1 albert.apple.com". You'll probably need to be root to do this.
2) Disconnect from the internet (just to be safe)
3) Shut down Personal Web Sharing in System Prefs->Sharing
4) Run my Java app (as root). Easiest way is to open a Terminal, cd to the directory where you saved the JAR file, and type: "sudo java -jar PhoneActSrv.jar"
5) Try to activate your iPhone via iTunes (using any information)

You _should_ get a "Server Activation Error" message popping up. I need to know what that message is.

Last edited by The Operator; 07-05-2007 at 11:19 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
  #8 (permalink)  
Old 07-05-2007, 10:47 PM
cyt0plas
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 10
Rep Power: 0
cyt0plas is on a distinguished road
Default

For some reason, it couldn't bind to 127.0.0.1, even though I have no HTTP server running there.

A netstat showed that it did bind to the wireless adapter, on IP 192.168.1.101. It also didn't like running as a non-priveleged user - I supect it's the whole "priveleged port" thing going on.

So, changed /etc/hosts, and ran "lookupd -flushcache". Verified that a connection to albert.apple.com:80 works as expected.

I get the error: "We could not complete your iTunes store request. The network connection was refused."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 07-05-2007, 10:49 PM
cyt0plas
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 10
Rep Power: 0
cyt0plas is on a distinguished road
Default

I think I see the problem. The binary version of the windows activator has a key hidden inside it. That key is missing in the source.
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

  #10 (permalink)  
Old 07-05-2007, 10:58 PM
The Operator
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 199
Rep Power: 14
The Operator will become famous soon enough
Default

Quote:
Originally Posted by cyt0plas View Post
For some reason, it couldn't bind to 127.0.0.1, even though I have no HTTP server running there.

A netstat showed that it did bind to the wireless adapter, on IP 192.168.1.101. It also didn't like running as a non-priveleged user - I supect it's the whole "priveleged port" thing going on.
Yeah, I forgot to mention that you need to be root to run it.

So it seems like the problem is that it bound to the wrong network interface. That should be pretty easy to fix.

Quote:
I get the error: "We could not complete your iTunes store request. The network connection was refused."
This is because the server is bound to the wrong interface. So there's nothing handling connections on loopback (127.0.0.1).

Lemme fix that and try a new version.
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
how do i unlock a 16GB iphone?? skyline_2k7 Older Software Unlock Solution 6 10-12-2009 02:16 PM
[Tutorial] How to easily unlock OTB 1.1.2 and 1.1.3 GeeZuZz Older Software Unlock Solution 629 12-09-2008 01:03 PM
Virginized but can't activate amagab Older Software Unlock Solution 3 10-27-2007 05:18 AM
phone activation server error cjakobp General 3 07-17-2007 02:22 AM



All times are GMT +2. The time now is 02:14 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