Kjo është një PHP Port scanner.
Për me fut në funksion duhet që ta futni në një web site që pranon PHP dhe lidheni.
Kodi:
* Coded on 01/18/08 @ 06:23AM ¬
* | _
* Reason for coding: boredom ~
*
* If you use this script, then I take no responsibility_
* for what you may do with it, you take FULL responsibility.
* I coded this purely out of boredom and don't expect anybody_
* to use it for illegal activity, what you do with this script_
* will be solely upon your own decision.
*
* Most Internet Service Providers prohibit any kind of nature,
* such as high traffic(usually caused by bots/scans,etc.) and_
* again I take no responsibility in the event that you get your_
* Internet cut. That is 100% upon your own decision, this you_
* take full responsibility in using the following code today.
**/
if($_GET['host'] && $_GET['pstart'] && $_GET['pend']) {
if(!empty($_GET)) foreach($_GET as $k => $v) $_GET[$k] = htmlentities($v);
$html = "<form action='http://anonymouse.org/cgi-bin/anon-www_de.cgi/http://www.khg-crew.ws/cgi-bin/anon-www_de.cgi/http://www.khg-crew.ws/forum/{$_SERVER['PHP_SELF']}' method='get'>\n".
" Host:\n <input type='text' name='host' value='{$_GET['host']}' />\n".
" Ranges:\n <input type='text' name='pstart' size='3' maxlength='5' value='{$_GET['pstart']}'> - <input type='text' name='pend' size='3' maxlength='5' value='{$_GET['pend']}'>\n";
$host=$_GET['host']; $pstart=$_GET['pstart']; $pend=$_GET['pstart'];
}
else {
if(!empty($_POST)) foreach($_POST as $k => $v) $_POST[$k] = strip_tags(htmlentities($v));
$html = "<form action='http://anonymouse.org/cgi-bin/anon-www_de.cgi/http://www.khg-crew.ws/cgi-bin/anon-www_de.cgi/http://www.khg-crew.ws/forum/{$_SERVER['PHP_SELF']}' method='post'>\n".
" Host:\n <input type='text' name='host' value='{$_POST['host']}' />\n".
" Ranges:\n <input type='text' name='pstart' size='3' maxlength='5' value='{$_POST['pstart']}'> - <input type='text' name='pend' size='3' maxlength='5' value='{$_POST['pend']}'>\n";
if($_POST['host'] && $_POST['pstart'] && $_POST['pend'])
$html .=" Hard Link:\n <input type='text' readonly='readonly' value='http://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}?host={$_POST['host']}&pstart={$_POST['pstart']}&pend={$_POST['pend']}' />\n";
$host=$_POST['host']; $pstart=$_POST['pstart']; $pend=$_POST['pend'];
}
$html .="\n <input type='submit' value='submit' />\n".
"</form>\n";
echo "<pre>{$html}";
if(!is_numeric($pstart) || !is_numeric($pend) || $pstart>$pend) {
die("<b><font color='red'>You've entered an incorrect port range!\nPlease hit the back button on your browser and attempt again with a correct port range.</font></b>");
}
else {
if(isset($host) && isset($pstart) && isset($pend)) {
set_time_limit(0);
for($port=$pstart; $port<=$pend; $port++) {
$fp=@fsockopen($host, $port, $errno, $errstr, 5);
if($fp) {
$ports['alive'][$port]=$port;
}
else {
$ports['dead'][$port]=$port;
}
}
print_r($ports);
}
}
echo"</pre>";
?>