본문 바로가기

모의해킹/취약점분석 단계

취약점분석 단계 - (3) 오픈소스 nmap-bootstrap-xsl 활용

취약점분석 단계 - (3) 오픈소스 nmap-bootstrap-xsl 활용


nmap -sV <ip_address> -oX result.xml

- 위 명령으로 얻어진 .xml 파일은 데이터 정제가 되어있지 않아 사용자가 보기에 불편하다.


github의 nmap-bootstrap-xsl는 .xml파일을 정제시켜 visualization해준다.

xsltproc -o scanme.html nmap-bootstrap.xsl scanme.xml

위 명령을 통해 기존에 존재했던 scanme.xml -> scanme.html 으로 데이터를 정제해준다.


또는

nmap -sS -T4 -A -sC -oA scanme --stylesheet https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl scanme.nmap.org scanme2.nmap.org


nmap -sS -T4 -A -sC -oA scanme --stylesheet https://raw.githubusercontent.com/honze-net/nmap-bootstrap-xsl/master/nmap-bootstrap.xsl

<host> <host2>


위 명령을 이용하여 바로 정제된 .xml파일을 얻을 수 있다.