You are not logged in.

#1 02 Apr 2007 7:02 am

freak
Senior Member
Registered: Mar 2007
Posts: 32

ea server down or blocked

Hello,


My 2142 stats dosn't go anymore, is it because ea hats problems with the host?

or change they something about the auth?


Here is a test link : (you know to cahnge the auth if its expired smile )

stella.prod.gamespy.com/getplayerinfo.aspx?auth=kJFwrRsnsFiqE29yL]4Wgw__&mode=ply


no links works anymore mad

Thx for the help

Offline

 

#2 02 Apr 2007 7:09 am

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

if you get a message saying "you don't have permissions to use this service" then they blocked your IP Address.

if anything is wrong with your query (like when you try to send query's that the game doesn't use) thats what they use to determine whether they allow you're requests or block the sending IP.

I edited the link, because clicking on it could end up getting someone else's IP blocked.

Offline

 

#3 02 Apr 2007 7:17 am

freak
Senior Member
Registered: Mar 2007
Posts: 32

Re: ea server down or blocked

<?php
include("get_auth.php");
ini_set(user_agent,"GameSpyHTTP/1.0");


$zähler = 0;
$werte = file ("http://stella.prod.gamespy.com/getplayerinfo.aspx?auth=CZhMo1A9]O5k9PYCQW7uGQ__&mode=ovr", "r") or exit("Gamespy Server ist down. Abfragen zur Zeit nicht möglich");
$nameArray2 = explode("\t", $werte[3]);
$wertArray2 = explode("\t", $werte[4]);
foreach ($nameArray2 as $key2 => $name2){
    $nameWert2[$name2]=$wertArray2[$key2];
}

print_r($nameWert2);

?>


this is my code, and its not wrong it works until yetserday.

i use by the auth = $auth thats was generatet in the get_auth.php
i post it with the normal auth.

there is nothing wrong or?

by my shows me this error :
Timeout is line 7   === is the qquery to gamespy....

Offline

 

#4 02 Apr 2007 8:39 am

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

I'm using the same url and get data from it.  try going to http://battlefield.ea.com/battlefield/bf/ and if you can get your player stats then your IP isnt blocked, if it says: "You do not have permission to access this service." then you are.

I don't know how file sends the request to gamespy but maybe its leaving out something that gs wants.  I use an http class to send the requests instead of using fsockopen / fgets or file (or even curl).

my guess is that they've blocked your IP (or the ip of your webserver).

Offline

 

#5 02 Apr 2007 10:20 am

freak
Senior Member
Registered: Mar 2007
Posts: 32

Re: ea server down or blocked

MadHatter :

I'm using the same url and get data from it.  try going to http://battlefield.ea.com/battlefield/bf/ and if you can get your player stats then your IP isnt blocked, if it says: "You do not have permission to access this service." then you are.

I don't know how file sends the request to gamespy but maybe its leaving out something that gs wants.  I use an http class to send the requests instead of using fsockopen / fgets or file (or even curl).

my guess is that they've blocked your IP (or the ip of your webserver).

hello,

thats  what ea always do .....

gives a way to request the stats other? you use it too, and you dont get banned or blocked with your site ??

Offline

 

#6 02 Apr 2007 11:20 am

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

that http class I posted allow you to specify a proxy.  fill that in, and you should be able to use it to get stats even if they've banned your web servers address.

Offline

 

#7 06 Apr 2007 4:16 pm

freak
Senior Member
Registered: Mar 2007
Posts: 32

Re: ea server down or blocked

hello,

i test it with the http_classes but i had much problems with the config.

here is my file, i dont know what to edit thats it works.....
http://www.bf2-player.de/bf2142/proxy/test_http.php

can you plaese help me by the config, here or over icq?

my number : 300842323

greetz

and THX

Offline

 

#8 06 Apr 2007 4:53 pm

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

here's my code using that:

Code:

<?php

require_once("lib/http.php"); // http library
require('bf2142/auth.php');  // get_auth

$pid = $_REQUEST['pid'];
if(!$pid) die("no pid");

$req = new http_class();

$req->timeout = 0;
$req->data_timeout = 0;
$req->user_agent="GameSpyHTTP/1.0";
$url = 'http://stella.prod.gamespy.com/getplayerinfo.aspx?auth='.get_auth($pid).'&mode=base';
$args = null;
$error = $req->GetRequestArguments($url, $args);
if($error != "") {
    die($error);
}    
$error = $req->Open($args);
flush();
if($error != "") {
    die($error);
}
$req->SendRequest($args);
flush();
$headers = array();
$req->ReadReplyHeaders($headers);
if($req->response_status != "200") {
    die($error);
}
if($req->content_length_set && $req->content_length <= 0) {
    die($error);
}

$score = 0;
$rank_val = 0;
$output = array();
$read = false;
$hcount = 0;
$overall = "";
do {
    $error=$req->ReadReplyBody($body, 8192);
    $overall.=$body;
    $lines = split("\n", $body);
    $get_data = false;
    for($i = 0; $i < count($lines); $i++) {
        $line1 = $lines[$i];
        $line2 = $lines[$i+1];
        $ar1 = explode("\t", $line1);
        $ar2 = explode("\t", $line2);
        if(!$read) $read = $ar1[1] == "pid";
        if(count($ar1) > 1 && $ar1[0] == "H" && $read) {
            $hcount++;
            for($idx = 1; $idx < count($ar1); $idx++) {
                $output[$ar1[$idx]] = $ar2[$idx];
            }
            if($hcount == 1) break;
        }
    }
}while(!(count($body) < 8192) || $error == ""    && strlen($body) != 0);

echo "<pre>";
print_r($output);
echo "\r\n";
echo "\r\n$overall";
echo "</pre>";


?>

if that doesn't work on your server then the server's IP may be blocked.  if you think that may be the case, sign up on some free web host and try it there.

Offline

 

#9 07 Apr 2007 1:12 am

freak
Senior Member
Registered: Mar 2007
Posts: 32

Re: ea server down or blocked

hello,

thx but i had a problem , one missing function :

Code:

Call to undefined function: get_auth() in /home/p3271/html/bf2142/proxy/test_http.php on line 14

here is my line 14 :

Code:

$url = 'http://stella.prod.gamespy.com/getplayerinfo.aspx?auth='.get_auth($pid).'&mode=base';

have you there a function?



and how have you config your http.php ?
can you please show it to me?

Last edited by freak (07 Apr 2007 1:18 am)

Offline

 

#10 07 Apr 2007 7:09 am

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

I have no other config beyond what I posted.  I configure it in code to the url and user agent needed to query EA/IGN.

get_auth just uses whats been posted in the sticky'd thread, but here it is:

Code:

<?php

function get_auth($pid) {
    $ea = new ea_stats();
    $c = dwh(dechex(time())).dwh(dechex(100)).dwh(dechex($pid))."0000";
    $c .= CalcCRC($c);
    $enc = $ea->DefEncryptBlock($ea->hex2str($c));
    return $ea->getBase64Encode($enc);
}
function CalcCRC($h) {
    $eax = 0;
    for($esi=0; $esi<14; $esi++) 
    {
        $ecx = $eax;
        $ecx = SAR32($ecx,8);    
        $ecx&= 255;
        $eax = SHL32($eax,8);    
        $ecx|= $eax;
        $eax = hexdec(substr($h,$esi*2,2));
        $eax = XOR32($eax,$ecx);
        $ecx = ($eax&255);
        $ecx = SHR32($ecx,4);    
        $eax = XOR32($eax,$ecx);
        $ecx = $eax;
        $ecx = SHL32($ecx,12);    
        $eax = XOR32($eax,$ecx);
        $ecx = $eax;
        $ecx&= 255;
        $ecx = SHL32($ecx,5);    
        $eax = XOR32($eax,$ecx);
    }
    $eax&= 65535;
    $hex = substr("0000".strtoupper(dechex($eax)), -4);
    return substr($hex,2,2).substr($hex,0,2);
}
function dwh($h) {
    $s = substr("0000000".$h, -8);
    return substr($s,6,2).substr($s,4,2).substr($s,2,2).substr($s,0,2);
}
function XOR32 ($a, $b) {
    $a1 = $a & 0x7FFF0000;
    $a2 = $a & 0x0000FFFF;
    $a3 = $a & 0x80000000;
    $b1 = $b & 0x7FFF0000;
    $b2 = $b & 0x0000FFFF;
    $b3 = $b & 0x80000000;
    $c = ($a3 != $b3) ? 0x80000000 : 0;
    return (($a1 ^ $b1) |($a2 ^ $b2)) + $c;
}
function SHR32 ($x, $bits) {
    if ($bits==0) return $x;
    if ($bits==32) return 0;
    $y = ($x & 0x7FFFFFFF) >> $bits;
    if (0x80000000 & $x) {
        $y |= (1<<(31-$bits));   
    }
    return $y;
}
function SHL32 ($x, $bits) {
    if ($bits==0) return $x;
    if ($bits==32) return 0;
    $mask = (1<<(32-$bits)) - 1;
    return (($x & $mask) << $bits) & 0xFFFFFFFF;
}
function SAL32 ($x, $bits) {
    $s = str_pad(decbin ($x),32,"0",STR_PAD_LEFT);
    return bindec(substr($s,$bits).substr($s,0,$bits));
}
function SAR32 ($x, $bits) {
    $s = str_pad(decbin ($x),32,"0",STR_PAD_LEFT);
    $r = 32-$bits;
    return bindec(substr($s,$r,$bits).substr($s,0,$r));
}
function AND_FF ($x) {
    return str_pad(decbin ($x & 255),32,"0",STR_PAD_LEFT);
}
class ea_stats
{
  var $encryptKeys;
  var $decryptKeys;

