add timeout for whois

This commit is contained in:
2020-06-22 18:01:48 +02:00
parent 90be3e54b9
commit 9ec952236f

View File

@@ -95,7 +95,7 @@ function show_whois($target) {
preg_match('/[a-zA-Z\d\-]+\.[a-zA-Z\d]+$/', $target, $m);
$target = $m[0];
}
$whois = shell_exec("whois " . $target );
$whois = shell_exec("timeout 5 whois " . $target );
echo "<pre>"; print_r($whois); echo "</pre>";
echo "<br />\n";
}