|
|
|
14-03-26
|
조회 645
|
|
|
|
14-03-25
|
조회 712
|
|
|
|
14-03-24
|
조회 885
|
|
|
|
14-03-24
|
조회 752
|
|
|
|
14-03-22
|
조회 704
|
|
|
|
14-03-21
|
조회 732
|
|
|
|
14-03-19
|
조회 1,046
|
|
|
|
14-03-18
|
조회 2,872
|
|
|
|
14-03-18
|
조회 655
|
|
|
|
14-03-17
|
조회 677
|
|
|
|
14-03-17
|
조회 753
|
|
|
|
14-03-16
|
조회 1,086
|
|
|
|
14-03-15
|
조회 579
|
|
|
|
14-03-13
|
조회 1,427
|
|
|
|
14-03-13
|
조회 7,648
|
|
|
|
14-03-13
|
조회 1,375
|
|
|
|
14-03-13
|
조회 1,011
|
|
|
|
14-03-13
|
조회 917
|
|
|
|
14-03-11
|
조회 822
|
|
|
|
14-03-07
|
조회 1,390
|
|
|
|
14-03-07
|
조회 736
|
|
|
|
14-03-06
|
조회 1,148
|
|
|
|
14-03-06
|
조회 793
|
|
|
|
14-03-04
|
조회 809
|
|
|
|
14-03-04
|
조회 972
|
댓글 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'];