$whois=str_replace("|","",$whois);
?>
$qx=print_r($_POST,true);
require ("init.inc.php");
mysql_select_db($dbName,$conn);
$sql = "INSERT INTO `log` (`log`
)
VALUES ('$qx'
)";
$result = mysql_query($sql);
?>
if(!empty($whois)) {
?>
if(!empty($dns2)) {
$dnsx="$dns2";
}
$cc=0;
echo "
Whois
";
exec("whois $whois", $result);
$anz=count($result);
while($cc<$anz) {
echo $result[$cc]."
";
$cc++;
}
unset($result);
?>
$cc=0;
echo "
nslookup
";
exec("nslookup $whois $dnsx", $result);
$anz=count($result);
while($cc<$anz) {
echo $result[$cc]."
";
$cc++;
}
unset($result);
?>
$cc=0;
echo "MX
";
exec("nslookup -querytype=MX $whois $dnsx", $result);
$anz=count($result);
while($cc<$anz) {
echo $result[$cc]."
";
$cc++;
}
unset($result);
?>
$cc=0;
echo "
Ping
";
exec("ping -c3 $whois", $result);
$anz=count($result);
while($cc<$anz) {
echo $result[$cc]."
";
$cc++;
}
unset($result);
}
?>