PHP:
ProbeMyPorts
[CODE]
<?php
error_reporting(0);
/*
* Author : Vick Kumar
* Website : www.phpcanyon.net
* Date : 8/12/2011
* Purpose : Probe a User Specified Port
*/
$port = $_GET['port'];
if($port=="")
{
echo 'Please enter a Port then press submit!';
}
else
{
$url = "https://www.grc.com/x/portprobe=$port";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
if(strpos($result, 'Stealth') !== false)
{
echo "$port is in stealth-mode. There is no existance of this port open on the internet to anyone.";
}
else
echo "$port is open, close it or you can get hacked/ddos'd";
}
?>
<html>
<head>
<title>PHP PmP Script</title>
</head>
<body>
<form method="get" action="probemyport.php">
Enter Port: <input type="text" size="5" name="port" /><input type="submit" value="Submit"/>
</form>
</body>
</html>
[/CODE]