Fun with hping3

October 11, 2010 at 11:15 pm Leave a comment

Hping3 is a high-level command-line tool for sending raw packets to random places while allowing you to specify most things about said packets. It further allows you to use these packets for other tasks, like traceroute.

One particular use-case is identifying which hops are resulting in packets being dropped. (One occasionally finds that packet loss depends on things like packet size and content)

Examples

Find out which hop is dropping your DNS packets:

sudo hping3 –udp –traceroute -p 53 8.8.8.8

Find out which machine is blocking your ssh connections:

hping3 –syn -p 22 –traceroute sshbox.com

You can, further, specify the contents of the packet sent (Here it is useful to use wireshark to capture and export packet data):

hping3 -E packet.data –udp -p 53 –traceroute -d $(wc -c packet.data | cut -d ‘ ‘ -f 1)

Advertisements

Entry filed under: Uncategorized. Tags: , , , .

Vanity Generality Getting Steam to run on ubuntu with play on linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


October 2010
M T W T F S S
« Sep   Nov »
 123
45678910
11121314151617
18192021222324
25262728293031

%d bloggers like this: