What are mean things...

Detox

Member
Jul 24, 2010
365
24
Okay so I'm trying to update the headers and packetIDs to use a newer SWF version...

I'm trying to update to this RELEASE63-201312201124-496245659

I have these packets updated

Incoming.cs

Code:
Incoming.CheckReleaseMessageEvent = 4000; //4000
Incoming.InitCryptoMessageComposer = 246; // 38
Incoming.GenerateSecretKeyMessageEvent = 840; //2240
Incoming.ClientVars = 1987; //3561
Incoming.UniqueIDMessageEvent = 3570; //3640
Incoming.SSOTicketMessageEvent = 442;//3214

outgoing.cs

Code:
Outgoing.SendBannerMessageComposer = 3500;
Outgoing.SecretKeyMessageComposer = 2240; //547
Outgoing.InitCryptoMessageComposer = 38;
Outgoing.AuthenticationOKMessageComposer = 1065; //2715

So what are the missing packets I need to able to connect to the emulator because I'm stuck.... I have working banner.php updated using the newer SWF but other then that it's the packets
 

Detox

Member
Jul 24, 2010
365
24
How would I find my n/e/d keys? and this is my banner.php

I changed the Prime and Generator keys
@Sledmore
PHP:
<?php

/*
*****************
* @author capos *
*****************
*/

$width = 100;
$height = 114;

function buildimg($bytes, $width, $height)
{
  $img=imagecreatetruecolor($width, $height);imagealphablending($img, false);imagesavealpha($img, true);$x=0;$y=0;
  $colors=unpack("N*", $bytes);
  foreach($colors as $color)
  {
    imagesetpixel($img, $x, $y, (0x7f-($color>>25)<<24)|($color&0xffffff));
    if(++$x==$width)
    {$x=0;$y++;}
  }
  header('Content-Type: image/png');
  imagepng($img);
}

$pixels = file_get_contents('./banner.txt'); // the banner pixels

if($_GET)
{
  $token = trim($_GET["token"]);
  if(strlen($token) >= 10)
  {
    // Stuff to connect to mus and get banner data.. (prime and generator)
    /*$fp = fsockopen("127.0.0.1", 30000, $errno, $errstr, 1);
    if (!is_resource($fp))
    {
      exit("LE FAIL...");
    }
  
    $packet = '0'.chr(1).$token;

    fwrite($fp, $packet);
    fflush($fp);
  
    stream_set_timeout($fp, 1);
    $data = fgets($fp, 512);
    list($prime, $generator) = explode(':', $data);
    fclose($fp);*/
  
    $prime = '1443333365574086635562623176740968262939106259281338539110827';
    $generator = '824827513999001055484330447115198127824256892964722983737957';

    $insert = chr(strlen($prime)).$prime.chr(strlen($generator)).$generator;
    $Length = strlen($token);$Length2 = strlen($insert);
    $p = 0;$bitsnum = "";
    for($i=0;$i<$Length2;$i++)
    {
      $bits = base_convert(ord($insert[$i]) ^ ord($token[$p]),10,2);
      $need = 8 - strlen($bits);
      for($o=0;$o<$need;$o++)$bits = "0".$bits;
      $bitsnum .= $bits;
      if (++$p == $Length) $p = 0;
    }
    $insertpos = 0;$Length = strlen($bitsnum);
    for ($y = 39; $y < 69; $y++)
    {
      $a = 0;
      for ($r = 4; $r < 84; $r++)
      {
        $pos = (($y + $a) * $width + $r) * 4;
        $b = 1;
        while ($b < 4)
        {
          if($insertpos < $Length)
          {
            $binaryData = base_convert(ord($pixels[$pos + $b]),10,2);
            $need = 8 - strlen($binaryData);
            for($o=0;$o<$need;$o++) $binaryData = "0".$binaryData;
            $binaryData[7] = $bitsnum[$insertpos];
            $pixels[$pos + $b] = chr(base_convert($binaryData,2,10));
            $insertpos++;$b++;
            continue;
          }
          break 3;
        }
        if ($r % 2 == 0) $a++;
      }
    }
  
  }
}
buildimg($pixels, $width, $height);
?>
 

Users who are viewing this thread

Top