  var $hashSm;

  var $SBox;
  var $SBoxInv;

  function ea_stats()
  {
    $this->encryptKeys = &$this->getEncryptKeys();
    $this->decryptKeys = &$this->getDecryptKeys();

    $this->SBox = 
          $this->hex2str('637C777BF26B6FC53001672BFED7AB76CA82C97DFA5947F0ADD4A2AF9CA472C0').
          $this->hex2str('B7FD9326363FF7CC34A5E5F171D8311504C723C31896059A071280E2EB27B275').
          $this->hex2str('09832C1A1B6E5AA0523BD6B329E32F8453D100ED20FCB15B6ACBBE394A4C58CF').
          $this->hex2str('D0EFAAFB434D338545F9027F503C9FA851A3408F929D38F5BCB6DA2110FFF3D2').
          $this->hex2str('CD0C13EC5F974417C4A77E3D645D197360814FDC222A908846EEB814DE5E0BDB').
          $this->hex2str('E0323A0A4906245CC2D3AC629195E479E7C8376D8DD54EA96C56F4EA657AAE08').
          $this->hex2str('BA78252E1CA6B4C6E8DD741F4BBD8B8A703EB5664803F60E613557B986C11D9E').
          $this->hex2str('E1F8981169D98E949B1E87E9CE5528DF8CA1890DBFE6426841992D0FB054BB16');
    
    $this->SBoxInv = 
          $this->hex2str('52096AD53036A538BF40A39E81F3D7FB7CE339829B2FFF87348E4344C4DEE9CB').
          $this->hex2str('547B9432A6C2233DEE4C950B42FAC34E082EA16628D924B2765BA2496D8BD125').
          $this->hex2str('72F8F66486689816D4A45CCC5D65B6926C704850FDEDB9DA5E154657A78D9D84').
          $this->hex2str('90D8AB008CBCD30AF7E45805B8B34506D02C1E8FCA3F0F02C1AFBD0301138A6B').
          $this->hex2str('3A9111414F67DCEA97F2CFCEF0B4E67396AC7422E7AD3585E2F937E81C75DF6E').
          $this->hex2str('47F11A711D29C5896FB7620EAA18BE1BFC563E4BC6D279209ADBC0FE78CD5AF4').
          $this->hex2str('1FDDA8338807C731B11210592780EC5F60517FA919B54A0D2DE57A9F93C99CEF').
          $this->hex2str('A0E03B4DAE2AF5B0C8EBBB3C83539961172B047EBA77D626E169146355210C7D');
    
    $this->hashSm = array(
      1 => $this->getHashCode1(),
      2 => $this->getHashCode2(),
      3 => $this->getHashCode3(),
      4 => $this->getHashCode4(),
      5 => $this->getHashCode5(),
      6 => $this->getHashCode6(),
      7 => $this->getHashCode7(),
      8 => $this->getHashCode8());
  }
  function str2hex($str)
  {
    $hex = '';
    for($i=0; $i<strlen($str); $i++)
    {
      $hextmp = dechex(ord(substr($str, $i, 1)));
      if(strlen($hextmp) < 2)
      {
        $hex .= '0'.$hextmp;
      }else{
        $hex .= $hextmp;
      }
    }
    return strtoupper($hex);
  }  
  function hex2str($hex)
  {
    $str = '';
    for($i=0; $i<strlen($hex); $i+=2)
    {
      $str.=chr(hexdec(substr($hex, $i, 2)));
    }
    return $str;
  }  
  function getDWORD($str)
  {
    return $str[3].$str[2].$str[1].$str[0];
  }  
  function &getEncryptKeys()
  {
    return array(
        0 => $this->hex2str('AA56BB4CC300007844EFFF652C2C1223'),
        1 => $this->hex2str('8C27CA844F27CAFC0BC8359927E427BA'),
        2 => $this->hex2str('78EBA34A37CC69B63C045C2F1BE07B95'),
        3 => $this->hex2str('5244426F65882BD9598C77F6426C0C63'),
        4 => $this->hex2str('A9681299CCE03940956C4EB6D70042D5'),
        5 => $this->hex2str('AA6671A5668648E5F3EA065324EA4486'),
        6 => $this->hex2str('EE50F69E88D6BE7B7B3CB8285FD6FCAE'),
        7 => $this->hex2str('0A9F006E8249BE15F975063DA6A3FA93'),
        8 => $this->hex2str('D6BB0AC354F2B4D6AD87B2EB0B244878'),
        9 => $this->hex2str('6A903C8A3E62885C93E53AB798C172CF'),
       10 => $this->hex2str('E0D644FCDEB4CCA04D51F617D59084D8'));
  }  
  function &getDecryptKeys()
  {
    return array(
        0 => $this->hex2str('E0D644FCDEB4CCA04D51F617D59084D8'),
        1 => $this->hex2str('E80D268FB0860DB32B386F8736CE0F13'),
        2 => $this->hex2str('5269DD42588B2B3C9BBE62341DF66094'),
        3 => $this->hex2str('88256F390AE2F67EC3354908864802A0'),
        4 => $this->hex2str('521EFD6782C79947C9D7BF76457D4BA8'),
        5 => $this->hex2str('2D1CC6EFD0D964204B1026318CAAF4DE'),
        6 => $this->hex2str('3F341051FDC5A2CF9BC94211C7BAD2EF'),
        7 => $this->hex2str('903CF661C2F1B29E660CE0DE5C7390FE'),
        8 => $this->hex2str('DAE3F5B652CD44FFA4FD52403A7F7020'),
        9 => $this->hex2str('135C842E882EB149F63016BF9E822260'),
       10 => $this->hex2str('AA56BB4CC300007844EFFF652C2C1223'));
  }  
  function getKeyDWORD($key, $idx)
  {
    $hex = substr($key, $idx*4, 4);
    return $this->getDWORD($hex);
  }  
  function getSmDWORD($tab, $idx)
  {
    $hex = substr($this->hashSm[$tab], ord($idx)*4, 4);
    return $this->getDWORD($hex);
  }  
  function getKeyBYTE($key, $idx)
  {
    $hex = substr($key, ord($idx), 1);
    return $hex;
  }  
  function DefEncryptBlock($in)
  {
      $Ker = $this->encryptKeys[0];
      $t0 = ($in[0].$in[1].$in[2].$in[3])     ^ $this->getKeyDWORD($Ker,0);
      $t1 = ($in[4].$in[5].$in[6].$in[7])     ^ $this->getKeyDWORD($Ker,1);
      $t2 = ($in[8].$in[9].$in[10].$in[11])   ^ $this->getKeyDWORD($Ker,2);
      $t3 = ($in[12].$in[13].$in[14].$in[15]) ^ $this->getKeyDWORD($Ker,3);
    #echo "T: ".$this->str2hex($t0)." ".$this->str2hex($t1)." ".$this->str2hex($t2)." ".$this->str2hex($t3)."<br>\n";
      for ($r = 1; $r < 10; $r++)
      {
          $Ker = $this->encryptKeys[$r];
          $a0 = $this->getSmDWORD(1,$t0[0]) ^ $this->getSmDWORD(2,$t1[1]) ^ $this->getSmDWORD(3,$t2[2]) ^ $this->getSmDWORD(4,$t3[3]) ^ $this->getKeyDWORD($Ker,0);
          $a1 = $this->getSmDWORD(1,$t1[0]) ^ $this->getSmDWORD(2,$t2[1]) ^ $this->getSmDWORD(3,$t3[2]) ^ $this->getSmDWORD(4,$t0[3]) ^ $this->getKeyDWORD($Ker,1);
          $a2 = $this->getSmDWORD(1,$t2[0]) ^ $this->getSmDWORD(2,$t3[1]) ^ $this->getSmDWORD(3,$t0[2]) ^ $this->getSmDWORD(4,$t1[3]) ^ $this->getKeyDWORD($Ker,2);
          $a3 = $this->getSmDWORD(1,$t3[0]) ^ $this->getSmDWORD(2,$t0[1]) ^ $this->getSmDWORD(3,$t1[2]) ^ $this->getSmDWORD(4,$t2[3]) ^ $this->getKeyDWORD($Ker,3);
          $t0 = $a0;
          $t1 = $a1;
          $t2 = $a2;
          $t3 = $a3;
      #echo "R[".$r."]: ".$this->str2hex($t0)." ".$this->str2hex($t1)." ".$this->str2hex($t2)." ".$this->str2hex($t3)."<br>\n";
      }
      $Ker = $this->encryptKeys[10];
      $tt = $this->getKeyDWORD($Ker,0);
      $result = '';
      $result .= $this->getKeyBYTE($this->SBox, $t0[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBox, $t1[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBox, $t2[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBox, $t3[3]) ^ $tt[3];
      $tt = $this->getKeyDWORD($Ker,1);
    $result .= $this->getKeyBYTE($this->SBox, $t1[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBox, $t2[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBox, $t3[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBox, $t0[3]) ^ $tt[3];
      $tt = $this->getKeyDWORD($Ker,2);
      $result .= $this->getKeyBYTE($this->SBox, $t2[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBox, $t3[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBox, $t0[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBox, $t1[3]) ^ $tt[3];
      $tt = $this->getKeyDWORD($Ker,3);
      $result .= $this->getKeyBYTE($this->SBox, $t3[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBox, $t0[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBox, $t1[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBox, $t2[3]) ^ $tt[3];
    #echo "FINAL: ".$this->str2hex($result)."<br>\n";
      return $result;
  }  
  function DefDecryptBlock($in)
  {
      $Kdr = $this->decryptKeys[0];
      $t0 = ($in[0].$in[1].$in[2].$in[3])     ^ $this->getKeyDWORD($Kdr,0);
      $t1 = ($in[4].$in[5].$in[6].$in[7])     ^ $this->getKeyDWORD($Kdr,1);
      $t2 = ($in[8].$in[9].$in[10].$in[11])   ^ $this->getKeyDWORD($Kdr,2);
      $t3 = ($in[12].$in[13].$in[14].$in[15]) ^ $this->getKeyDWORD($Kdr,3);
    #echo "T: ".$this->str2hex($t0)." ".$this->str2hex($t1)." ".$this->str2hex($t2)." ".$this->str2hex($t3)."<br>\n";
      for($r = 1; $r < 10 ; $r++)
      {
          $Kdr = $this->decryptKeys[$r];
          $a0 = $this->getSmDWORD(5,$t0[0]) ^ $this->getSmDWORD(6,$t3[1]) ^ $this->getSmDWORD(7,$t2[2]) ^ $this->getSmDWORD(8,$t1[3]) ^ $this->getKeyDWORD($Kdr,0);
          $a1 = $this->getSmDWORD(5,$t1[0]) ^ $this->getSmDWORD(6,$t0[1]) ^ $this->getSmDWORD(7,$t3[2]) ^ $this->getSmDWORD(8,$t2[3]) ^ $this->getKeyDWORD($Kdr,1);
          $a2 = $this->getSmDWORD(5,$t2[0]) ^ $this->getSmDWORD(6,$t1[1]) ^ $this->getSmDWORD(7,$t0[2]) ^ $this->getSmDWORD(8,$t3[3]) ^ $this->getKeyDWORD($Kdr,2);
          $a3 = $this->getSmDWORD(5,$t3[0]) ^ $this->getSmDWORD(6,$t2[1]) ^ $this->getSmDWORD(7,$t1[2]) ^ $this->getSmDWORD(8,$t0[3]) ^ $this->getKeyDWORD($Kdr,3);
          $t0 = $a0;
          $t1 = $a1;
          $t2 = $a2;
          $t3 = $a3;
      #echo "R[".$r."]: ".$this->str2hex($t0)." ".$this->str2hex($t1)." ".$this->str2hex($t2)." ".$this->str2hex($t3)."<br>\n";
      }
      $Kdr = $this->decryptKeys[10];
      $tt = $this->getKeyDWORD($Kdr,0);
      $result = '';
      $result .= $this->getKeyBYTE($this->SBoxInv, $t0[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t3[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t2[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t1[3]) ^ $tt[3];
      $tt = $this->getKeyDWORD($Kdr,1);
      $result .= $this->getKeyBYTE($this->SBoxInv, $t1[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t0[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t3[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t2[3]) ^ $tt[3];
      $tt = $this->getKeyDWORD($Kdr,2);
      $result .= $this->getKeyBYTE($this->SBoxInv, $t2[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t1[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t0[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t3[3]) ^ $tt[3];
      $tt = $this->getKeyDWORD($Kdr,3);
      $result .= $this->getKeyBYTE($this->SBoxInv, $t3[0]) ^ $tt[0];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t2[1]) ^ $tt[1];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t1[2]) ^ $tt[2];
      $result .= $this->getKeyBYTE($this->SBoxInv, $t0[3]) ^ $tt[3];
      return $result;
  }  
  function &getHashCode1()
  {
    return
      $this->hex2str('A56363C6847C7CF8997777EE8D7B7BF60DF2F2FFBD6B6BD6B16F6FDE54C5C591').
      $this->hex2str('5030306003010102A96767CE7D2B2B5619FEFEE762D7D7B5E6ABAB4D9A7676EC').
      $this->hex2str('45CACA8F9D82821F40C9C989877D7DFA15FAFAEFEB5959B2C947478E0BF0F0FB').
      $this->hex2str('ECADAD4167D4D4B3FDA2A25FEAAFAF45BF9C9C23F7A4A453967272E45BC0C09B').
      $this->hex2str('C2B7B7751CFDFDE1AE93933D6A26264C5A36366C413F3F7E02F7F7F54FCCCC83').
      $this->hex2str('5C343468F4A5A55134E5E5D108F1F1F9937171E273D8D8AB533131623F15152A').
      $this->hex2str('0C04040852C7C795652323465EC3C39D28181830A19696370F05050AB59A9A2F').
      $this->hex2str('0907070E361212249B80801B3DE2E2DF26EBEBCD6927274ECDB2B27F9F7575EA').
      $this->hex2str('1B0909129E83831D742C2C582E1A1A342D1B1B36B26E6EDCEE5A5AB4FBA0A05B').
      $this->hex2str('F65252A44D3B3B7661D6D6B7CEB3B37D7B2929523EE3E3DD712F2F5E97848413').
      $this->hex2str('F55353A668D1D1B9000000002CEDEDC1602020401FFCFCE3C8B1B179ED5B5BB6').
      $this->hex2str('BE6A6AD446CBCB8DD9BEBE674B393972DE4A4A94D44C4C98E85858B04ACFCF85').
      $this->hex2str('6BD0D0BB2AEFEFC5E5AAAA4F16FBFBEDC5434386D74D4D9A5533336694858511').
      $this->hex2str('CF45458A10F9F9E906020204817F7FFEF05050A0443C3C78BA9F9F25E3A8A84B').
      $this->hex2str('F35151A2FEA3A35DC04040808A8F8F05AD92923FBC9D9D214838387004F5F5F1').
      $this->hex2str('DFBCBC63C1B6B67775DADAAF63212142301010201AFFFFE50EF3F3FD6DD2D2BF').
      $this->hex2str('4CCDCD81140C0C18351313262FECECC3E15F5FBEA2979735CC4444883917172E').
      $this->hex2str('57C4C493F2A7A755827E7EFC473D3D7AAC6464C8E75D5DBA2B191932957373E6').
      $this->hex2str('A06060C098818119D14F4F9E7FDCDCA3662222447E2A2A54AB90903B8388880B').
      $this->hex2str('CA46468C29EEEEC7D3B8B86B3C14142879DEDEA7E25E5EBC1D0B0B1676DBDBAD').
      $this->hex2str('3BE0E0DB563232644E3A3A741E0A0A14DB4949920A06060C6C242448E45C5CB8').
      $this->hex2str('5DC2C29F6ED3D3BDEFACAC43A66262C4A8919139A495953137E4E4D38B7979F2').
      $this->hex2str('32E7E7D543C8C88B5937376EB76D6DDA8C8D8D0164D5D5B1D24E4E9CE0A9A949').
      $this->hex2str('B46C6CD8FA5656AC07F4F4F325EAEACFAF6565CA8E7A7AF4E9AEAE4718080810').
      $this->hex2str('D5BABA6F887878F06F25254A722E2E5C241C1C38F1A6A657C7B4B47351C6C697').
      $this->hex2str('23E8E8CB7CDDDDA19C7474E8211F1F3EDD4B4B96DCBDBD61868B8B0D858A8A0F').
      $this->hex2str('907070E0423E3E7CC4B5B571AA6666CCD84848900503030601F6F6F7120E0E1C').
      $this->hex2str('A36161C25F35356AF95757AED0B9B9699186861758C1C199271D1D3AB99E9E27').
      $this->hex2str('38E1E1D913F8F8EBB398982B33111122BB6969D270D9D9A9898E8E07A7949433').
      $this->hex2str('B69B9B2D221E1E3C9287871520E9E9C949CECE87FF5555AA782828507ADFDFA5').
      $this->hex2str('8F8C8C03F8A1A15980898909170D0D1ADABFBF6531E6E6D7C6424284B86868D0').
      $this->hex2str('C3414182B0999929772D2D5A110F0F1ECBB0B07BFC5454A8D6BBBB6D3A16162C');
  }  
  function &getHashCode2()
  {
    return
      $this->hex2str('6363C6A57C7CF8847777EE997B7BF68DF2F2FF0D6B6BD6BD6F6FDEB1C5C59154').
      $this->hex2str('30306050010102036767CEA92B2B567DFEFEE719D7D7B562ABAB4DE67676EC9A').
      $this->hex2str('CACA8F4582821F9DC9C989407D7DFA87FAFAEF155959B2EB47478EC9F0F0FB0B').
      $this->hex2str('ADAD41ECD4D4B367A2A25FFDAFAF45EA9C9C23BFA4A453F77272E496C0C09B5B').
      $this->hex2str('B7B775C2FDFDE11C93933DAE26264C6A36366C5A3F3F7E41F7F7F502CCCC834F').
      $this->hex2str('3434685CA5A551F4E5E5D134F1F1F9087171E293D8D8AB733131625315152A3F').
      $this->hex2str('0404080CC7C7955223234665C3C39D5E18183028969637A105050A0F9A9A2FB5').
      $this->hex2str('07070E091212243680801B9BE2E2DF3DEBEBCD2627274E69B2B27FCD7575EA9F').
      $this->hex2str('0909121B83831D9E2C2C58741A1A342E1B1B362D6E6EDCB25A5AB4EEA0A05BFB').
      $this->hex2str('5252A4F63B3B764DD6D6B761B3B37DCE2929527BE3E3DD3E2F2F5E7184841397').
      $this->hex2str('5353A6F5D1D1B96800000000EDEDC12C20204060FCFCE31FB1B179C85B5BB6ED').
      $this->hex2str('6A6AD4BECBCB8D46BEBE67D93939724B4A4A94DE4C4C98D45858B0E8CFCF854A').
      $this->hex2str('D0D0BB6BEFEFC52AAAAA4FE5FBFBED16434386C54D4D9AD73333665585851194').
      $this->hex2str('45458ACFF9F9E910020204067F7FFE815050A0F03C3C78449F9F25BAA8A84BE3').
      $this->hex2str('5151A2F3A3A35DFE404080C08F8F058A92923FAD9D9D21BC38387048F5F5F104').
      $this->hex2str('BCBC63DFB6B677C1DADAAF752121426310102030FFFFE51AF3F3FD0ED2D2BF6D').
      $this->hex2str('CDCD814C0C0C181413132635ECECC32F5F5FBEE1979735A2444488CC17172E39').
      $this->hex2str('C4C49357A7A755F27E7EFC823D3D7A476464C8AC5D5DBAE71919322B7373E695').
      $this->hex2str('6060C0A0818119984F4F9ED1DCDCA37F222244662A2A547E90903BAB88880B83').
      $this->hex2str('46468CCAEEEEC729B8B86BD31414283CDEDEA7795E5EBCE20B0B161DDBDBAD76').
      $this->hex2str('E0E0DB3B323264563A3A744E0A0A141E494992DB06060C0A2424486C5C5CB8E4').
      $this->hex2str('C2C29F5DD3D3BD6EACAC43EF6262C4A6919139A8959531A4E4E4D3377979F28B').
      $this->hex2str('E7E7D532C8C88B4337376E596D6DDAB78D8D018CD5D5B1644E4E9CD2A9A949E0').
      $this->hex2str('6C6CD8B45656ACFAF4F4F307EAEACF256565CAAF7A7AF48EAEAE47E908081018').
      $this->hex2str('BABA6FD57878F08825254A6F2E2E5C721C1C3824A6A657F1B4B473C7C6C69751').
      $this->hex2str('E8E8CB23DDDDA17C7474E89C1F1F3E214B4B96DDBDBD61DC8B8B0D868A8A0F85').
      $this->hex2str('7070E0903E3E7C42B5B571C46666CCAA484890D803030605F6F6F7010E0E1C12').
      $this->hex2str('6161C2A335356A5F5757AEF9B9B969D086861791C1C199581D1D3A279E9E27B9').
      $this->hex2str('E1E1D938F8F8EB1398982BB3111122336969D2BBD9D9A9708E8E0789949433A7').
      $this->hex2str('9B9B2DB61E1E3C2287871592E9E9C920CECE87495555AAFF28285078DFDFA57A').
      $this->hex2str('8C8C038FA1A159F8898909800D0D1A17BFBF65DAE6E6D731424284C66868D0B8').
      $this->hex2str('414182C3999929B02D2D5A770F0F1E11B0B07BCB5454A8FCBBBB6DD616162C3A');
  }  
  function &getHashCode3()
  {
    return
      $this->hex2str('63C6A5637CF8847C77EE99777BF68D7BF2FF0DF26BD6BD6B6FDEB16FC59154C5').
      $this->hex2str('306050300102030167CEA9672B567D2BFEE719FED7B562D7AB4DE6AB76EC9A76').
      $this->hex2str('CA8F45CA821F9D82C98940C97DFA877DFAEF15FA59B2EB59478EC947F0FB0BF0').
      $this->hex2str('AD41ECADD4B367D4A25FFDA2AF45EAAF9C23BF9CA453F7A472E49672C09B5BC0').
      $this->hex2str('B775C2B7FDE11CFD933DAE93264C6A26366C5A363F7E413FF7F502F7CC834FCC').
      $this->hex2str('34685C34A551F4A5E5D134E5F1F908F171E29371D8AB73D831625331152A3F15').
      $this->hex2str('04080C04C79552C723466523C39D5EC3183028189637A196050A0F059A2FB59A').
      $this->hex2str('070E090712243612801B9B80E2DF3DE2EBCD26EB274E6927B27FCDB275EA9F75').
      $this->hex2str('09121B09831D9E832C58742C1A342E1A1B362D1B6EDCB26E5AB4EE5AA05BFBA0').
      $this->hex2str('52A4F6523B764D3BD6B761D6B37DCEB329527B29E3DD3EE32F5E712F84139784').
      $this->hex2str('53A6F553D1B968D100000000EDC12CED20406020FCE31FFCB179C8B15BB6ED5B').
      $this->hex2str('6AD4BE6ACB8D46CBBE67D9BE39724B394A94DE4A4C98D44C58B0E858CF854ACF').
      $this->hex2str('D0BB6BD0EFC52AEFAA4FE5AAFBED16FB4386C5434D9AD74D3366553385119485').
      $this->hex2str('458ACF45F9E910F9020406027FFE817F50A0F0503C78443C9F25BA9FA84BE3A8').
      $this->hex2str('51A2F351A35DFEA34080C0408F058A8F923FAD929D21BC9D38704838F5F104F5').
      $this->hex2str('BC63DFBCB677C1B6DAAF75DA2142632110203010FFE51AFFF3FD0EF3D2BF6DD2').
      $this->hex2str('CD814CCD0C18140C13263513ECC32FEC5FBEE15F9735A2974488CC44172E3917').
      $this->hex2str('C49357C4A755F2A77EFC827E3D7A473D64C8AC645DBAE75D19322B1973E69573').
      $this->hex2str('60C0A060811998814F9ED14FDCA37FDC224466222A547E2A903BAB90880B8388').
      $this->hex2str('468CCA46EEC729EEB86BD3B814283C14DEA779DE5EBCE25E0B161D0BDBAD76DB').
      $this->hex2str('E0DB3BE0326456323A744E3A0A141E0A4992DB49060C0A0624486C245CB8E45C').
      $this->hex2str('C29F5DC2D3BD6ED3AC43EFAC62C4A6629139A8919531A495E4D337E479F28B79').
      $this->hex2str('E7D532E7C88B43C8376E59376DDAB76D8D018C8DD5B164D54E9CD24EA949E0A9').
      $this->hex2str('6CD8B46C56ACFA56F4F307F4EACF25EA65CAAF657AF48E7AAE47E9AE08101808').
      $this->hex2str('BA6FD5BA78F08878254A6F252E5C722E1C38241CA657F1A6B473C7B4C69751C6').
      $this->hex2str('E8CB23E8DDA17CDD74E89C741F3E211F4B96DD4BBD61DCBD8B0D868B8A0F858A').
      $this->hex2str('70E090703E7C423EB571C4B566CCAA664890D84803060503F6F701F60E1C120E').
      $this->hex2str('61C2A361356A5F3557AEF957B969D0B986179186C19958C11D3A271D9E27B99E').
      $this->hex2str('E1D938E1F8EB13F8982BB3981122331169D2BB69D9A970D98E07898E9433A794').
      $this->hex2str('9B2DB69B1E3C221E87159287E9C920E9CE8749CE55AAFF5528507828DFA57ADF').
      $this->hex2str('8C038F8CA159F8A1890980890D1A170DBF65DABFE6D731E64284C64268D0B868').
      $this->hex2str('4182C3419929B0992D5A772D0F1E110FB07BCBB054A8FC54BB6DD6BB162C3A16');
  }  
  function &getHashCode4()
  {
    return
      $this->hex2str('C6A56363F8847C7CEE997777F68D7B7BFF0DF2F2D6BD6B6BDEB16F6F9154C5C5').
      $this->hex2str('6050303002030101CEA96767567D2B2BE719FEFEB562D7D74DE6ABABEC9A7676').
      $this->hex2str('8F45CACA1F9D82828940C9C9FA877D7DEF15FAFAB2EB59598EC94747FB0BF0F0').
      $this->hex2str('41ECADADB367D4D45FFDA2A245EAAFAF23BF9C9C53F7A4A4E49672729B5BC0C0').
      $this->hex2str('75C2B7B7E11CFDFD3DAE93934C6A26266C5A36367E413F3FF502F7F7834FCCCC').
      $this->hex2str('685C343451F4A5A5D134E5E5F908F1F1E2937171AB73D8D8625331312A3F1515').
      $this->hex2str('080C04049552C7C7466523239D5EC3C33028181837A196960A0F05052FB59A9A').
      $this->hex2str('0E090707243612121B9B8080DF3DE2E2CD26EBEB4E6927277FCDB2B2EA9F7575').
      $this->hex2str('121B09091D9E838358742C2C342E1A1A362D1B1BDCB26E6EB4EE5A5A5BFBA0A0').
      $this->hex2str('A4F65252764D3B3BB761D6D67DCEB3B3527B2929DD3EE3E35E712F2F13978484').
      $this->hex2str('A6F55353B968D1D100000000C12CEDED40602020E31FFCFC79C8B1B1B6ED5B5B').
      $this->hex2str('D4BE6A6A8D46CBCB67D9BEBE724B393994DE4A4A98D44C4CB0E85858854ACFCF').
      $this->hex2str('BB6BD0D0C52AEFEF4FE5AAAAED16FBFB86C543439AD74D4D6655333311948585').
      $this->hex2str('8ACF4545E910F9F904060202FE817F7FA0F0505078443C3C25BA9F9F4BE3A8A8').
      $this->hex2str('A2F351515DFEA3A380C04040058A8F8F3FAD929221BC9D9D70483838F104F5F5').
      $this->hex2str('63DFBCBC77C1B6B6AF75DADA4263212120301010E51AFFFFFD0EF3F3BF6DD2D2').
      $this->hex2str('814CCDCD18140C0C26351313C32FECECBEE15F5F35A2979788CC44442E391717').
      $this->hex2str('9357C4C455F2A7A7FC827E7E7A473D3DC8AC6464BAE75D5D322B1919E6957373').
      $this->hex2str('C0A06060199881819ED14F4FA37FDCDC44662222547E2A2A3BAB90900B838888').
      $this->hex2str('8CCA4646C729EEEE6BD3B8B8283C1414A779DEDEBCE25E5E161D0B0BAD76DBDB').
      $this->hex2str('DB3BE0E064563232744E3A3A141E0A0A92DB49490C0A0606486C2424B8E45C5C').
      $this->hex2str('9F5DC2C2BD6ED3D343EFACACC4A6626239A8919131A49595D337E4E4F28B7979').
      $this->hex2str('D532E7E78B43C8C86E593737DAB76D6D018C8D8DB164D5D59CD24E4E49E0A9A9').
      $this->hex2str('D8B46C6CACFA5656F307F4F4CF25EAEACAAF6565F48E7A7A47E9AEAE10180808').
      $this->hex2str('6FD5BABAF08878784A6F25255C722E2E38241C1C57F1A6A673C7B4B49751C6C6').
      $this->hex2str('CB23E8E8A17CDDDDE89C74743E211F1F96DD4B4B61DCBDBD0D868B8B0F858A8A').
      $this->hex2str('E09070707C423E3E71C4B5B5CCAA666690D8484806050303F701F6F61C120E0E').
      $this->hex2str('C2A361616A5F3535AEF9575769D0B9B9179186869958C1C13A271D1D27B99E9E').
      $this->hex2str('D938E1E1EB13F8F82BB3989822331111D2BB6969A970D9D907898E8E33A79494').
      $this->hex2str('2DB69B9B3C221E1E15928787C920E9E98749CECEAAFF555550782828A57ADFDF').
      $this->hex2str('038F8C8C59F8A1A1098089891A170D0D65DABFBFD731E6E684C64242D0B86868').
      $this->hex2str('82C3414129B099995A772D2D1E110F0F7BCBB0B0A8FC54546DD6BBBB2C3A1616');
  }  
  # Code5,6,7,8 are used for decoding
  function &getHashCode5()
  {
    return
      $this->hex2str('50A7F4515365417EC3A4171A965E273ACB6BAB3BF1459D1FAB58FAAC9303E34B').
      $this->hex2str('55FA3020F66D76AD9176CC88254C02F5FCD7E54FD7CB2AC5804435268FA362B5').
      $this->hex2str('495AB1DE671BBA25980EEA45E1C0FE5D02752FC312F04C81A397468DC6F9D36B').
      $this->hex2str('E75F8F03959C9215EB7A6DBFDA5952952D83BED4D32174582969E04944C8C98E').
      $this->hex2str('6A89C27578798EF46B3E5899DD71B927B64FE1BE17AD88F066AC20C9B43ACE7D').
      $this->hex2str('184ADF6382311AE560335197457F5362E07764B184AE6BBB1CA081FE942B08F9').
      $this->hex2str('5868487019FD458F876CDE94B7F87B5223D373ABE2024B72578F1FE32AAB5566').
      $this->hex2str('0728EBB203C2B52F9A7BC586A50837D3F2872830B2A5BF23BA6A03025C8216ED').
      $this->hex2str('2B1CCF8A92B479A7F0F207F3A1E2694ECDF4DA65D5BE05061F6234D18AFEA6C4').
      $this->hex2str('9D532E34A055F3A232E18A0575EBF6A439EC830BAAEF6040069F715E51106EBD').
      $this->hex2str('F98A213E3D06DD96AE053EDD46BDE64DB58D5491055DC4716FD40604FF155060').
      $this->hex2str('24FB981997E9BDD6CC434089779ED967BD42E8B0888B8907385B19E7DBEEC879').
      $this->hex2str('470A7CA1E90F427CC91E84F8000000008386800948ED2B32AC70111E4E725A6C').
      $this->hex2str('FBFF0EFD5638850F1ED5AE3D27392D3664D90F0A21A65C68D1545B9B3A2E3624').
      $this->hex2str('B1670A0C0FE75793D296EEB49E919B1B4FC5C080A220DC61694B775A161A121C').
      $this->hex2str('0ABA93E2E52AA0C043E0223C1D171B120B0D090EADC78BF2B9A8B62DC8A91E14').
      $this->hex2str('8519F1574C0775AFBBDD99EEFD607FA39F2601F7BCF5725CC53B6644347EFB5B').
      $this->hex2str('7629438BDCC623CB68FCEDB663F1E4B8CADC31D710856342402297132011C684').
      $this->hex2str('7D244A85F83DBBD21132F9AE6DA129C74B2F9E1DF330B2DCEC52860DD0E3C177').
      $this->hex2str('6C16B32B99B970A9FA4894112264E947C48CFCA81A3FF0A0D82C7D56EF903322').
      $this->hex2str('C74E4987C1D138D9FEA2CA8C360BD498CF81F5A628DE7AA5268EB7DAA4BFAD3F').
      $this->hex2str('E49D3A2C0D9278509BCC5F6A62467E54C2138DF6E8B8D8905EF7392EF5AFC382').
      $this->hex2str('BE805D9F7C93D069A92DD56FB31225CF3B99ACC8A77D18106E639CE87BBB3BDB').
      $this->hex2str('097826CDF418596E01B79AECA89A4F83656E95E67EE6FFAA08CFBC21E6E815EF').
      $this->hex2str('D99BE7BACE366F4AD4099FEAD67CB029AFB2A43131233F2A3094A5C6C066A235').
      $this->hex2str('37BC4E74A6CA82FCB0D090E015D8A7334A9804F1F7DAEC410E50CD7F2FF69117').
      $this->hex2str('8DD64D764DB0EF43544DAACCDF0496E4E3B5D19E1B886A4CB81F2CC17F516546').
      $this->hex2str('04EA5E9D5D358C01737487FA2E410BFB5A1D67B352D2DB92335610E91347D66D').
      $this->hex2str('8C61D79A7A0CA1378E14F859893C13EBEE27A9CE35C961B7EDE51CE13CB1477A').
      $this->hex2str('59DFD29C3F73F25579CE1418BF37C773EACDF7535BAAFD5F146F3DDF86DB4478').
      $this->hex2str('81F3AFCA3EC468B92C3424385F40A3C272C31D160C25E2BC8B493C2841950DFF').
      $this->hex2str('7101A839DEB30C089CE4B4D890C156646184CB7B70B632D5745C6C484257B8D0');
  }  
  function &getHashCode6()
  {
    return
      $this->hex2str('A7F4515065417E53A4171AC35E273A966BAB3BCB459D1FF158FAACAB03E34B93').
      $this->hex2str('FA3020556D76ADF676CC88914C02F525D7E54FFCCB2AC5D744352680A362B58F').
      $this->hex2str('5AB1DE491BBA25670EEA4598C0FE5DE1752FC302F04C811297468DA3F9D36BC6').
      $this->hex2str('5F8F03E79C9215957A6DBFEB595295DA83BED42D217458D369E04929C8C98E44').
      $this->hex2str('89C2756A798EF4783E58996B71B927DD4FE1BEB6AD88F017AC20C9663ACE7DB4').
      $this->hex2str('4ADF6318311AE582335197607F5362457764B1E0AE6BBB84A081FE1C2B08F994').
      $this->hex2str('68487058FD458F196CDE9487F87B52B7D373AB23024B72E28F1FE357AB55662A').
      $this->hex2str('28EBB207C2B52F037BC5869A0837D3A5872830F2A5BF23B26A0302BA8216ED5C').
      $this->hex2str('1CCF8A2BB479A792F207F3F0E2694EA1F4DA65CDBE0506D56234D11FFEA6C48A').
      $this->hex2str('532E349D55F3A2A0E18A0532EBF6A475EC830B39EF6040AA9F715E06106EBD51').
      $this->hex2str('8A213EF906DD963D053EDDAEBDE64D468D5491B55DC47105D406046F155060FF').
      $this->hex2str('FB981924E9BDD697434089CC9ED9677742E8B0BD8B8907885B19E738EEC879DB').
      $this->hex2str('0A7CA1470F427CE91E84F8C90000000086800983ED2B324870111EAC725A6C4E').
      $this->hex2str('FF0EFDFB38850F56D5AE3D1E392D3627D90F0A64A65C6821545B9BD12E36243A').
      $this->hex2str('670A0CB1E757930F96EEB4D2919B1B9EC5C0804F20DC61A24B775A691A121C16').
      $this->hex2str('BA93E20A2AA0C0E5E0223C43171B121D0D090E0BC78BF2ADA8B62DB9A91E14C8').
      $this->hex2str('19F157850775AF4CDD99EEBB607FA3FD2601F79FF5725CBC3B6644C57EFB5B34').
      $this->hex2str('29438B76C623CBDCFCEDB668F1E4B863DC31D7CA856342102297134011C68420').
      $this->hex2str('244A857D3DBBD2F832F9AE11A129C76D2F9E1D4B30B2DCF352860DECE3C177D0').
      $this->hex2str('16B32B6CB970A999489411FA64E947228CFCA8C43FF0A01A2C7D56D8903322EF').
      $this->hex2str('4E4987C7D138D9C1A2CA8CFE0BD4983681F5A6CFDE7AA5288EB7DA26BFAD3FA4').
      $this->hex2str('9D3A2CE49278500DCC5F6A9B467E5462138DF6C2B8D890E8F7392E5EAFC382F5').
      $this->hex2str('805D9FBE93D0697C2DD56FA91225CFB399ACC83B7D1810A7639CE86EBB3BDB7B').
      $this->hex2str('7826CD0918596EF4B79AEC019A4F83A86E95E665E6FFAA7ECFBC2108E815EFE6').
      $this->hex2str('9BE7BAD9366F4ACE099FEAD47CB029D6B2A431AF233F2A3194A5C63066A235C0').
      $this->hex2str('BC4E7437CA82FCA6D090E0B0D8A733159804F14ADAEC41F750CD7F0EF691172F').
      $this->hex2str('D64D768DB0EF434D4DAACC540496E4DFB5D19EE3886A4C1B1F2CC1B85165467F').
      $this->hex2str('EA5E9D04358C015D7487FA73410BFB2E1D67B35AD2DB92525610E93347D66D13').
      $this->hex2str('61D79A8C0CA1377A14F8598E3C13EB8927A9CEEEC961B735E51CE1EDB1477A3C').
      $this->hex2str('DFD29C5973F2553FCE14187937C773BFCDF753EAAAFD5F5B6F3DDF14DB447886').
      $this->hex2str('F3AFCA81C468B93E3424382C40A3C25FC31D167225E2BC0C493C288B950DFF41').
      $this->hex2str('01A83971B30C08DEE4B4D89CC156649084CB7B61B632D5705C6C487457B8D042');
  }  
  function &getHashCode7()
  {
    return
      $this->hex2str('F45150A7417E5365171AC3A4273A965EAB3BCB6B9D1FF145FAACAB58E34B9303').
      $this->hex2str('302055FA76ADF66DCC88917602F5254CE54FFCD72AC5D7CB3526804462B58FA3').
      $this->hex2str('B1DE495ABA25671BEA45980EFE5DE1C02FC302754C8112F0468DA397D36BC6F9').
      $this->hex2str('8F03E75F9215959C6DBFEB7A5295DA59BED42D837458D321E0492969C98E44C8').
      $this->hex2str('C2756A898EF4787958996B3EB927DD71E1BEB64F88F017AD20C966ACCE7DB43A').
      $this->hex2str('DF63184A1AE58231519760335362457F64B1E0776BBB84AE81FE1CA008F9942B').
      $this->hex2str('48705868458F19FDDE94876C7B52B7F873AB23D34B72E2021FE3578F55662AAB').
      $this->hex2str('EBB20728B52F03C2C5869A7B37D3A5082830F287BF23B2A50302BA6A16ED5C82').
      $this->hex2str('CF8A2B1C79A792B407F3F0F2694EA1E2DA65CDF40506D5BE34D11F62A6C48AFE').
      $this->hex2str('2E349D53F3A2A0558A0532E1F6A475EB830B39EC6040AAEF715E069F6EBD5110').
      $this->hex2str('213EF98ADD963D063EDDAE05E64D46BD5491B58DC471055D06046FD45060FF15').
      $this->hex2str('981924FBBDD697E94089CC43D967779EE8B0BD428907888B19E7385BC879DBEE').
      $this->hex2str('7CA1470A427CE90F84F8C91E00000000800983862B3248ED111EAC705A6C4E72').
      $this->hex2str('0EFDFBFF850F5638AE3D1ED52D3627390F0A64D95C6821A65B9BD15436243A2E').
      $this->hex2str('0A0CB16757930FE7EEB4D2969B1B9E91C0804FC5DC61A220775A694B121C161A').
      $this->hex2str('93E20ABAA0C0E52A223C43E01B121D17090E0B0D8BF2ADC7B62DB9A81E14C8A9').
      $this->hex2str('F157851975AF4C0799EEBBDD7FA3FD6001F79F26725CBCF56644C53BFB5B347E').
      $this->hex2str('438B762923CBDCC6EDB668FCE4B863F131D7CADC6342108597134022C6842011').
      $this->hex2str('4A857D24BBD2F83DF9AE113229C76DA19E1D4B2FB2DCF330860DEC52C177D0E3').
      $this->hex2str('B32B6C1670A999B99411FA48E9472264FCA8C48CF0A01A3F7D56D82C3322EF90').
      $this->hex2str('4987C74E38D9C1D1CA8CFEA2D498360BF5A6CF817AA528DEB7DA268EAD3FA4BF').
      $this->hex2str('3A2CE49D78500D925F6A9BCC7E5462468DF6C213D890E8B8392E5EF7C382F5AF').
      $this->hex2str('5D9FBE80D0697C93D56FA92D25CFB312ACC83B991810A77D9CE86E633BDB7BBB').
      $this->hex2str('26CD0978596EF4189AEC01B74F83A89A95E6656EFFAA7EE6BC2108CF15EFE6E8').
      $this->hex2str('E7BAD99B6F4ACE369FEAD409B029D67CA431AFB23F2A3123A5C63094A235C066').
      $this->hex2str('4E7437BC82FCA6CA90E0B0D0A73315D804F14A98EC41F7DACD7F0E5091172FF6').
      $this->hex2str('4D768DD6EF434DB0AACC544D96E4DF04D19EE3B56A4C1B882CC1B81F65467F51').
      $this->hex2str('5E9D04EA8C015D3587FA73740BFB2E4167B35A1DDB9252D210E93356D66D1347').
      $this->hex2str('D79A8C61A1377A0CF8598E1413EB893CA9CEEE2761B735C91CE1EDE5477A3CB1').
      $this->hex2str('D29C59DFF2553F73141879CEC773BF37F753EACDFD5F5BAA3DDF146F447886DB').
      $this->hex2str('AFCA81F368B93EC424382C34A3C25F401D1672C3E2BC0C253C288B490DFF4195').
      $this->hex2str('A83971010C08DEB3B4D89CE4566490C1CB7B618432D570B66C48745CB8D04257');
  }  
  function &getHashCode8()
  {
    return
      $this->hex2str('5150A7F47E5365411AC3A4173A965E273BCB6BAB1FF1459DACAB58FA4B9303E3').
      $this->hex2str('2055FA30ADF66D76889176CCF5254C024FFCD7E5C5D7CB2A26804435B58FA362').
      $this->hex2str('DE495AB125671BBA45980EEA5DE1C0FEC302752F8112F04C8DA397466BC6F9D3').
      $this->hex2str('03E75F8F15959C92BFEB7A6D95DA5952D42D83BE58D32174492969E08E44C8C9').
      $this->hex2str('756A89C2F478798E996B3E5827DD71B9BEB64FE1F017AD88C966AC207DB43ACE').
      $this->hex2str('63184ADFE582311A9760335162457F53B1E07764BB84AE6BFE1CA081F9942B08').
      $this->hex2str('705868488F19FD4594876CDE52B7F87BAB23D37372E2024BE3578F1F662AAB55').
      $this->hex2str('B20728EB2F03C2B5869A7BC5D3A5083730F2872823B2A5BF02BA6A03ED5C8216').
      $this->hex2str('8A2B1CCFA792B479F3F0F2074EA1E26965CDF4DA06D5BE05D11F6234C48AFEA6').
      $this->hex2str('349D532EA2A055F30532E18AA475EBF60B39EC8340AAEF605E069F71BD51106E').
      $this->hex2str('3EF98A21963D06DDDDAE053E4D46BDE691B58D5471055DC4046FD40660FF1550').
      $this->hex2str('1924FB98D697E9BD89CC434067779ED9B0BD42E807888B89E7385B1979DBEEC8').
      $this->hex2str('A1470A7C7CE90F42F8C91E8400000000098386803248ED2B1EAC70116C4E725A').
      $this->hex2str('FDFBFF0E0F5638853D1ED5AE3627392D0A64D90F6821A65C9BD1545B243A2E36').
      $this->hex2str('0CB1670A930FE757B4D296EE1B9E919B804FC5C061A220DC5A694B771C161A12').
      $this->hex2str('E20ABA93C0E52AA03C43E022121D171B0E0B0D09F2ADC78B2DB9A8B614C8A91E').
      $this->hex2str('578519F1AF4C0775EEBBDD99A3FD607FF79F26015CBCF57244C53B665B347EFB').
      $this->hex2str('8B762943CBDCC623B668FCEDB863F1E4D7CADC314210856313402297842011C6').
      $this->hex2str('857D244AD2F83DBBAE1132F9C76DA1291D4B2F9EDCF330B20DEC528677D0E3C1').
      $this->hex2str('2B6C16B3A999B97011FA4894472264E9A8C48CFCA01A3FF056D82C7D22EF9033').
      $this->hex2str('87C74E49D9C1D1388CFEA2CA98360BD4A6CF81F5A528DE7ADA268EB73FA4BFAD').
      $this->hex2str('2CE49D3A500D92786A9BCC5F5462467EF6C2138D90E8B8D82E5EF73982F5AFC3').
      $this->hex2str('9FBE805D697C93D06FA92DD5CFB31225C83B99AC10A77D18E86E639CDB7BBB3B').
      $this->hex2str('CD0978266EF41859EC01B79A83A89A4FE6656E95AA7EE6FF2108CFBCEFE6E815').
      $this->hex2str('BAD99BE74ACE366FEAD4099F29D67CB031AFB2A42A31233FC63094A535C066A2').
      $this->hex2str('7437BC4EFCA6CA82E0B0D0903315D8A7F14A980441F7DAEC7F0E50CD172FF691').
      $this->hex2str('768DD64D434DB0EFCC544DAAE4DF04969EE3B5D14C1B886AC1B81F2C467F5165').
      $this->hex2str('9D04EA5E015D358CFA737487FB2E410BB35A1D679252D2DBE93356106D1347D6').
      $this->hex2str('9A8C61D7377A0CA1598E14F8EB893C13CEEE27A9B735C961E1EDE51C7A3CB147').
      $this->hex2str('9C59DFD2553F73F21879CE1473BF37C753EACDF75F5BAAFDDF146F3D7886DB44').
      $this->hex2str('CA81F3AFB93EC468382C3424C25F40A31672C31DBC0C25E2288B493CFF41950D').
      $this->hex2str('397101A808DEB30CD89CE4B46490C1567B6184CBD570B63248745C6CD04257B8');
  }  
  function getBase64Encode($str)
  {
    # ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789[]_
    $ret = base64_encode($str);
    return str_replace(array('+', '/', '='), array('[', ']', '_'), $ret);
  }  
  function getBase64Decode($str)
  {
    return base64_decode(str_replace(array('[', ']', '_'), array('+', '/', '='), $str));
  }
}

?>

Offline

 

#11 07 Apr 2007 9:47 am

freak
Senior Member
Registered: Mar 2007
Posts: 32

Re: ea server down or blocked

hello,

now he dont post me an error , but he post nothing .....

http://www.bf2-player.de/bf2142/proxy/t … d=81218946


Here is my code of the auth.php

Code:

      <?php
//    $pid = $_REQUEST['pid']==null?0:$_REQUEST['pid']; 
    $pid = $_GET['pid'];
//    $pid=81218946;
    $auth = "";
    require_once("ea_support.php");
    
    $bfcoding  = &new ea_stats();
    





function get_auth($pid) {
    $ea = new ea_stats();
    $c = dwh(dechex(time())).dwh(dechex(100)).dwh(dechex($pid))."0000";
    $c .= CalcCRC($c);
    $enc = $ea->DefEncryptBlock($ea->hex2str($c));
    return $ea->getBase64Encode($enc);
}



    $code = dwh(dechex(time())).dwh(dechex(100)).dwh(dechex($pid))."0000";
    $code.= CalcCRC($code);
    $result = $bfcoding->DefEncryptBlock($bfcoding->hex2str($code));
    $auth = $bfcoding->getBase64Encode($result);

    function dwh($h)
    {
      $s = substr("0000000".$h, -8);
      return substr($s,6,2).substr($s,4,2).substr($s,2,2).substr($s,0,2);
    }
    
    function XOR32 ($a, $b)
    {
      $a1 = $a & 0x7FFF0000;
      $a2 = $a & 0x0000FFFF;
      $a3 = $a & 0x80000000;
      $b1 = $b & 0x7FFF0000;
      $b2 = $b & 0x0000FFFF;
      $b3 = $b & 0x80000000;
      $c = ($a3 != $b3) ? 0x80000000 : 0;
      return (($a1 ^ $b1) |($a2 ^ $b2)) + $c;
    }
    
    function SHR32 ($x, $bits)
    {
      if ($bits==0) return $x;
      if ($bits==32) return 0;
      $y = ($x & 0x7FFFFFFF) >> $bits;
      if (0x80000000 & $x) {
        $y |= (1<<(31-$bits));   
      }
      return $y;
    }
    
    function SHL32 ($x, $bits)
    {
      if ($bits==0) return $x;
      if ($bits==32) return 0;
      $mask = (1<<(32-$bits)) - 1;
      return (($x & $mask) << $bits) & 0xFFFFFFFF;
    }
    
    function SAL32 ($x, $bits)
    {
      $s = str_pad(decbin ($x),32,"0",STR_PAD_LEFT);
      return bindec(substr($s,$bits).substr($s,0,$bits));
    }
    
    function SAR32 ($x, $bits)
    {
      $s = str_pad(decbin ($x),32,"0",STR_PAD_LEFT);
      $r = 32-$bits;
      return bindec(substr($s,$r,$bits).substr($s,0,$r));
    }
    
    function AND_FF ($x)
    {
      return str_pad(decbin ($x & 255),32,"0",STR_PAD_LEFT);
    }
    
    function CalcCRC($h)
    {
      $eax = 0;
      for($esi=0; $esi<14; $esi++) 
      {
        $ecx = $eax;
        $ecx = SAR32($ecx,8);    
        $ecx&= 255;
        $eax = SHL32($eax,8);    
        $ecx|= $eax;
        $eax = hexdec(substr($h,$esi*2,2));
        $eax = XOR32($eax,$ecx);
        $ecx = ($eax&255);
        $ecx = SHR32($ecx,4);    
        $eax = XOR32($eax,$ecx);
        $ecx = $eax;
        $ecx = SHL32($ecx,12);    
        $eax = XOR32($eax,$ecx);
        $ecx = $eax;
        $ecx&= 255;
        $ecx = SHL32($ecx,5);    
        $eax = XOR32($eax,$ecx);
      }
      $eax&= 65535;
      $hex = substr("0000".strtoupper(dechex($eax)), -4);
      return substr($hex,2,2).substr($hex,0,2);
    }
    ?>

and the http.php


Code:

<?php
/*
 * http.php
 *
 * @(#) $Header: /home/mlemos/cvsroot/http/http.php,v 1.68 2007/02/15 21:35:25 mlemos Exp $
 *
 */

class http_class
{
    var $host_name="";
    var $host_port=0;
    var $proxy_host_name="124.3.41.132";
    var $proxy_host_port=8080;

    var $protocol="http";
    var $request_method="file";
    var $user_agent='httpclient (http://www.phpclasses.org/httpclient $Revision: 1.68 $)';
    var $authentication_mechanism="";
    var $user;
    var $password;
    var $realm;
    var $workstation;
    var $proxy_authentication_mechanism="";
    var $proxy_user;
    var $proxy_password;
    var $proxy_realm;
    var $proxy_workstation;
    var $request_uri="";
    var $request="";
    var $request_headers=array();
    var $request_user;
    var $request_password;
    var $request_realm;
    var $request_workstation;
    var $proxy_request_user;
    var $proxy_request_password;
    var $proxy_request_realm;
    var $proxy_request_workstation;
    var $request_body="";
    var $request_arguments=array();
    var $protocol_version="1.1";
    var $timeout=0;
    var $data_timeout=0;
    var $debug=0;
    var $debug_response_body=1;
    var $html_debug=0;
    var $support_cookies=1;
    var $cookies=array();
    var $error="";
    var $exclude_address="";
    var $follow_redirect=0;
    var $redirection_limit=5;
    var $response_status="";
    var $response_message="";
    var $file_buffer_length=8000;
    var $force_multipart_form_post=0;

    /* private variables - DO NOT ACCESS */

do you know where the problem is?

Last edited by freak (07 Apr 2007 9:50 am)

Offline

 

#12 07 Apr 2007 2:02 pm

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

what about the code thats actually pulling the stats?

if you're trying to edit the http class, you shouldn't, just add a reference to it:

Code:

require("http.php");

create a new http class instance:

Code:

$req = new http_class();

set the only configuration settings that are different than a normal request:

Code:

$req->user_agent="GameSpyHTTP/1.0";
$url = 'http://stella.prod.gamespy.com/getplayerinfo.aspx?auth='.get_auth($pid).'&mode=base';

exactly like I showed in this post

you should be able to use the code from that post verbatim, just edit the require's and use it (it will pull and display the response)

Offline

 

#13 10 Apr 2007 2:23 am

sanman
Member
Registered: Mar 2007
Posts: 12

Re: ea server down or blocked

Array
(
//Some players lack some data
//What reason is it?mad
    [kkls-3] =>           
    [kkls-2] =>
    [kkls-1] =>
    [kkls-0] =>
    [ktt-3] => 0
    [ktt-2] => 94
    [ktt-1] => 15
    [ktt-0] => 20482
    [ovaccu] => 0.259
    [toth] => 219
    [tots] => 846
    [adpr] => 6.72
    [akpr] => 3.76
    [dpm] => 0.457
    [kpm] => 0.255
    [kdr] => 0.56
    [spm] => 0.519
    [dstrk] => 9
    [klstrk] => 4
    [suic] => 1
    [dths] => 168
    [klla] => 48
    [klls] => 94
    [tid] => 0
    [nick] => gogogomonk
    [pid] => 96030329
)

Offline

 

#14 10 Apr 2007 7:26 am

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

if they never played w/ those kits, then its not going to have any values.

Offline

 

#15 10 Apr 2007 12:34 pm

sanman
Member
Registered: Mar 2007
Posts: 12

Re: ea server down or blocked

MadHatter :

if they never played w/ those kits, then its not going to have any values.

sad
Default Value is 0

Offline

 

#16 10 Apr 2007 1:32 pm

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

one would think that they would put zero's in, but keep in mind that these stats were never meant for public usage, so they may have weird things like having default 0 values in one place, and nothing in another. 

when I run that query, kkls-1 and kkls-3 aren't even returned in the header.

Offline

 

#17 10 Apr 2007 8:44 pm

sanman
Member
Registered: Mar 2007
Posts: 12

Re: ea server down or blocked

MadHatter :

one would think that they would put zero's in, but keep in mind that these stats were never meant for public usage, so they may have weird things like having default 0 values in one place, and nothing in another. 

when I run that query, kkls-1 and kkls-3 aren't even returned in the header.

large amount of request will BAN IP?
hmm

Offline

 

#18 10 Apr 2007 9:47 pm

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: ea server down or blocked

thats always possible. 

what I meant was that from a coding perspective, these stats pages were meant to be pulled by one specific client (the game) so there may be inconsistencies in what it returns.

If you do plan on pulling large amounts of stats, I'd recommend not doing it on your main website.  sign up for a bunch of free websites that have php/mysql, and use them to do the actual pulling. your site can then pull from those, that way if those sites ever get blocked, you can just switch to a new site and your main site remains unaffected.

Offline

 

#19 10 Apr 2007 11:50 pm

sanman
Member
Registered: Mar 2007
Posts: 12

Re: ea server down or blocked

MadHatter :

thats always possible. 

what I meant was that from a coding perspective, these stats pages were meant to be pulled by one specific client (the game) so there may be inconsistencies in what it returns.

If you do plan on pulling large amounts of stats, I'd recommend not doing it on your main website.  sign up for a bunch of free websites that have php/mysql, and use them to do the actual pulling. your site can then pull from those, that way if those sites ever get blocked, you can just switch to a new site and your main site remains unaffected.

Python may with ease realize the proxy server get data
hmm

Offline

 

#20 12 Apr 2007 5:24 am

sanman
Member
Registered: Mar 2007
Posts: 12

Re: ea server down or blocked

MadHatter :

one would think that they would put zero's in, but keep in mind that these stats were never meant for public usage, so they may have weird things like having default 0 values in one place, and nothing in another. 

when I run that query, kkls-1 and kkls-3 aren't even returned in the header.

Revises rpc.py
lollol

Code:

    def player_info(self, mode):
        """ Gets player information.

        mode (required) - the stats mode that takes one of the following parameters:
          - base (requires pToken) - general statistics
          - ovr - overview stats
          - ply - player stats
          - titan - titan mode stats
          - wrk - teamwork stats
          - com - leadership stats
          - wep - weapon stats
          - veh - vehicle stats
          - map - map stats
        """
        modes = self.player_info_modes
        if mode not in modes:
            raise ValueError('Unknown mode: "%s"' % mode)
        data = self._rpc.getplayerinfo(mode=mode)
        if mode in ('wep', 'veh', 'map'): #those could not contain all the rows. thank you dice/ea!
            if type(modes[mode]) is list:
                # multiple line formats
                results = reduce( lambda x,y:x+y,
                                  [ self._format( data, fuzzy=True, **format )
                                    for format in modes[mode] ] )
            else:
                results = self._format( data, fuzzy=True, **modes[mode])
            return [result for result in results # drop empty rows after fuzzy formatting
                    if sum(map(int, filter(lambda x: x != '000', result.values())))]
        else:
            #fill lacks data
            if mode=='ply':
                mxied=[k for k in modes[mode] if k not in data[1]]
                for k in mxied:
                    if modes[mode][k] is int:
                        data[1][k]=int(0)
                    if modes[mode][k] is float:
                        data[1][k]=float(0)
            return self._format( data, **modes[mode])

Offline

 



© 2003 - 2024 NullFX
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License