|
|
묵공
|
14-03-14
|
조회 1,384
|
|
|
|
14-03-14
|
조회 1,247
|
|
|
|
14-03-14
|
조회 1,550
|
|
|
亞波治
|
14-03-14
|
조회 1,970
|
|
|
|
14-03-14
|
조회 1,261
|
|
|
|
14-03-14
|
조회 1,245
|
|
|
|
14-03-14
|
조회 3,024
|
|
|
|
14-03-13
|
조회 1,351
|
|
|
|
14-03-13
|
조회 1,357
|
|
|
|
14-03-13
|
조회 1,891
|
|
|
|
14-03-13
|
조회 2,214
|
|
|
|
14-03-13
|
조회 1,273
|
|
|
|
14-03-13
|
조회 2,033
|
|
|
|
14-03-13
|
조회 1,892
|
|
|
|
14-03-13
|
조회 3,129
|
|
|
|
14-03-13
|
조회 7,998
|
|
|
|
14-03-13
|
조회 1,332
|
|
|
|
14-03-13
|
조회 1,323
|
|
|
|
14-03-13
|
조회 1,289
|
|
|
|
14-03-13
|
조회 1,241
|
댓글 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'];