当前位置:网站首页>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参数和其他参数最大的不同就是他的扫描结果后边还有带着系统的信息
边栏推荐
- cv2-drawline
- QT build with built-in application framework -- Hello World -- use min GW 32bit
- Is it safe to open an account on your mobile phone for small amount of stock speculation?
- Sum of submatrix
- The foreach map in JS cannot jump out of the loop problem and whether foreach will modify the original array
- 微软 AD 超基础入门
- About snake equation (3)
- 小金额炒股,在手机上开户安全吗?
- COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况---材料的添加
- [SolidWorks] modify the drawing format
猜你喜欢

Capability contribution three solutions of gbase were selected into the "financial information innovation ecological laboratory - financial information innovation solutions (the first batch)"

Introduction to grpc for cloud native application development

如何让导电滑环信号更好

用户之声 | 对于GBase 8a数据库学习的感悟

第七章 行为级建模

快手小程序担保支付php源码封装

子矩阵的和

C语言-模块化-Clion(静态库,动态库)使用

Android 创建的sqlite3数据存放位置

Application of slip ring in direct drive motor rotor
随机推荐
给刚入门或者准备转行网络工程师的朋友一些建议
qt--将程序打包--不要安装qt-可以直接运行
The persistence mode of redis - RDB and AOF persistence mechanisms
NPM internal split module
How does Matplotlib and PIL image integrate and save multiple pictures into one picture
About snake equation (3)
Voice of users | winter goes and spring comes, waiting for flowers to bloom -- on gbase 8A learning comprehension
In depth analysis of ArrayList source code, from the most basic capacity expansion principle, to the magic iterator and fast fail mechanism, you have everything you want!!!
液压旋转接头的使用事项
日志特征选择汇总(基于天池比赛)
Remote Sensing投稿經驗分享
Why did MySQL query not go to the index? This article will give you a comprehensive analysis
Dataworks duty table
uniapp一键复制功能效果demo(整理)
批次管控如何实现?MES系统给您答案
PHP to get information such as audio duration
Android 创建的sqlite3数据存放位置
QML fonts use pixelsize to adapt to the interface
【SolidWorks】修改工程图格式
生态 | 湖仓一体的优选:GBase 8a MPP + XEOS