您当前的位置:首页 > 学海无涯 > 信息安全网站首页信息安全
NMap使用详解
发布时间:2016-01-13作者:佚名
三、例子
整个子网检测的Netbios
#Nmap -sV -v -p 139,445 10.0.1.0/24
Starting Nmap 6.47 ( http://nmap.org ) at 2014-12-11 21:26 GMT Nmap scan report for nas.decepticons 10.0.1.12 Host is up (0.014s latency). PORT STATE SERVICE VERSION 139/tcp open netbios-ssn Samba smbd 3.X (workgroup: MEGATRON) 445/tcp open netbios-ssn Samba smbd 3.X (workgroup: MEGATRON) Service detection performed. Please report any incorrect results at http://nmap.org/submit/ . Nmap done: 256 IP addresses (1 hosts up) scanned in 28.74 seconds
Nmap 查找Netbios名称
#nmap -sU --script nbstat.nse -p 137 10.0.1.12
Starting Nmap 6.47 ( http://nmap.org ) at 2014-12-11 21:26 GMT Nmap scan report for nas.decepticons 10.0.1.12 Host is up (0.014s latency).PORT STATE SERVICE VERSION137/udp open netbios-nsHost script results:|_nbstat: NetBIOS name: STARSCREAM, NetBIOS user: unknown, NetBIOS MAC: unknown (unknown) Nmap done: 256 IP addresses (1 hosts up) scanned in 28.74 seconds
如果开启Netbios服务,检查是否存在漏洞
#nmap --script-args=unsafe=1 --script smb-check-vulns.nse -p 445 10.0.0.1
Nmap scan report for ie6winxp.decepticons (10.0.1.1) Host is up (0.00026s latency). PORT STATE SERVICE 445/tcp open microsoft-ds Host script results: | smb-check-vulns: | MS08-067: VULNERABLE | Conficker: Likely CLEAN | regsvc DoS: NOT VULNERABLE | SMBv2 DoS (CVE-2009-3103): NOT VULNERABLE |_ MS07-029: NO SERVICE (the Dns Server RPC service is inactive) Nmap done: 1 IP address (1 host up) scanned in 5.45 seconds
根据扫描结果,发现存在MS08-067漏洞
关键字词:

相关文章
-
无相关信息