Search

Advanced Pinging technique: + 1 TRICK PDF Print E-mail
User Rating: / 3
PoorBest 
Networking - Basic Networking
Monday, 29 June 2009 08:39

 

Advanced Pinging technique:

About ping

Sends ICMP ECHO_REQUEST packets to network hosts.

Syntax

ping -s [-d] [-l] [-L] [-n] [-r] [-R] [-v] [ -i interface_address ] [-I interval] [-t ttl] host [packetsize] [count]

-d Set the SO_DEBUG socket option.
-l Loose source route. Use this option in the IP header to send the packet to the given host and back again. Usually specified with the -R option.
-L Turn off loopback of multicast packets. Normally, if there are members in the host group on the out- going interface, a copy of the multicast packets will be delivered to the local machine.
-n Show network addresses as numbers. ping normally displays addresses as host names.
-r Bypass the normal routing tables and send directly to a host on an attached network. If the host is not on a directly-attached network, an error is returned. This option can be used to ping a local host through an interface that has been dropped by the router daemon.
-R Record route. Sets the IP record route option, which will store the route of the packet inside the IP header. The contents of the record route will only be printed if the -v option is given, and only be set on return packets if the target host preserves the record route option across echos, or the -l option is given.
-v Verbose output. List any ICMP packets, other than ECHO_RESPONSE, that are received.
-i interface_address Specify the outgoing interface address to use for multicast packets. The default interface address for multicast packets is determined from the (unicast) routing tables.
-I interval Specify the interval between successive transmissions. The default is one second.
-t ttl Specify the IP time to live for unicast and multicast packets. The default time to live for unicast packets is set with ndd (using the icmp_def_ttl variable). The default time to live for multicast is one hop.
host The network host.
packetsize Specified size of packetsize. Default is 64.
count Amount of times to send the ping request.

Ping relies on the ICMP protocol, which is used to diagnose transmission conditions. For this reason, it uses two types of protocol messages (out of the 18 offered by ICMP):

  • Type 0, which corresponds to an "echo request" command, sent by the source machine;
  • Type 8, which corresponds to an "echo reply" command, sent by the target machine.

At regular intervals (by default, every second), the source machine (the one running the ping command) sends an "echo request" to the target machine. When the "echo reply" packet is received, the source machine displays a line containing certain information. If the reply is not received, a line saying "request timed out" will be shown.

 

TRICK:

To make the other machine flood with packets

A ping of death (abbreviated "POD") is a type of attack on a computer that involves sending a malformed or otherwise malicious ping to a computer. A ping is normally 56 bytes in size (or 84 bytes when IP header is considered); historically, many computer systems could not handle a ping packet larger than the maximum IP packet size, which is 65,535 bytes. Sending a ping of this size could crash the target computer.

Traditionally, this bug has been relatively easy to exploit. Generally, sending a 65,536 byte ping packet is illegal according to networking protocol, but a packet of such a size can be sent if it is fragmented; when the target computer reassembles the packet, a buffer overflow can occur, which often causes a system crash.

Use at your own risk: (we are not responsible for any consequences)

ping -fs 65007 x.x.x.x

x.x.x.x any IP address

Add this page to your favorite Social Bookmarking websites
 
Last Updated on Thursday, 02 July 2009 06:32
 

Add comment


Security code
Refresh

We have 75 guests online