• Welcome to Valhalla Legends Archive.
 

more problmes :(

Started by botmaster, November 15, 2003, 04:39 PM

Previous topic - Next topic

botmaster

when i login now it disconnects me i have waits and everything here is my packet log maybe im doing something really wrong.


[16:38:18] Connected to Battle.net!
[16:38:18] Send:  FF 50 3A 00 00 00 00 00 36 38 58 49 50 58 32 44 0A 00 00 00 00 00 00 00 00 00 00 00 80 04 00 00 33 10 00 00 33 10 00 00 55 53 41 00 55 6E 69 74 65 64 20 53 74 61 74 65 73 00
[16:38:18] Recv:  FF 25 08 00 09 33 BB 6B
[16:38:18] Send:  FF 25 08 00 09 33 BB 6B
[16:38:18] Recv:  FF 50 63 00 00 00 00 00 3F B6 F2 79 5C 61 0C 00 00 3C 5B A5 63 E8 C0 01 49 58 38 36 76 65 72 32 2E 6D 70 71 00 41 3D 36 32 39 36 34 30 36 37 33 20 42 3D 34 31 33 30 35 36 31 35 31 20 43 3D 38 32 30 38 30 36 30 31 39 20 34 20 41 3D 41 2B 53 20 42 3D 42 5E 43 20 43 3D 43 2D 41 20 41 3D 41 5E 42 00
[16:38:19] Hashes passed checkversion.
[16:38:19] Send:  FF 51 8B 00 4C 38 91 14 00 0A 00 01 11 DE 1D 73 02 00 00 00 00 00 00 00 10 00 00 00 06 00 00 00 48 7D 3B 00 00 00 00 00 32 8C 62 E9 D7 01 76 CF A2 5F A9 6F B0 DF 2C A3 46 AA DD 36 10 00 00 00 0A 00 00 00 F5 C9 20 00 00 00 00 00 96 5B 52 04 85 E4 86 AD E5 5B A0 6E DD C6 4C 69 A5 9C 5C 55 47 61 6D 65 2E 65 78 65 20 30 37 2F 30 33 2F 30 33 20 30 32 3A 32 33 3A 31 39 20 31 31 39 38 38 35 37 00 44 61 72 77 69 6E 34 00
[16:38:19] Recv:  FF 51 17 00 01 02 00 00 41 6E 64 72 65 77 20 42 65 6E 6E 65 74 74 00
[16:38:20] Versions and cdkey accepted.
[16:38:22] Length of password hash is 28
[16:38:22] Send:  FF 3A 27 00 76 44 91 14 3F B6 F2 79 6B 41 5D 1A 3B CA 2A 95 5E 3C CF FA BF 8B EC 75 D8 64 A7 54 70 6B 65 64 31 32 00
[16:38:22] Send:  FF 14 08 00 62 6E 65 74
[16:38:22] Send:  FF 2D 04 00
[16:38:22] Connection lost!


Spht

Replace whatever hex output function you're using with Grok's DebugOutput -- it's much easier to read output.

iago

You're assuming he's using VB.  He might be using C++:
// This will return a string object which might look like this:
// FF 03 05 11 12 13 14 15 15 16 12 45 BC 46 48 FF   ...........D...
// 69 FF FF FF                              i...
string Buffer::toString()
{
   string returnString;
   char TempString[4];
   DWORD i, j; // Loop variables
   for(i = 0; i < this->_length; i++)
   {
      
      if(i && (i % 16 == 0))
      {
         // If it's a multiple of 16 and i isn't null, show the ascii
         returnString += '\t';
         for(j = i - 16; j < i; j++)
         {
            if(this->_buf[j] < 0x20 || this->_buf[j] > 0x7F)
               returnString += '.';
            else
               returnString += this->_buf[j];
         }
         // Add a linefeed after the string
         returnString += '\n';
      }

      // Put the next 2 hex values into a string and add them to the returnString
      sprintf(TempString, "%02X ", 0xFF & this->_buf[i]);
      returnString += TempString;
   }
   
   // Add padding spaces if it's not a multiple of 16
   if(i % 16 != 0)
   {
      for(j = 0; j < ((16 - (i % 16)) * 3); j++)
      {
         returnString += ' ';
      }
   }
   // Add the tab for alignment
   returnString += '\t';

   // Add final chararacters at right, after padding

   // If it was at the end of a line, print out the full line
   if((i % 16) == 0)
   {
      j = i - 16;
   }   
   else
   {
      j = (i - (i % 16));
   }

   for(; j < i; j++)
   {
      if(this->_buf[j] < 0x20 || this->_buf[j] > 0x7F)
         returnString += '.';
      else
         returnString += this->_buf[j];
   }

   // Finally, tidy it all up with a newline
   returnString += '\n';

   return returnString;
}


or Java:
   // This will return a string object which might look like this:
   // FF 03 05 11 12 13 14 15 15 16 12 45 BC 46 48 FF    ...........D...
   // 69 FF FF FF                                        i...
   public String toString()
   {
       String returnString = "Buffer contents:\n";
       int i, j; // Loop variables
       for(i = 0; i < currentLength; i++)
       {
           if((i != 0) && (i % 16 == 0))
           {
               // If it's a multiple of 16 and i isn't null, show the ascii
               returnString += '\t';
               for(j = i - 16; j < i; j++)
               {
                   if(buffer[j] < 0x20 || buffer[j] > 0x7F)
                       returnString += '.';
                   else
                       returnString += (char)buffer[j];
               }
               // Add a linefeed after the string
               returnString += "\n";
           }
   
           returnString += Integer.toString((buffer[i] & 0xF0) >> 4, 16) +
                   Integer.toString((buffer[i] & 0x0F) >> 0, 16);
           returnString += ' ';
       }
       
       // Add padding spaces if it's not a multiple of 16
       if(i != 0 && i % 16 != 0)
       {
           for(j = 0; j < ((16 - (i % 16)) * 3); j++)
           {
               returnString += ' ';
           }
       }
       // Add the tab for alignment
       returnString += '\t';
   
       // Add final chararacters at right, after padding
   
       // If it was at the end of a line, print out the full line
       if(i > 0 && (i % 16) == 0)
       {
           j = i - 16;
       }    
       else
       {
           j = (i - (i % 16));
       }
   
       for(; i >= 0 && j < i; j++)
       {
           if(buffer[j] < 0x20 || buffer[j] > 0x7F)
               returnString += '.';
           else
               returnString += (char) buffer[j];
       }
   
       // Finally, tidy it all up with a newline
       returnString += '\n';
       returnString += "Length: " + currentLength + '\n';
   
       return returnString;
   }


No guarentee those are the best way for doing clean output, but it's pretty good :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Spht

His previous posts were related to VB, so I assumed he's still using it.

iago

Quote from: Spht on November 15, 2003, 05:04 PM
His previous posts were related to VB, so I assumed he's still using it.

I don't pay much attention to names.  Plus, I'm proud of my l33t Java Skillz :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


botmaster

im wanting to switch to C++ vb is pissing me off to much...any one know of a site with a example i used to have an open source C++ bot but i cant find it anymore :-/

Kp

Quote from: iago on November 15, 2003, 05:12 PMPlus, I'm proud of my l33t Java Skillz :)
Then you should be using the more l33t StringBuffer, which is mutable and therefore won't be reallocating as much as the String that you're using!
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

iago

#7
Quote from: Kp on November 15, 2003, 05:27 PM
Quote from: iago on November 15, 2003, 05:12 PMPlus, I'm proud of my l33t Java Skillz :)
Then you should be using the more l33t StringBuffer, which is mutable and therefore won't be reallocating as much as the String that you're using!

hmm, that's true; I knew that that would be slow, but I didn't really think that there was a faster way :)

Edit: although if speed was an issue, I wouldn't be using Java :P
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Banana fanna fo fanna

Or he left his other bot on by accident.