mac下安装nmap

 
本文介绍了在mac下如何安装nmap:
 
使用homebrew进行安装:
 
1: 查询是否有nmap的安装包

brew search nmap

2:如果没有,使用一下命令更新brew源

brew update

3:使用brew进行安装

brew install nmap

4:使用namp进行端口扫描

nmap -sT -P0 –O www.51ask.org

Starting Nmap 7.40 ( https://nmap.org ) at 2017-05-15 14:27 CST
Failed to resolve "–O".
Nmap scan report for www.51ask.org (47.93.43.49)
Host is up (0.045s latency).
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
3306/tcp open mysql

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

0 个评论

要回复文章请先登录注册