Valhalla Legends Forums Archive | Battle.net Bot Development | SID_LOGONRESPONSE2 help

AuthorMessageTime
Smithsonian
Hey guys, I'm new to the forums here, and new to bot programming in general. I've been writting this bot in C++, and have seemed to run into a problem. My SID_LOGONRESPONSE2 isn't working I dont think. The reason I'm unsure is because I don't get ip banned right after sending it. I'll show you in a sec. First, here's my code

[code]
void BotClass::SendLogonResponse(void) {
if(BotInfo.Status == CONNECTED) {
char outBuffer[20];

doubleHashPassword(BotInfo.Password, ClientToken, ServerToken, outBuffer);
AppendText(hWindow, WHITE, "Sending password hash (%s)\n", outBuffer);

chatbuf.add(ClientToken);
chatbuf.add(ServerToken);
chatbuf.add(outBuffer);
chatbuf.add(BotInfo.Username);
SendBNCSPacket(wSocket, SID_LOGONRESPONSE2);
}
}
[/code]

I'm using bncs util, and darkminions dyn buffer. Now, this compiles fine, and all, so here's my packet log...

[code]
10  Hide  Hide  48  Send 
0000  FF 3A 30 00 C9 DB E6 42 2B D0 C4 E0 89 63 78 BA    .:0....B+....cx.
0010  67 90 15 8B 83 39 4B 76 84 F3 67 4A D2 62 02 ED    g....9Kv..gJ.b..
0020  D4 A6 12 00 53 6D 69 74 68 73 6F 6E 69 61 6E 00    ....Smithsonian.
[/code]

I cannot get any further in the logon process than this. I question this as being the problem though - because I receive 0x2D's response after I send this. Anyone think this might be the problem? Or see something wrong?
July 11, 2005, 4:33 PM
UserLoser.
[quote]
[pre]
0000  FF 3A 30 00 C9 DB E6 42 2B D0 C4 E0 89 63 78 BA    .:0....B+....cx.
0010  67 90 15 8B 83 39 4B 76 84 F3 67 4A D2 62 02 ED    g....9Kv..gJ.b..
0020  D4 A6 12 00 53 6D 69 74 68 73 6F 6E 69 61 6E 00    ....Smithsonian.
[/pre]
[/quote]

Where'd the extra four bytes come from?
July 11, 2005, 4:42 PM
warz
Yeah try this:

[code]
            chatbuf.add(outBuffer, 5 * sizeof(unsigned long));
[/code]
July 11, 2005, 5:10 PM

Search