• Welcome to Valhalla Legends Archive.
 

SSHR Login Help

Started by FrostWraith, May 28, 2006, 01:17 AM

Previous topic - Next topic

FrostWraith

I know SSHR is virtually useless, but nonetheless I'd like to log on with it. I get no response with this code.

Private Sub ws_Connect()
Set obj = CreateObject("WScript.NetWork")
    AddChat vbGreen, "[BNCS] Connected"
   
  buffer.InsertDWORD &H0
  buffer.InsertDWORD &H0
  buffer.InsertDWORD &H0
  buffer.InsertDWORD &H0
  buffer.InsertNTString obj.ComputerName
  buffer.InsertNTString obj.UserName
    buffer.SendPacket &H5
   
  buffer.InsertDWORD &H49583836 'IX86
  buffer.InsertDWORD &H53534852 'SSHR
  buffer.InsertDWORD &HA5
  buffer.InsertDWORD &H0
    buffer.SendPacket &H6
End Sub

FrOzeN

buffer.InsertDWORD &H53534852 'SSHR
Shouldn't "SSHR" be reversed?
buffer.InsertDWORD &H52485353 'RHSS (SSHR)
~ FrOzeN

MyndFyre

You didn't send the protocol byte (1).
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Hero

Quote from: MyndFyre[vL] on May 28, 2006, 04:01 AM
You didn't send the protocol byte (1).
Some people send it right before they send SID_AUTH_INFO, or SID_CLIENTID.

Yegg

Quote from: HeRo on May 28, 2006, 03:50 PM
Quote from: MyndFyre[vL] on May 28, 2006, 04:01 AM
You didn't send the protocol byte (1).
Some people send it right before they send SID_AUTH_INFO, or SID_CLIENTID.

I'm going to guess that what MyndFyre mentioned is the way the game client does it. It is better to conform to the ways of the game client as opposed to your own ways, regardless if it works. Not sure if I know what I'm talking about by the way. :P

Joe[x86]

Quote from: HeRo on May 28, 2006, 03:50 PM
Quote from: MyndFyre[vL] on May 28, 2006, 04:01 AM
You didn't send the protocol byte (1).
Some people send it right before they send SID_AUTH_INFO, or SID_CLIENTID.

Well, incase you are totally oblivious to the way Visual Basic sockets work, let me fill you in. The _Connect() method of Winsock happens right when the server ACK's the connection, and then he sends 0x05 (SID_CLIENTID). He's not sending the 0x01 byte before SID_CLIENTID.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Networks

Quote from: FrostWraith on May 28, 2006, 01:17 AM
I know SSHR is virtually useless, but nonetheless I'd like to log on with it. I get no response with this code.

Being able to create accounts on battle.net without a cdkey? SSHR isn't useless to me.

FrostWraith


Hero

Quote from: J on May 28, 2006, 04:22 PM
Quote from: HeRo on May 28, 2006, 03:50 PM
Quote from: MyndFyre[vL] on May 28, 2006, 04:01 AM
You didn't send the protocol byte (1).
Some people send it right before they send SID_AUTH_INFO, or SID_CLIENTID.

Well, incase you are totally oblivious to the way Visual Basic sockets work, let me fill you in. The _Connect() method of Winsock happens right when the server ACK's the connection, and then he sends 0x05 (SID_CLIENTID). He's not sending the 0x01 byte before SID_CLIENTID.
I never said I do, keyword is some.

FrostWraith

Hey, can someone try to actually connect to BNEt with the actual SSHR Client. I can't get past the "Looking for the fastest server...." page. I was hoping i could packetlog.

Hero

MirageChat connects to it and it is open source, maybe you can learn something from that? Just a suggestion, link to it is:
www.miragechat.net

Ringo

Quote from: FrostWraith on May 31, 2006, 07:26 PM
Hey, can someone try to actually connect to BNEt with the actual SSHR Client. I can't get past the "Looking for the fastest server...." page. I was hoping i could packetlog.
Hmm, it should connect with out any problems.
if not, heres a packet dump of SSHR login

1  X.X.X.X:xxx  63.240.202.139:6112  1  Send 
0000  01                                                 .

