nmap的使用

  1. 一台主机有哪些开启了
    nmap <target_ip>
    nmap的使用
  2. 指定探测主机的指定端口是否开放
    -p
    nmap -p <port1>,<port2> <target_ip>

nmap的使用

  1. 扫描主机的操作系统和端口开发情况
    -O: Enable OS detection
    nmap -O <target_ip>
    nmap的使用

  2. 扫描主机ping是存活 (-P 代表的是ping的意思)
    -sP 是使用ICMP协议发送echo请求数据包
    nmap -sP <target_ip>
    nmap -sP <network address> </CIDR>

  3. 常组合参数
    -v 详细信息
    -n 不dns反向解析

  4. 常用命令扫描
    -sV: Probe open ports to determine service/version info
    -Pn: Treat all hosts as online -- skip host discovery

nmap -sV -Pn -p1-65535 <target_ip> -v -n
nmap -sV -Pn -p1-65535 192.168.203.0/24 -n -v

上一篇:C语言中特殊的指针[使用禁忌]


下一篇:2021-07-29