In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the Linux command nc, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Linux common command nc command is used to set up the router. Execute this instruction to set the relevant parameters of the router.
Syntax nc [- hlnruz] [- g] [- G] [- G] [- I] [- o] [- p] [- s] [- v.] [- w] [host name] [communication port.] Parameter description:
-g set up router hop communication gateways, up to 8.
-G sets the source route director, whose value is a multiple of 4.
-h online help.
-I set the time interval to transmit information and scan the communication port.
-l use listening mode to control incoming data.
-n use the IP address directly, not through the domain name server.
-o specify the name of the file and dump the data transferred back and forth into the file in hexadecimal code.
-p sets the communication port used by the local host.
-r Random number specifies the communication port between the local and remote hosts.
-s sets the IP address of the packet sent by the local host.
-u uses the UDP transport protocol.
-v shows the instruction execution process.
-w sets the time to wait for connection.
-z uses 0 input / output mode and is used only when scanning communication ports.
Instance TCP port scan
# nc-v-z-w2 192.168.0.3 1-100192.168.0.3: inverse host lookup failed: Unknown host (UNKNOWN) [192.168.0.3] 80 (http) open (UNKNOWN) [192.168.0.3] 23 (telnet) open (UNKNOWN) [192.168.0.3] 22 (ssh) open scan port range is 1-100
Scan UDP Port
# nc-u-z-w2 192.168.0.1 1-1000 / scan the port range of 192.168.0.3 is 1-1000 scan designated port
# nc-nvv 192.168.0.1 80 / / scan port 80 (UNKNOWN) [192.168.0.1] 80 (?) Open y / / user input the above is all the content of this article "how to use Linux Common commands nc". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.