Clan x86

Technical (Development, Security, etc.) => General Programming => Botdev => Topic started by: Ryan Marcus on September 24, 2005, 03:50:37 PM

Title: 0x50 (Again)
Post by: Ryan Marcus on September 24, 2005, 03:50:37 PM
I feel like a moron.. I finally decided to move away from RCRS because I was too lazy to do local hashing, and now I can't even get past 0x50.. grrr...

Well, here is the packet log

Quote

Send data (58 bytes).
<00000000< FF 50 3A 00  00 00 00 00  43 41 4D 58  56 44 32 44  .P:.....CAMXVD2D
<00000010< 0B 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
<00000020< 00 00 00 00  00 00 00 00  55 53 41 00  55 6E 69 74  ........USA.Unit
<00000030< 65 64 20 53  74 61 74 65  73 00                     ed States.


I am instantly disconnected.

I checked with my local copy of bnetdocs, here is the packet format:

(DWORD)          Protocol ID (0)
(DWORD)          Platform ID
(DWORD)          Product ID
(DWORD)          Version Byte
(DWORD)          Product language
(DWORD)          Local IP for NAT compatibility*
(DWORD)          Time zone bias*
(DWORD)          Locale ID*
(DWORD)          Language ID*
(STRING)         Country abreviation
(STRING)         Country

My original though was that it was a version byte problem, but I doubt it.. Here is the response from a JBLS server:
Quote
Receive data (11 bytes).
>000000A3> 0B 00 10 04  00 00 00 0B  00 00 00                  ...........

Thanks in advance!
Title: Re: 0x50 (Again)
Post by: Joe on September 24, 2005, 04:15:02 PM
This (http://www.javaop.com/~joe/VB6/BNLS%20Data%20Retreiver.zip) might help.
Title: Re: 0x50 (Again)
Post by: Hdx on September 24, 2005, 05:04:29 PM
Hurm I think the problem is that macs dont repost the Country info.
Also, if your going to use any remote hashing server you need to use IX86 not mac.
I should add support for Mac hashes but there no where to find them!
Also.. theres no reason to use xmac. it dosent change anything, so on a bot you can do IX86
also, mind sending me a copy of your 'local BNet Docs'?
~-~(HDX)~-~
Title: Re: 0x50 (Again)
Post by: Joe on September 24, 2005, 05:07:29 PM
Yeah, I don't think BNLS or JBLS support XMAC (or PMAC) for CheckRevision().
Title: Re: 0x50 (Again)
Post by: Ryan Marcus on September 24, 2005, 05:37:48 PM
@ Joe's Post #1: I use a mac, not a computer of the evil empire. I have a BNLS tester though.
@ HDX: Alright I will give that a shot. I will send you my bnetdocs in a minute.
@ Joe's Post #2: BNLS supports XMAC.

[edit]
For anybody, you can download bnetdocs here: http://aero-net1.com/luxer/bnetdocs.valhallalegends.com.zip

Should work in about 2 minutes.
Title: Re: 0x50 (Again)
Post by: Ryan Marcus on September 24, 2005, 05:56:53 PM
Alright, switched mode to IX86/68XI.. Still having the same problem:


Quote
Send data (58 bytes).
<00000000< FF 50 3A 00  00 00 00 00  36 38 58 49  56 44 32 44  .P:.....68XIVD2D
<00000010< 0B 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
<00000020< 00 00 00 00  00 00 00 00  55 53 41 00  55 6E 69 74  ........USA.Unit
<00000030< 65 64 20 53  74 61 74 65  73 00                     ed States.
[/pre]
Title: Re: 0x50 (Again)
Post by: Hdx on September 24, 2005, 06:00:57 PM
stupied question.
Are you sending the protocol byte?
~-~(HDX)~-~
Title: Re: 0x50 (Again)
Post by: Ryan Marcus on September 24, 2005, 06:02:45 PM
I think so.. its just supposed to be 4 nulls, right?

Quote

Send data (58 bytes).
<00000000< FF 50 3A 00  00 00 00 00  36 38 58 49  56 44 32 44  .P:.....68XIVD2D
<00000010< 0B 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
<00000020< 00 00 00 00  00 00 00 00  55 53 41 00  55 6E 69 74  ........USA.Unit
<00000030< 65 64 20 53  74 61 74 65  73 00                     ed States.

Title: Re: 0x50 (Again)
Post by: Hdx on September 24, 2005, 06:06:33 PM
No, before your send ANYTHING to bnet, you need to send 0x01 (.Send Chr(&H1))
Also send me a copy of BnetDocs that you have.
~-~(HDX)~-~
Title: Re: 0x50 (Again)
Post by: Ryan Marcus on September 24, 2005, 06:10:02 PM
OMG!!! AH! I FEEL SO STUPID! AHH!

I am totally flipping out! GA!

It works now..

Quote

Send data (58 bytes).
<00000001< FF 50 3A 00  00 00 00 00  36 38 58 49  56 44 32 44  .P:.....68XIVD2D
<00000011< 0B 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
<00000021< 00 00 00 00  00 00 00 00  55 53 41 00  55 6E 69 74  ........USA.Unit
<00000031< 65 64 20 53  74 61 74 65  73 00                     ed States.

Receive data (8 bytes).
>00000000> FF 25 08 00  42 58 F8 34                            .%..BX.4

Receive data (99 bytes).
>00000008> FF 50 63 00  00 00 00 00  95 48 3A F7  97 5C 17 00  .Pc......H:..\..
>00000018> 00 AC 41 43  25 0B C5 01  49 58 38 36  76 65 72 32  ..AC%...IX86ver2
>00000028> 2E 6D 70 71  00 41 3D 37  37 30 34 35  35 34 36 34  .mpq.A=770455464
>00000038> 20 42 3D 37  33 36 32 38  34 38 30 38  20 43 3D 38   B=736284808 C=8
>00000048> 37 37 36 32  39 37 34 39  20 34 20 41  3D 41 5E 53  77629749 4 A=A^S
>00000058> 20 42 3D 42  5E 43 20 43  3D 43 2B 41  20 41 3D 41   B=B^C C=C+A A=A
>00000068> 2D 42 00                                            -B.



Grrr... I feel so dumb.. Thanks.
Title: Re: 0x50 (Again)
Post by: Hdx on September 24, 2005, 06:17:05 PM
Now thats solved. Can you send me a copy of your local bnet docs cuz arta's is down.
e-mail: hdxbmx27@gmail.com
~-~(HDX)~-~
Title: Re: 0x50 (Again)
Post by: Ryan Marcus on September 24, 2005, 06:28:32 PM
Sent, with a extra question :)
Title: Re: 0x50 (Again)
Post by: Hdx on September 24, 2005, 06:37:38 PM
Quote
I am sending:
Send data (12 bytes).
<00000007< 0C 00 09 04  00 00 00 03  00 00 00 00
............
Dude.. thes an invalid packet format...
your missing quite a few things from it. Consult your bnetdocs :/
~-~(HDX)~-~
Title: Re: 0x50 (Again)
Post by: Ryan Marcus on September 24, 2005, 06:56:05 PM
Your right.. Sorry to bug you. Fixed:

