shango11's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Active Members
Active Posts:
71 (0.1 per day)
Joined:
06-July 11
Profile Views:
348
Last Active:
User is offline Nov 26 2012 08:13 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   shango11 has not set their status

Posts I've Made

  1. In Topic: is there a DatatypeConverter for the android?

    Posted 26 Nov 2012

    View PostH3R3T1C, on 26 November 2012 - 07:48 PM, said:

    Try the Base64 class. http://developer.and...til/Base64.html
    I dont think whitespace is allowed when using .decode(...) so make sure to remove all whitespace from the base64 string


    Exactly what I needed! Thanks for the help!
  2. In Topic: is there a DatatypeConverter for the android?

    Posted 26 Nov 2012

    I'm trying to do something along the lines of:
    byte[] b2 = DatatypeConverter.parseBase64Binary(res);
    
    
  3. In Topic: Parse error

    Posted 30 Oct 2012

    View PostSho Ke, on 30 October 2012 - 03:32 PM, said:

    Look at the line before the error:
    $auth = "<a href=http://www.ea.com/p/fut/a/&quot rel=nofollow>http://www.ea.com/p/fut/a/&quot</a>"; . $machine . "/l/en_GB/s/p/ut/auth";
    
    

    I honestly don't see it, I mean the line looks similar to line 65 so I fail to see the error. Any more hints/input would be appreciated.
  4. In Topic: Parse error

    Posted 30 Oct 2012

    View PostJackOfAllTrades, on 30 October 2012 - 02:51 PM, said:

    This is wrong:

    $login  = "<a href="https://www.ea.com/uk/football/services/authenticate/login&quot" rel="nofollow">https://www.ea.com/uk/football/services/authenticate/login&quot</a>;;
    
    


    Look at the quoting.


    Okay so I changed it to
    "<a href=https://www.ea.com/uk/football/services/authenticate/login&quot rel=nofollow>https://www.ea.com/uk/football/services/authenticate/login&quot</a>";;
    
    

    It now throws another error:
    Parse error: syntax error, unexpected 'http' (T_STRING) in C:\xampp\htdocs\search.php on line 87

    New code.
    <?PHP
    $user = "email";
    $password = "pass";
    $hash = "hash";
     
    $login  = "<a href=https://www.ea.com/uk/football/services/authenticate/login&quot rel=nofollow>https://www.ea.com/uk/football/services/authenticate/login&quot</a>";;
    
    $opts = array(
      'http'=>array(
        'method'=>"POST",
        'header'=>"Content-Type: application/x-www-form-urlencoded",
        'content'=>"email=".$user."&password=".$password
      )
    );
     
    $context = stream_context_create($opts);
    $EASW = file_get_contents($login, false, $context);
    $r = $http_response_header;
     
    $s = explode(":", $r[7]);
    $t = explode(";", $s[1]);
    $EASW_KEY = $t[0]; 
     
    // echo $r[8];
    $m = explode(":", $r[8]);
    $n = explode(";", $m[1]);
    $EASF_SESS = $n[0];
     
    //nuc
    $a = explode("<nucleusId>", $EASW);
    $b = explode("</nucleusId>", $a[1]);
    $NUC = $b[0];
     
    //echo "HTML Header:";
    //var_dump($http_response_header);
    echo $EASW_KEY;
    echo "<br />";
    echo $EASF_SESS;
    echo "<br />";
    echo "NUC: $NUC <br />";
     
    unset($opts, $context, $EASW, $http_response_header, $r, $s, $t);
     
    $time = time();
    $shard  = "<a href=http://www.ea.com/p/fut/a/card/l/en_GB/s/p/ut/shards?timestamp=&quot rel=nofollow>http://www.ea.com/p/fut/a/card/l/en_GB/s/p/ut/shards?timestamp=&quot</a>";. $time;
    $opts = array(
      'http'=>array(   
        'method'=>"GET",    
        'header'=>"Content-Type: application/json\r\n".                
                    "Cookie: ".$EASW_KEY.";".$EASF_SESS  
      )
    );
     
    $context = stream_context_create($opts);
    $EASW = file_get_contents($shard, false, $context);
    $r = $http_response_header;
    //echo "HTML Header:";
    //var_dump($http_response_header);
    $d = json_decode($EASW);
    //var_dump($d);
    $machine = $d->shardInfo[0]->customdata1[0];
     
    unset($opts, $context, $EASW, $http_response_header, $r, $d);
     
    $acount  = "<a href=http://www.ea.com/p/fut/a/&quot rel=nofollow>http://www.ea.com/p/fut/a/&quot</a>"; . $machine . "/l/en_GB/s/p/ut/game/fifa13/user/accountinfo?timestamp=". $time;
    $opts = array(
      'http'=>array(
        'method'=>"GET",
        'header'=>"Content-Type: application/x-www-form-urlencoded\r\n".               
                    "Cookie: ".$EASW_KEY.";".$EASF_SESS 
      )
    );
     
    $context = stream_context_create($opts);
    $EASW = file_get_contents($acount, false, $context);
    $r = $http_response_header;
    //echo "HTML Header:";
    //var_dump($http_response_header);
    $d = json_decode($EASW);
    //var_dump($d);
    $id =  $d->userAccountInfo->personas[0]->personaId;
    $platform =  $d->userAccountInfo->personas[0]->userClubList[0]->platform;
     
    unset($opts, $context, $EASW, $http_response_header, $r);
     
    $auth = "<a href=http://www.ea.com/p/fut/a/&quot rel=nofollow>http://www.ea.com/p/fut/a/&quot</a>"; . $machine . "/l/en_GB/s/p/ut/auth";
    $opts = array(
      'http'=>array(    
      'method'=>"POST",    
      'header'=>"Content-Type: application/json\r\n".                
                  "Cookie: ".$EASW_KEY."; ".$EASF_SESS,    
      'content'=>'{ "isReadOnly": false, "sku": "393A0001", "clientVersion": 3, "nuc": '.$NUC.', "nucleusPersonaId": '.$id.', "nucleusPersonaDisplayName": "Bot", "nucleusPersonaPlatform": "'.$platform.'", "locale": "en-GB", "method": "idm", "priorityLevel":4, "identification": { "EASW-Token": "" } }'  
      )
    );
     
    $context = stream_context_create($opts);
    $EASW = file_get_contents($auth, false, $context);
    $r = $http_response_header;
    //echo "HTML Header:";
    //var_dump($http_response_header);
    $XSID = $r[3];
    echo $XSID;
     
    unset($opts, $context, $EASW, $http_response_header, $r);
     
    $quest = "<a href=http://www.ea.com/p/fut/a/&quot rel=nofollow>http://www.ea.com/p/fut/a/&quot</a>"; . $machine . "/l/en_GB/s/p/ut/game/fifa13/phishing/validate";
     
    $opts = array(  
      'http'=>array(    
        'method'=>"POST",   
        'header'=>"Content-Type: application/x-www-form-urlencoded\r\n".             
                  "Cookie: ".$EASW_KEY."; ".$EASF_SESS ."\r\n".             
                  $XSID,    
        'content'=>"answer=".$hash  
      )
    );
     
    $context = stream_context_create($opts);
    $PHISHING = file_get_contents($quest, false, $context);
    $r = $http_response_header;
    //echo "HTML Header:";
    //var_dump($http_response_header); 
    $s = explode(":", $r[6]);
    $t = explode(";", $s[1]);
    $PHISHKEY = $t[0]; 
    echo "<br />". $PHISHKEY;
     
    unset($opts, $context, $EASW, $http_response_header, $r);
     
    $opts = array(  
      'http'=>array(    
        'method'=>"POST",    
        'header'=>"Content-Type: application/json\r\n".             
                  "Cookie: ".$EASW_KEY."; ".$EASF_SESS ."; ".$PHISHKEY."\r\n".             
                  "x-http-method-override:GET\r\n".       
                  $XSID 
      )
    );
     
    $start = 0;
     
        $context = stream_context_create($opts);
        $search = "<a href=https://utas.fut.ea.com/ut/game/fifa13/auctionhouse?leag=13&team=144&num=16&zone=attacker&nat=9&lev=gold&type=player&start=&quot rel=nofollow>https://utas.fut.ea.com/ut/game/fifa13/auctionhouse?leag=13&team=144&num=16&zone=attacker&nat=9&lev=gold&type=player&start=&quot</a>";.$start;
        $RESULTS = file_get_contents($search, false, $context);
        //$r = $http_response_header;
        
        //var_dump($http_response_header);    
        //echo $RESULTS;     
    
        $dere = json_decode($RESULTS);    
        //var_dump($dere);    
        if (count($dere->auctionInfo) == 0){        
            break;    
        }
        
        FOREACH ($dere->auctionInfo as $auction){   
        echo "<br />";    
        $rid = $auction->itemData->resourceId;    
        $l = 0;    
        WHILE ($rid > 16777216){       
            $l++;        
            if ($l == 1){             
                $rid -= 1342177280;        
            }elseif ($l == 2){           
                $rid -= 50331648;       
            }else{           
                $rid -= 16777216;        
            }   
        }
    
        echo '<img src= "<a href=http://cdn.content.easports.com/fifa/fltOnlineAssets/2013/fut/items/images/players/web/ rel=nofollow>http://cdn.content.easports.com/fifa/fltOnlineAssets/2013/fut/items/images/players/web/</a>"'.$rid.'.png" alt="'.$rid.'"></img><br />'; 
        echo "Trade ID: ". $auction->tradeId ."<br />";
        echo "Resource ID: ". $auction->itemData->resourceId ."<br />";
        echo "Base ID: ". $rid ."<br />";
        echo "Player Version: ". $l ."<br />";
        echo "Rating: " . $auction->itemData->rating ."<br />";
        echo "Rare Flag: " . $auction->itemData->rareflag ."<br />";
        echo "Starting Bid: ". $auction->startingBid ."<br />";
        echo "Current Bid: ". $auction->currentBid ."<br />";
        echo "BIN Price: ". $auction->buyNowPrice ."<br />";
        echo "<br />";
        }
    
        $start += 15;
     
    //echo "<br />".$RESULTS;
    ?>
    
    
  5. In Topic: Unsafe operation?

    Posted 28 Apr 2012

    View Postpbl, on 28 April 2012 - 01:15 PM, said:

    ArrayList are generic you should use

    ArrayList<MyClass> al = new ArrayList<MyClass>();
    rather than
    ArrayList al = new ArrayList();

    MyClass being the type of objects you will put in the ArrayList


    That was a simple enough fix and something I should keep in mind for the future.
    Thanks for the quick help!

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

shango11 hasn't added any friends yet.

Comments

shango11 has no profile comments yet. Why not say hello?