Rotutorial
www.rotutorial.3xforum.ro Aici gasesti Tutoriale Photoshop,MUonline,Counter-Strike,HTML,PhP,CSS,si multe altele
|
Nou pe simpatie: Andreea Miluta pe Simpatie.ro
 | Femeie 24 ani Braila cauta Barbat 30 - 48 ani |
|
|
RotutorialInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
|
| #1 |
AdminAdministrator
Postari: 67
|
|
Code:
<?php
$target = "72.14.207.99"; // your target
$ports = array(21, 25, 79, 80); // [url]http://www.iss.net/security_center/advice/Exploits/Ports/default.htm[/url]
$timeout = 1; // ...timeout
function portScan($host, $port, $timeout=30) {
$fp = @fsockopen($host, $port, $errno, $errstr, $timeout);
if ($fp) {
return True;
} else {
return False;
}
}
ob_start();
foreach($ports as $port) {
$scan=portScan($target, $port, $timeout);
if($scan[0]) {
echo "Success $target:$port<br />";
} else {
echo "Fail $target:$port<br />";
}
ob_flush(); // Used to send data right after instead of waiting for entire scan
flush(); // See last comment.
}
?> |
|
|
| |
|