---
title: "nmap几种常用方法"
author: "gcgmh"
date: "2010-05-04T15:25:35Z"
tags: ["C", "C#", "C++", "UP"]
categories: ["非技术"]
slug: "nmap"
draft: false
lastmod: "2010-05-04T15:25:35Z"
id: 658752
url: "https://gcgmh.iteye.com/blog/658752"
---

1。nmap -sP 10.0.0.1/24 |grep up 扫描整个c段，找出存活主机

2。nmap -sS 10.0.0.1-100 -p 80 syn扫描，指定ip范围，指定端口

3。nmap -sV 10.0.0.1 -p1-65535 指定端口范围，扫描指定主机的端口的服务和版本

4。nmap -O(-A) 10.0.0.1 扫描操作系统的类型和版本