add timeout for whois
This commit is contained in:
@@ -95,7 +95,7 @@ function show_whois($target) {
|
|||||||
preg_match('/[a-zA-Z\d\-]+\.[a-zA-Z\d]+$/', $target, $m);
|
preg_match('/[a-zA-Z\d\-]+\.[a-zA-Z\d]+$/', $target, $m);
|
||||||
$target = $m[0];
|
$target = $m[0];
|
||||||
}
|
}
|
||||||
$whois = shell_exec("whois " . $target );
|
$whois = shell_exec("timeout 5 whois " . $target );
|
||||||
echo "<pre>"; print_r($whois); echo "</pre>";
|
echo "<pre>"; print_r($whois); echo "</pre>";
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user