HelpCBL Checker -- FAILING!!!

Posts 1–2 of 2 · Page 1 of 1
CBL Checker -- FAILING!!!
I was making a Multi-Tool for Combat Arms I made a CBL checker with this code.


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then
PictureBox1.ImageLocation = "http://sig.thecbl.net/player/" & TextBox1.Text & ".jpg"
End If
If RadioButton2.Checked = True Then
PictureBox1.ImageLocation = "http://sig.thecbl.net/clan/" & TextBox1.Text & ".jpg"
End If
for some reason the image comes up as a cat(lol wtf) no matter what you type BUT if I use a webbrowser it shows the right image.

I added a "Save Image" function, and saves it properly, but saves it as a loooooooong cat...
first of all. its now
Code:
http://sig.cbl.statdrive.net/player/
add a simple bypass.
here use mine for player.
Code:
<?PHP
 class mycurl {
     protected $_useragent = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows  NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)';
     protected $_url;
     protected $_followlocation;
      protected $_timeout;
     protected $_maxRedirects;
     protected $_cookieFileLocation = './cookie.txt';
     protected $_post;
     protected $_postFields;
     protected $_referer ="Google";
     protected $_session;
     protected $_webpage;
     protected $_includeHeader;
     protected $_noBody;
     protected $_status;
     protected $_binaryTransfer;
     public    $authentication = 1;
      public    $auth_name      = '';
     public    $auth_pass      = '';
     public function useAuth($use){
       $this->authentication = 0;
       if($use === true) $this->authentication = 1;
      }
     public function setName($name){
       $this->auth_name = $name;
     }
     public function setPass($pass){
       $this->auth_pass = $pass;
     }
     public function __construct($url,$followlocation = true,$timeOut =  30,$maxRedirecs = 4,$binaryTransfer = false,$includeHeader =  false,$noBody = false)
      {
         $this->_url = $url;
         $this->_followlocation = $followlocation;
         $this->_timeout = $timeOut;
         $this->_maxRedirects = $maxRedirecs;
         $this->_noBody = $noBody;
          $this->_includeHeader = $includeHeader;
         $this->_binaryTransfer = $binaryTransfer;
         $this->_cookieFileLocation = dirname(__FILE__).'/cookie.txt';
     }
     public function setReferer($referer){
        $this->_referer = $referer;
     }
     public function setCookiFileLocation($path)
     {
         $this->_cookieFileLocation = $path;
     }
     public function setPost ($postFields)
      {
        $this->_post = true;
        $this->_postFields = $postFields;
     }
     public function setUserAgent($userAgent)
     {
         $this->_useragent = $userAgent;
     }
     public function createCurl($url = 'nul')
     {
        if($url != 'nul'){
          $this->_url = $url;
        }
         $s = curl_init();
         curl_setopt($s,CURLOPT_URL,$this->_url);
         // curl_setopt($s,CURLOPT_HTTPHEADER,array('Expect:')  );
         curl_setopt($s,CURLOPT_TIMEOUT,$this->_timeout);
         curl_setopt($s,CURLOPT_MAXREDIRS,$this->_maxRedirects);
         curl_setopt($s,CURLOPT_RETURNTRANSFER,true);
          curl_setopt($s,CURLOPT_FOLLOWLOCATION,$this->_followlocation);
         curl_setopt($s,CURLOPT_COOKIEJAR,$this->_cookieFileLocation);
         curl_setopt($s,CURLOPT_COOKIEFILE,$this->_cookieFileLocation);
          curl_setopt($s, CURLOPT_SSLVERSION,3); 
         curl_setopt($s, CURLOPT_SSL_VERIFYPEER, FALSE);
         curl_setopt($s, CURLOPT_SSL_VERIFYHOST, 2);
         if($this->authentication == 1){
             curl_setopt($s, CURLOPT_HTTPAUTH, CURLAUTH_ANY ) ; 
            curl_setopt($s, CURLOPT_USERPWD, $this->auth_name.':'.$this->auth_pass);
         }
         if($this->_post)
         {
             curl_setopt($s,CURLOPT_POST,true);
             curl_setopt($s,CURLOPT_POSTFIELDS,$this->_postFields);
         }
         if($this->_includeHeader)
         {
               curl_setopt($s,CURLOPT_HEADER,true);
         }
         if($this->_noBody)
         {
             curl_setopt($s,CURLOPT_NOBODY,true);
          }
         /*
         if($this->_binary)
         {
             curl_setopt($s,CURLOPT_BINARYTRANSFER,true);
         }
         */
         //curl_setopt($curl, CURLOPT_POSTFIELDS, $params );
          curl_setopt($s, CURLOPT_RETURNTRANSFER, true); 
         curl_setopt($s,CURLOPT_USERAGENT,$this->_useragent);
         curl_setopt($s,CURLOPT_REFERER,$this->_referer);
         $this->_webpage = curl_exec($s);
                    $this->_status = curl_getinfo($s,CURLINFO_HTTP_CODE);
         curl_close($s);
     }
   public function getHttpStatus()
   {
       return $this->_status;
   }
   public function __tostring(){
       return $this->_webpage;
   }
}
if (isset($_REQUEST['avatar'])  && trim($_REQUEST['avatar']) != '') {
    $valid = array('jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'png' => 'image/png', 'gif' => 'image/gif');
     $ext = strtolower(end(explode('.', $_REQUEST['avatar'])));
    if (isset($valid[$ext])) {
        $remote_image = 'http://sig.thecbl.net/player/' . urldecode($_REQUEST['avatar']);
         //$content = file_get_contents($remote_image);
        $curl = new mycurl($remote_image,true,30,10,false,false,false)  ;
        $curl->createCurl();
        $content =  $curl->__tostring();
        header('Content-Type: ' . $valid[$ext]);
         echo $content;
    }
}
exit();
?>                      
you might have to edit it a bit to work with the new site... its simple

the new way to use it is...
Code:
PictureBox1.ImageLocation = "Whtever.com" + TextBox1.Text + ".jpg"                      
or you can just use this its live.
Code:
http://216.46.52.236/~docvert/kegan/index.php?avatar=clan/

http://216.46.52.236/~docvert/kegan/index.php?avatar=player/
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us