<?
class connect{
var $Packet_length = 255;
var $Check_length = 39;
var $First;
var $Second;
var $result;
var $Type ="0";
var $UserID ="n ";
var $Password = "wife ";
var $Service_type ="111";
var $Content_Control;
var $Content_result;
var $Check_Sum;
function getConnect(){
$this->First = dechex($this->Check_length);
$this->result = $this->Packet_length - $this->Check_length;
$this->Second = dechex($this->result);
echo $this->First . ' ' . $this->Second . ' ' ;
print "\n\n";
$this->Content_Control = $this->Type . $this->UserID . $this->Password . $this->Service_type;
for($i =0; $i <strlen($this->Content_Control); $i++){
$this->Content_result .= dechex(ord(substr($this-
Content_Control,$i))) . ' ';
}// end for
echo $this->Content_result . ' ';
print "\n\n";
}//end getConnect
}//end class
$obj = new connect();
$obj->getConnect();
$obj->Test();
?>
1.The first output is = 27 d8
2.The second output is = 30 6e 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 77 69 66 65 20 20 20 20 20 20
20 20 20 20 20 20 31 31 31
- how can i use XOR to get output from
$d = $this->First ^ $this->Second ^ $this->Content_result;
how can i get output from $d become [bd] ?????????