0

<?php /**/ ?>
<form action="" method="POST">
0<input name="mobile" type="text"><input type="submit" value="Send">
</form>
<?php
$mobile 
= (integer) $_POST['mobile'];

if(
strlen($mobile)==9){
    
$post "service=00000111484D911C-00045&address=0$mobile&x=34&y=8";
    
$fp fsockopen('212.118.154.8'80);
    
$out ="POST /frontofficealjawal/Login.action HTTP/1.1\r\n";
    
$out .="Host: 212.118.154.8\r\n";
    
$out .="User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11\r\n";
    
$out .="Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n";
    
$out .="Accept-Language: ar-sa,en;q=0.5\r\n";
    
$out .="Accept-Encoding: gzip,deflate\r\n";
    
$out .="Accept-Charset: windows-1256,utf-8;q=0.7,*;q=0.7\r\n";
    
$out .="Keep-Alive: 300\r\n";
    
$out .="Connection: keep-alive\r\n";
    
$out .="Referer: http://212.118.154.8/frontofficealjawal/login.view\r\n";
    
$out .="Content-Type: application/x-www-form-urlencoded\r\n";
    
$out .="Cookie: JSESSIONID=aMyAQbFVbkmd\r\n";
    
$out .="Content-Length: ".strlen($post)."\r\n";
    
$out .="\r\n";
    
$out .=$post;
    if(
$fp){
        
fwrite($fp$out);
        while (!
feof($fp)) {
            
$data .=fgets($fp128);
        }
        
fclose($fp);
        
preg_match('/Your model:(.*)<input/sU',$data,$out);
        print 
"Mobile:<b>0$mobile</b><br />Type:<b>$out[1]</b>";
    }else{
        print 
"Connection Error";
    }

}
print 
"<hr>";highlight_file(__FILE__);//هذا الكود يعمل على جهازي الشخصي ولا يعمل على الموقع , لا اعلم لماذا !!!
?>