• Welcome to Valhalla Legends Archive.
 

SID_LOGONRESPONSE2 help

Started by Smithsonian, July 11, 2005, 11:33 AM

Previous topic - Next topic

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


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);
}
}


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


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.


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?

UserLoser.

Quote

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.


Where'd the extra four bytes come from?

warz

Yeah try this:


             chatbuf.add(outBuffer, 5 * sizeof(unsigned long));