Nmap 포트 스캔은 65000 개의 우분투 (20.04) 포트가 모두 닫 혔음을 보여줍니다.


2

이게 어리석은 질문이라면 용서하세요. 저는 현재 교육 목적으로 nmap / metasploit을 사용하고 있습니다.메타 스플 로이터 블 OS를 사용하는 것이 지겨워서 약간의 재미를 느끼고 홈 OS (ubuntu 20.04)에 손상을 줄 수 있는지 확인했지만 내 컴퓨터의 nmap 스캔을 실행하면 0이 표시됩니다.-p-를 사용하여 65,000 개의 버그를 모두 스캔하더라도 포트를 엽니 다.그들 중 하나가 열려있을 것입니다.하지만 아닙니다.다음은 nmap에서받은 응답입니다.

nmap scan = nmap -sV -p- ***.***.***.***
nmap results = All 65535 scanned ports on hostname (ip address) are closed

이 모든 포트가 닫힌 것으로 표시되는 논리적 이유를 생각할 수 없습니다.나는 우분투에 익숙하지 않고 현재 사용하고있는 도구도 더 새로워 서 어딘가에 근본적으로 뭔가를 오해하고 있다고 생각합니까?모든 의견에 미리 감사드립니다.

1

The nmap needs the ping feature enabled in the firewall that it can recognize a host. If the host does not respond to "ping probes" it will usually reported as down.

$ nmap -sV -p- 4.2.2.1

Starting Nmap 7.40 ( https://nmap.org ) at 2020-06-30 21:58 WEST
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.38 seconds

But when you enable the -Pn flag the to disable the normal "ping probe" behaviour it is able to scan the host:

$ nmap -Pn 4.2.2.1

Starting Nmap 7.40 ( https://nmap.org ) at 2020-06-30 21:59 WEST
Nmap scan report for a.resolvers.level3.net (4.2.2.1)
Host is up (0.090s latency).
Not shown: 999 filtered ports
PORT   STATE SERVICE
53/tcp open  domain

Nmap done: 1 IP address (1 host up) scanned in 9.64 seconds

Now that you find all ports blocked might be that the host is blocking your "nmap host" where you run the scan.

Or the scanned host might recognize the "nmap probe pattern" and just ignore it.