From 97b44a0935c12400e78a73da332e9378ff0244d9 Mon Sep 17 00:00:00 2001 From: mxmehl Date: Mon, 6 Feb 2017 15:18:50 +0100 Subject: [PATCH] add whois output --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 2d7051a..b345778 100644 --- a/index.php +++ b/index.php @@ -26,8 +26,12 @@ if($method === "simple") { // simple echo "HOSTNAME: " . $hostname; echo "
"; echo "IPv4 REVERSE LOOKUP: " . implode(', ', gethostbynamel($hostname)); + echo "

WHOIS:"; + $whois = shell_exec("whois " . $_SERVER['REMOTE_ADDR']); + echo "
"; print_r($whois); echo "
"; + echo "
"; - echo "

"; + echo "


"; echo 'Plain IP address: IPv4 | IPv6'; echo "
"; echo 'Detailed header info: IPv4 | IPv6';