06-26-2004, 01:29 PM | #46 |
Guru
Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
|
attached file for alex
|
06-26-2004, 11:03 PM | #47 |
Member
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
|
Hi Guys,
I am new to this forum and was excited to see that people are really working together to find the PHP version of the google checksum algo. I would also be part of this joint effort and would also love to see the working PHP version. By far and large I know about the checksum calculation is that it is using Hash Function and instead of using the lengthy process if we could translate the Hash Function by Bob Jenkins at : http://burtleburtle.net/bob/c/lookup2.c to PHP it would really work good for us. The Process: GOOGLE_MAGIC = 0xe6359a60 The functions that would be required are: mix(a,b,c) and ub4 hash( k, length, initval) would be called as: hash(url, strlen(url), GOOGLE_MAGIC)); We need to encode the url first. The C version of the urlencode function is as follows: void urlencode(char *u, char *e) { while (*u != '\0') { if (*u == '.') { *e++ = '%'; *e++ = '2'; *e = 'E'; } else if (*u == ':') { *e++ = '%'; *e++ = '3'; *e = 'A'; } else if (*u == '/') { *e++ = '%'; *e++ = '2'; *e = 'F'; } else { *e = *u; } u++; e++; } } I am already working on a C version of the same. And I hope it would be complete soon. I hope this will help. Cheers, CyberaX |
Advert | |
|
06-27-2004, 12:10 AM | #48 |
Member
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
|
Someone who have earlier hacked the Google Toolbar suggested we must also add "info:" before hashing the URL
Cheers, Cyberax Last edited by cyberax; 06-27-2004 at 12:11 AM. Reason: name change |
06-27-2004, 01:09 AM | #49 |
Member
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
|
If I am not wrong then please also try to check the CH value with the following string:
$url = 'info%3Awww%2Edomb%2Ecam'; please revert back on the same. Regards, |
06-27-2004, 01:51 AM | #50 | |
Nameless Being
|
c version works
Quote:
|
|
Advert | |
|
06-27-2004, 04:10 AM | #51 |
Member
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
|
Hey thats gr8 guys
You all are too good |
06-27-2004, 04:16 AM | #52 |
Member
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
|
So now can anyone translate it into a full working PHP code and post it on this forum ?
Try to make the function something like GetGoogleCH("www.cyberax.net") which should return the 11 digit CH value. Looking forward to see that code soon :cool Cheers Cyberax |
06-27-2004, 04:53 AM | #53 |
Guru
Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
|
That is great news... the php script Alex and I were working on will work soon, but of course to have a clean c version of the hash function makes it easier and prettier at the end.
cyberax, how did you find out that the hash function is the one by this Bob Jenkins? |
06-27-2004, 04:56 AM | #54 | |
Guru
Posts: 914
Karma: 3410461
Join Date: May 2004
Device: Kindle Touch
|
Quote:
|
|
06-27-2004, 06:46 AM | #55 |
Enthusiast
Posts: 49
Karma: 123
Join Date: Jun 2004
|
Is that code THE googlechecksum though? It is substanitally different from the google code if im reading it right. In particular the values used for shifting
|
06-27-2004, 06:48 AM | #56 |
Enthusiast
Posts: 49
Karma: 123
Join Date: Jun 2004
|
we still have the slight problem of it producing minus numbers when it shouldnt too. today i will work converting the ASM code to inline MASM assmebly for writing a PHP module
|
06-27-2004, 06:57 AM | #57 |
Member
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
|
Probably I had an intuition about the same
Cyberax |
06-27-2004, 06:58 AM | #58 |
Enthusiast
Posts: 49
Karma: 123
Join Date: Jun 2004
|
do you want to post your C source for the hash function?
|
06-27-2004, 07:14 AM | #59 |
Enthusiast
Posts: 49
Karma: 123
Join Date: Jun 2004
|
thanks. i shal work on turning it into php right now.
|
06-27-2004, 07:20 AM | #60 |
Member
Posts: 22
Karma: 87
Join Date: Jun 2004
Location: India
|
hi alex.. we are all behind you
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Seriously thoughtful Dekker's Algorithm help. | Catire | Lounge | 13 | 03-19-2010 10:03 AM |
Bulk Pagerank Checker Script? | SNaRe | Lounge | 2 | 10-22-2006 04:36 PM |
Google Toolbar Pagerank Checksum Revealed! | Alexander Turcic | Lounge | 5 | 02-17-2006 08:09 AM |
Google Checksum CH calculator | cyberax | Lounge | 2 | 08-17-2004 09:37 PM |