2  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 05 28 00                                        ..(.

3  X.X.X.X:xxx  63.240.202.139:6112  36  Send 
0000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0010  48 4F 4D 45 2D 4B 48 4C 4E 4E 4F 48 38 37 37 00    HOME-KHLNNOH877.
0020  72 6F 62 00                                        rob.

4  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 12 3E 00                                        ..>.

5  X.X.X.X:xxx  63.240.202.139:6112  58  Send 
0000  C0 5C 11 85 A6 BB C5 01 C0 C4 D5 E6 AE BB C5 01    .\..............
0010  00 00 00 00 09 04 00 00 09 08 00 00 09 08 00 00    ................
0020  45 4E 47 00 34 34 00 47 42 52 00 55 6E 69 74 65    ENG.44.GBR.Unite
0030  64 20 4B 69 6E 67 64 6F 6D 00                      d Kingdom.

6  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 2B 20 00                                        .+ .

7  X.X.X.X:xxx  63.240.202.139:6112  28  Send 
0000  01 00 00 00 00 00 00 00 0F 00 00 00 80 16 00 00    ................
0010  00 02 00 00 E2 04 00 00 48 01 00 00                ........H...

8  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 06 14 00                                        ....

9  X.X.X.X:xxx  63.240.202.139:6112  16  Send 
0000  36 38 58 49 52 48 53 53 A5 00 00 00 00 00 00 00    68XIRHSS........

10  63.240.202.139:6112  X.X.X.X:xxx  20  Recv 
0000  FF 05 14 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0010  00 00 00 00                                        ....

11  63.240.202.139:6112  X.X.X.X:xxx  8  Recv 
0000  FF 28 08 00 54 75 09 00                            .(..Tu..

12  63.240.202.139:6112  X.X.X.X:xxx  95  Recv 
0000  FF 25 08 00 0A 24 DB BE FF 06 57 00 00 AC 41 43    .%...$....W...AC
0010  25 0B C5 01 49 58 38 36 76 65 72 32 2E 6D 70 71    %...IX86ver2.mpq
0020  00 41 3D 35 31 35 38 39 36 37 38 36 20 42 3D 31    .A=515896786 B=1
0030  34 30 39 38 30 33 32 35 20 43 3D 36 33 33 38 32    40980325 C=63382
0040  38 30 37 33 20 34 20 41 3D 41 5E 53 20 42 3D 42    8073 4 A=A^S B=B
0050  2B 43 20 43 3D 43 2B 41 20 41 3D 41 2B 42 00       +C C=C+A A=A+B.

13  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 25 08 00                                        .%..

14  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  0A 24 DB BE                                        .$..

15  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 07 3F 00                                        ..?.

16  X.X.X.X:xxx  63.240.202.139:6112  59  Send 
0000  36 38 58 49 52 48 53 53 A5 00 00 00 01 00 01 01    68XIRHSS........
0010  48 C0 2A F8 53 74 61 72 63 72 61 66 74 2E 65 78    H.*.Starcraft.ex
0020  65 20 30 39 2F 31 33 2F 30 35 20 30 30 3A 33 33    e 09/13/05 00:33
0030  3A 34 38 20 39 37 30 37 35 32 00                   :48 970752.

17  63.240.202.139:6112  X.X.X.X:xxx  10  Recv 
0000  FF 07 0A 00 02 00 00 00 00 00                      ..........

18  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 2D 04 00                                        .-..

19  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 14 08 00                                        ....

20  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  74 65 6E 62                                        tenb

21  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 33 18 00                                        .3..

22  X.X.X.X:xxx  63.240.202.139:6112  20  Send 
0000  1A 00 00 00 00 00 00 00 74 6F 73 5F 55 53 41 2E    ........tos_USA.
0010  74 78 74 00                                        txt.

23  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 26 A0 01                                        .&..

24  X.X.X.X:xxx  63.240.202.139:6112  412  Send 
0000  01 00 00 00 13 00 00 00 E3 8E E7 0D 63 61 72 70    ............carp
0010  31 00 70 72 6F 66 69 6C 65 5C 73 65 78 00 70 72    1.profile\sex.pr
0020  6F 66 69 6C 65 5C 61 67 65 00 70 72 6F 66 69 6C    ofile\age.profil
0030  65 5C 6C 6F 63 61 74 69 6F 6E 00 70 72 6F 66 69    e\location.profi
0040  6C 65 5C 64 65 73 63 72 69 70 74 69 6F 6E 00 52    le\description.R
0050  65 63 6F 72 64 5C 53 53 48 52 5C 30 5C 77 69 6E    ecord\SSHR\0\win
0060  73 00 52 65 63 6F 72 64 5C 53 53 48 52 5C 30 5C    s.Record\SSHR\0\
0070  6C 6F 73 73 65 73 00 52 65 63 6F 72 64 5C 53 53    losses.Record\SS
0080  48 52 5C 30 5C 64 69 73 63 6F 6E 6E 65 63 74 73    HR\0\disconnects
0090  00 52 65 63 6F 72 64 5C 53 53 48 52 5C 30 5C 6C    .Record\SSHR\0\l
00A0  61 73 74 20 67 61 6D 65 00 52 65 63 6F 72 64 5C    ast game.Record\
00B0  53 53 48 52 5C 30 5C 6C 61 73 74 20 67 61 6D 65    SSHR\0\last game
00C0  20 72 65 73 75 6C 74 00 52 65 63 6F 72 64 5C 53     result.Record\S
00D0  53 48 52 5C 31 5C 77 69 6E 73 00 52 65 63 6F 72    SHR\1\wins.Recor
00E0  64 5C 53 53 48 52 5C 31 5C 6C 6F 73 73 65 73 00    d\SSHR\1\losses.
00F0  52 65 63 6F 72 64 5C 53 53 48 52 5C 31 5C 64 69    Record\SSHR\1\di
0100  73 63 6F 6E 6E 65 63 74 73 00 52 65 63 6F 72 64    sconnects.Record
0110  5C 53 53 48 52 5C 31 5C 72 61 74 69 6E 67 00 52    \SSHR\1\rating.R
0120  65 63 6F 72 64 5C 53 53 48 52 5C 31 5C 68 69 67    ecord\SSHR\1\hig
0130  68 20 72 61 74 69 6E 67 00 52 65 63 6F 72 64 5C    h rating.Record\
0140  53 53 48 52 5C 31 5C 72 61 6E 6B 00 52 65 63 6F    SSHR\1\rank.Reco
0150  72 64 5C 53 53 48 52 5C 31 5C 68 69 67 68 20 72    rd\SSHR\1\high r
0160  61 6E 6B 00 52 65 63 6F 72 64 5C 53 53 48 52 5C    ank.Record\SSHR\
0170  31 5C 6C 61 73 74 20 67 61 6D 65 00 52 65 63 6F    1\last game.Reco
0180  72 64 5C 53 53 48 52 5C 31 5C 6C 61 73 74 20 67    rd\SSHR\1\last g
0190  61 6D 65 20 72 65 73 75 6C 74 00 00                ame result..

25  63.240.202.139:6112  X.X.X.X:xxx  22  Recv 
0000  FF 2D 16 00 00 08 16 BF E9 50 C3 01 69 63 6F 6E    .-.......P..icon
0010  73 2E 62 6E 69 00                                  s.bni.

26  63.240.202.139:6112  X.X.X.X:xxx  32  Recv 
0000  FF 33 20 00 1A 00 00 00 00 00 00 00 00 DF 77 0F    .3 ...........w.
0010  6C E8 C0 01 74 6F 73 5F 55 53 41 2E 74 78 74 00    l...tos_USA.txt.

27  63.240.202.139:6112  X.X.X.X:xxx  58  Recv 
0000  FF 26 3A 00 01 00 00 00 13 00 00 00 E3 8E E7 0D    .&:.............
0010  00 00 00 00 31 00 00 00 32 39 37 31 33 32 39 35    ....1...29713295
0020  20 31 34 33 38 36 35 31 33 33 35 00 57 49 4E 00     1438651335.WIN.
0030  00 00 00 00 00 00 00 00 00 00                      ..........

28  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 29 26 00                                        .)&.

29  X.X.X.X:xxx  63.240.202.139:6112  34  Send 
0000  E5 98 E7 0D 54 75 09 00 XX XX XX XX XX XX XX XX    ....Tu..........
0010  XX XX XX XX XX XX XX XX XX XX XX XX 63 61 72 70    ............carp
0020  31 00                                              1.

30  63.240.202.139:6112  X.X.X.X:xxx  8  Recv 
0000  FF 29 08 00 01 00 00 00                            .)......

31  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 0A 0B 00                                        ....

32  X.X.X.X:xxx  63.240.202.139:6112  7  Send 
0000  63 61 72 70 31 00 00                               carp1..

33  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 0B 08 00                                        ....

34  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  52 48 53 53                                        RHSS

35  X.X.X.X:xxx  63.240.202.139:6112  4  Send 
0000  FF 0C 1C 00                                        ....

36  X.X.X.X:xxx  63.240.202.139:6112  24  Send 
0000  01 00 00 00 53 74 61 72 63 72 61 66 74 20 53 68    ....Starcraft Sh
0010  61 72 65 77 61 72 65 00                            areware.

hope this helps

FrostWraith

It does. Thanks a lot!