리눅스

nmap 명령어를 사용해 서비스 버전과 운영체제를 확인하는 방법

변군이글루 2025. 9. 5. 22:15
반응형

nmap 명령어를 사용해 서비스 버전과 운영체제를 확인하는 방법

서비스 버전(Service Version) 확인

nmap -sV [IP 주소 또는 도메인]

운영체제(OS) 확인

nmap -O [IP 주소 또는 도메인]

서비스 버전과 운영체제 동시 확인

nmap -sV -O [IP 주소 또는 도메인]

또는

nmap -A [IP 주소 또는 도메인]

스위치(Cisco switch)

nmap -sV -O 192.168.10.102
Starting Nmap 7.80 ( https://nmap.org ) at 2025-09-05 16:55 KST
Nmap scan report for 192.168.10.102
Host is up (0.023s latency).
Not shown: 998 closed ports
PORT     STATE    SERVICE    VERSION
443/tcp  open     ssl/https?
6667/tcp filtered irc
Device type: WAP
Running: Cisco IOS 15.X
OS CPE: cpe:/o:cisco:ios:15.2
OS details: Cisco Aironet 1042N WAP (IOS 15.2)
Network Distance: 1 hop

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 39.95 seconds

스위치(Nortel Alteon switch)

nmap -sV -O 192.168.10.100
Starting Nmap 7.80 ( https://nmap.org ) at 2025-09-05 16:45 KST
Nmap scan report for 192.168.10.100
Host is up (0.019s latency).
Not shown: 998 closed ports
PORT     STATE    SERVICE VERSION
23/tcp   open     telnet  Nortel Alteon switch telnetd
6667/tcp filtered irc
No exact OS matches for host (If you know what OS is running on it, see https://nmap.org/submit/ ).
TCP/IP fingerprint:
...

Network Distance: 1 hop
Service Info: Device: switch

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 18.48 seconds

리눅스(Ubuntu)

nmap -sV -O 192.168.10.101
Starting Nmap 7.80 ( https://nmap.org ) at 2025-09-05 16:55 KST
Nmap scan report for control-plane.minikube.internal (192.168.10.101)
Host is up (0.000034s latency).
Not shown: 996 closed ports
PORT     STATE    SERVICE         VERSION
22/tcp   open     ssh             OpenSSH 8.9p1 Ubuntu 3ubuntu0.13 (Ubuntu Linux; protocol 2.0)
5432/tcp filtered postgresql
8081/tcp filtered blackice-icecap
8443/tcp open     ssl/https-alt
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
...
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:linux_kernel:2.6.32
OS details: Linux 2.6.32
Network Distance: 0 hops
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 96.37 seconds

 

참고URL

- 변군이글루 블로그 : nmap 명령어

- NMAP.ORG : Nmap Reference Guide

 

728x90
반응형