Quote

Send data (73 bytes).
<00000007< 49 00 09 04  00 00 00 01  00 00 00 41  3D 31 30 32  I..........A=102
<00000017< 30 35 34 34  39 31 20 42  3D 39 37 34  30 37 37 37  054491 B=9740777
<00000027< 34 34 20 43  3D 34 39 32  33 32 32 34  32 33 20 34  44 C=492322423 4
<00000037< 20 41 3D 41  5E 53 20 42  3D 42 5E 43  20 43 3D 43   A=A^S B=B^C C=C
<00000047< 2D 41 20 41  3D 41 2D 42  00                        -A A=A-B.

Receive data (50 bytes).
>000000AE> 32 00 09 01  00 00 00 00  0B 00 01 8E  C5 C8 07 67  2..............g
>000000BE> 61 6D 65 2E  65 78 65 20  30 37 2F 31  36 2F 30 35  ame.exe 07/16/05
>000000CE> 20 31 38 3A  31 31 3A 34  34 20 32 31  32 35 38 32   18:11:44 212582
>000000DE> 34 00                                               4.

Title: Re: 0x50 (Again)
Post by: Eric on September 24, 2005, 10:28:27 PM
Side note: BNLS does not have support for Macintosh.
Title: Re: 0x50 (Again)
Post by: Joe on September 25, 2005, 01:49:38 AM
QuoteSide note: BNLS does not have support for Macintosh.

QuoteYeah, I don't think BNLS or JBLS support XMAC (or PMAC) for CheckRevision().
Title: Re: 0x50 (Again)
Post by: rabbit on September 25, 2005, 10:04:51 AM
Side note: BNCSutil does.
Title: Re: 0x50 (Again)
Post by: Hdx on September 25, 2005, 10:20:17 AM
Well, does anyone in here know where I can get a Mac EMU and get the mac vers of each game? If so I'll work on getting  class writtin up for Mac version files handeling. But i dont wana do it unless I can steadly get the mac hashes for myself :/
~-~(HDX)~-~
Title: Re: 0x50 (Again)
Post by: MyndFyre on September 26, 2005, 11:35:43 AM
Quote from: HdxBmx27 on September 25, 2005, 10:20:17 AM
Well, does anyone in here know where I can get a Mac EMU and get the mac vers of each game? If so I'll work on getting  class writtin up for Mac version files handeling. But i dont wana do it unless I can steadly get the mac hashes for myself :/
~-~(HDX)~-~

You can get PearPC (http://pearpc.sourceforge.net/) and buy Mac OS X.  The Mac versions of the games are on the product CDs.
Title: Re: 0x50 (Again)
Post by: Hdx on September 26, 2005, 07:29:01 PM
Dude. that is cool.
Few things tho. How do you install a OS onto one of the images?
So that I can boot into say Mac OSx. Also, does it support any type of linux emulation?
Wel.. I found this (http://wiki.pearpc.net/index.php/InstallTigerWithoutPanther)
But it dosent tell me how to fix the ripped image on Windows.. so. any ideas?
~-~(HDX)~-~