diff --git a/index.php b/index.php index 97192c9..67129f2 100644 --- a/index.php +++ b/index.php @@ -279,13 +279,12 @@
"; - echo shell_exec('ping '.$IP.' -c 3'); - echo "Traceroute $IP
"; - echo shell_exec('traceroute '.$IP.''); + $ip =$_POST['IP']; + if (filter_var($ip, FILTER_VALIDATE_IP)) { + echo "Pinge $ip:"; + echo shell_exec('ping '.$ip.' -c 3'); + echo "Traceroute $ipP"; + echo shell_exec('traceroute '.$ip.''); echo ""; } else {