Common Linux Network Tools: hping advanced host Scanning

Source: Internet
Author: User

Common Linux Network Tools: hping advanced host Scanning

I have previously introduced the host scanning tool fping. For details, refer to my "common Linux network tool: fping host scanning".

Hping is a more advanced host scanning tool that supports TCP/IP packet construction and analysis. It can be used to scan active hosts when some firewall configurations or operators intercept ICMP packets.

Hping can also forge source IP addresses to initiate DDos attacks.

Hping Official Website: http://www.hping.org/

Compile and install hping source code

--------------------------------------------------------------------------------

The source code of hping is hosted on GitHub at https://github.com/antirez/hping.

Compile and install commands:

Wget https://github.com/antirez/hping/archive/master.zip
Unzip master
Cd hping-master
Yum install libpcap-devel
./Configure
Make
Make install


Hping depends on libpcap-devel, so you need to install it first. The following two problems may occur during make:

Error: libpcap_stuff.c: 20: 21: Error: net/bpf. h: No file or directory

Solution: ln-sf/usr/include/pcap-bpf.h/usr/include/net/bpf. h;

Problem:/usr/bin/ld: cannot find-ltcl

Solution: yum-y install tcl-devel;

Then enter:

Make strip

Make install


Hping common parameters

--------------------------------------------------------------------------------

If the firewall or operator blocks ICMP, hping can initiate TCP detection on the specified target port. Common parameters:

-P port number

-S: Send tcp syn packets

-A sends the tcp ack packet

-A: Counterfeit source IP address

-- Flood should be sent as quickly as possible, with caution

Input example:

Hping 192.168.2.20.- p 80-S
Hping 192.168.2.20.- p 80-
Hping 192.168.2.20.- p 80-S-a 192.168.0.91

This article permanently updates the link address:

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.