Tcpsyn scan Program

Source: Internet
Author: User
For more information about the tcpsyn scanner-Linux general technology-Linux programming and kernel, see the following. : Time: 1
Principle of tcp syn scan (also known as TCP semi-connection scan): send the request syn packet to a port of the target host. If the request does not receive the syn/ack confirmation packet from the target host, the RST packet indicates that the port is not open. If the syn/ack packet is received, it indicates that the port is open and the scan host will not reply to its ack after receiving syn/ACK.
I want to write code (using Linux c) to perform the preceding scanning. I have constructed a syn-containing data packet. How can I determine whether the data packet returned by the target host is syn/ack, or RST packets?

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.