当前位置:网站首页>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参数和其他参数最大的不同就是他的扫描结果后边还有带着系统的信息
边栏推荐
- Graphic network: uncover the principle behind TCP's four waves, combined with the example of boyfriend and girlfriend breaking up, which is easy to understand
- 滑环在直驱电机转子的应用领域
- Sum of submatrix
- Application of slip ring in direct drive motor rotor
- Introduction to grpc for cloud native application development
- Qt - - Packaging Programs - - Don't install Qt - can run directly
- The usage of rand function in MATLAB
- COMSOL - Construction of micro resistance beam model - final temperature distribution and deformation - establishment of geometric model
- ROS 问题(topic types do not match、topic datatype/md5sum not match、msg xxx have changed. rerun cmake)
- Partage d'expériences de contribution à distance
猜你喜欢
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
qt--将程序打包--不要安装qt-可以直接运行
Android 创建的sqlite3数据存放位置
Leetcode exercise - Sword finger offer 36 Binary search tree and bidirectional linked list
神经网络与深度学习-5- 感知机-PyTorch
用户之声 | 冬去春来,静待花开 ——浅谈GBase 8a学习感悟
Remote Sensing投稿經驗分享
MATLAB R2021b 安装libsvm
C语言-Cmake-CMakeLists.txt教程
Js中forEach map无法跳出循环问题以及forEach会不会修改原数组
随机推荐
[SolidWorks] modify the drawing format
Anaconda3 tutorial on installing and adding Tsinghua image files
The usage of rand function in MATLAB
Voice of users | understanding of gbase 8A database learning
COMSOL----微阻梁模型的搭建---最终的温度分布和变形情况----几何模型的建立
PHP to get information such as audio duration
Remote Sensing投稿经验分享
Introduction to grpc for cloud native application development
Redux使用
Mouse event - event object
Coordinate conversion of one-dimensional array and two-dimensional matrix (storage of matrix)
Grey correlation analysis link (portal) matlab
Redisson分布式锁解锁异常
Leetcode exercise - Sword finger offer 36 Binary search tree and bidirectional linked list
快速熟知XML解析
云原生应用开发之 gRPC 入门
Break algorithm --- map
2022国内十大工业级三维视觉引导企业一览
Codeforces Round #643 (Div. 2)——B. Young Explorers
Deep learning website