当前位置:网站首页>nmap工具介绍及常用命令
nmap工具介绍及常用命令
2022-07-08 00:29:00 【tlucky1】
1.功能介绍
nmap(network mapper),网络映射器,是kali内置的一款工具,是网络连扫描软件,用来扫描网上设备开放的网络连接端。确定哪些服务运行在哪些连接端,并且,推断设备使用什么系统。
nmap的基本功能:
检测存活在网络上的设备(设备发现)
检测开放的端口号(端口发现或枚举)
检测到相应的端口号(服务发现)的软件和版本
检测操做系统,硬件地址,以及软件地址
2.常用命令
1.nmap -sL ip/ip段
-sL(列表发现)它只会列出指定网络上的每台主机,不会发送任何报文到目标主机,使用-sL指令只是简单的扫描指定网络上的所有主机,并不能确定主机是否存活,所以扫描速度是很快的。
2.nmap -sP ip/ip段
-sP使用的ping扫描,然后将对ping扫描做出响应的主机列出来,并不会继续测试(如端口扫描或者操做系统探测),主机禁ping时,使用-Pn 强制默认存活。扫描192.168.1.0/24网段发现5台存货设备。
由扫描结果可以看出,通过-sP的扫描192.168.1.0/24网段发现5台设备做出了ping响应。
3.nmap -sS ip/ip段
-sS 半开放扫描,是用的次数最多的扫描选项,SYN扫描,被称为半开放扫描,不会打开一个完整的TCP连接,而且不会有任何会话,对于目标主机来说,不会把半开放扫描连接计入到系统日志中去,不会将其视为攻击扫描,执行得比较快速,效率也比较高,反观一个完整的TCP连接需要进行3次握手,但是需要root/administrator权限执行
由扫描结果可以看出,通过-sS的扫描,检测除了192.168.1.11所开放的端口,以及服务信息,可以说信息已经显示的很完美了
4.nmap -sT ip/ip段
前面提到的-sS是半开放式扫描,-sT可以说是全开放式扫描,需要完成3次握手,这种扫描方式为nmap默认的扫描方式,使用这种扫描方式要求调用系统的connect()。与参数-sS不同,-sT不需要root权限,普通用户也可以使用,但是这种扫描方式很容易被检测到,在被扫描主机中的日志中上会记录大量的连接请求,由于要完成三次握手,因此效率比较低,速度也很慢。
将扫描结果与-sS参数扫描结果对比,更全面,信息更多。
5.nmap -sU ip/ip段
用来扫描udp端口,这种扫描方式用来扫描目标主机开启的udp端口,这种扫描技术用来寻找目标主机打开的UDP端口,不会发送SYN包,如果有ICMP不可达的信息返回,说明udp端口是关闭的,扫描速度是比较慢的。
6.nmap -sV ip/ip段
检测版本,这种扫描方式能够用来扫描目标主机和端口上运行的版本,并将它列出来。

从图中可以看出,使用-sV参数和其他参数最大的不同就是他的扫描结果后边还有带着系统的信息
边栏推荐
- 为什么更新了 DNS 记录不生效?
- Codeforces Round #649 (Div. 2)——A. XXXXX
- Chapter 7 behavior level modeling
- pb9.0 insert ole control 错误的修复工具
- 小金额炒股,在手机上开户安全吗?
- 液压旋转接头的使用事项
- Version 2.0 of tapdata, the open source live data platform, has been released
- COMSOL - Construction of micro resistance beam model - final temperature distribution and deformation - establishment of geometric model
- Tapdata 的 2.0 版 ,開源的 Live Data Platform 現已發布
- PHP to get information such as audio duration
猜你喜欢

How to make enterprise recruitment QR code?

About snake equation (1)

PB9.0 insert OLE control error repair tool

QT -- package the program -- don't install qt- you can run it directly

给刚入门或者准备转行网络工程师的朋友一些建议

Partage d'expériences de contribution à distance
![[target tracking] |dimp: learning discriminative model prediction for tracking](/img/72/d151fe0eb0a92e8c6931e6c50dad0f.png)
[target tracking] |dimp: learning discriminative model prediction for tracking

ANSI / nema- mw- 1000-2020 magnetic iron wire standard Latest original

Write a pure handwritten QT Hello World

2、TD+Learning
随机推荐
Codeforces Round #649 (Div. 2)——A. XXXXX
QML fonts use pixelsize to adapt to the interface
Codeforces Round #643 (Div. 2)——B. Young Explorers
nacos-微服务网关Gateway组件 +Swagger2接口生成
Chapter 7 behavior level modeling
滑环使用如何固定
Redis cluster
MySQL查询为什么没走索引?这篇文章带你全面解析
不算不知道,花呗分期的真实利率居然这么高
Codeforces Round #633 (Div. 2) B. Sorted Adjacent Differences
powerbuilder 中使用线程的方法
[target tracking] |atom
Codeforces Round #643 (Div. 2)——B. Young Explorers
2、TD+Learning
用户之声 | 冬去春来,静待花开 ——浅谈GBase 8a学习感悟
Js中forEach map无法跳出循环问题以及forEach会不会修改原数组
The numerical value of the number of figures thought of by the real-time update of the ranking list
How does Matplotlib generate multiple pictures in turn & only save these pictures without displaying them in the compiler
Is it safe to open an account on your mobile phone for small amount of stock speculation?
How does Matplotlib and PIL image integrate and save multiple pictures into one picture