|
|
|
14-03-14
|
조회 1,375
|
|
|
|
14-03-14
|
조회 1,238
|
|
|
묵공
|
14-03-14
|
조회 1,263
|
|
|
|
14-03-14
|
조회 1,345
|
|
|
|
14-03-14
|
조회 1,167
|
|
|
亞波治
|
14-03-14
|
조회 1,239
|
|
|
묵공
|
14-03-14
|
조회 1,313
|
|
|
묵공
|
14-03-14
|
조회 1,389
|
|
|
|
14-03-14
|
조회 1,248
|
|
|
|
14-03-14
|
조회 1,553
|
|
|
亞波治
|
14-03-14
|
조회 1,972
|
|
|
|
14-03-14
|
조회 1,262
|
|
|
|
14-03-14
|
조회 1,245
|
|
|
|
14-03-14
|
조회 3,026
|
|
|
|
14-03-13
|
조회 1,352
|
|
|
|
14-03-13
|
조회 1,359
|
|
|
|
14-03-13
|
조회 1,895
|
|
|
|
14-03-13
|
조회 2,215
|
|
|
|
14-03-13
|
조회 1,274
|
|
|
|
14-03-13
|
조회 2,034
|
댓글 2개
$ports = array(21, 25, 80, 81, 110, 443, 3306);
foreach ($ports as $port)
{
$connection = @fsockopen($host, $port);
if (is_resource($connection))
{
echo '<h2>' . $host . ':' . $port . ' ' . '(' . getservbyport($port, 'tcp') . ') is open.</h2>' . "\n";
fclose($connection);
}
else
{
echo '<h2>' . $host . ':' . $port . ' is not responding.</h2>' . "\n";
}
}
php 로 포트 확인하고 결과물을 html 로 보여주는거죠.
아래 접속자 IP 보여주는 거는
echo $_SERVER['REMOTE_ADDR'];