Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the nmap command in Linux

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use the nmap command in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Linux common command nmap command is an open source network detection and security audit tool, its design goal is to quickly scan large networks.

Nmap network detection and security audit

Syntax nmap (option) (parameter) option-O: activate operation probe;-P0: scan the value, not ping the host;-PT: ping;-sV: probe service version information with TCP;-sP:ping scan, only find whether the target host is alive;-ps: send synchronous (SYN) messages;-PU: send udp ping;-PE: force direct ICMPping -PB: default mode, you can use ICMPping and TCPping;-6: use IPv6 address;-v: get more option information;-d: increase the output of debugging information;-oN: output in a format that people can read;-oX: output information to a specified file in xml format;-oM: output in machine-readable format;-A: use all advanced scanning options -- resume: continue the last scan performed;-P: specify the port to be scanned, which can be a single port, separate multiple ports with commas, and use "-" to indicate the port range;-e: specify the network interface to be used for scanning in a multi-network interface Linux system;-g: scan the specified port as the source port;-- ttl: specify the lifetime of the scan message sent -- packet-trace: displays the statistics of sending and receiving messages during scanning;-- scanflags: the TCP flag set in the scanned message. -- send-eth/--send-ip uses the original Ethernet send / construct to specify the IP transmission parameter ip address: specify the TCP address in the message to be scanned.

Instance installs nmap

Yum install nmap uses nmap to scan the open port of www.jsdig.com

[root@localhost] # nmap www.jsdig.com Starting Nmap 4.11 (http://www.insecure.org/nmap/) at 2013-12-28 00:06 CST Interesting ports on 10042-212-8.static.webnx.com (100.42.212.8): Not shown: 1678 filtered ports PORT STATE service 22/tcp open ssh 80/tcp open http Nmap finished: 1 IP address (1 host up) scanned in 45.870 seconds on "how to use nmap commands in Linux" ends here Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report