Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic ping implementation

We don't require sudo to flood.

Using:

To compile you will need a working C compiler and make (sudo is required to give permissions to the program, since only root can create RAW sockets):

$ sudo make release

Or:

$ sudo ./pong

Usage is defined as below:

USING:
    pong [target] [[-f] [-t time_to_live]]

OPTIONS:
    target
        Host name/destination.

    -f
        Flood ping. Send ECHO_REQUEST and wait for ECHO_REPLY. Without waiting for SO_RCVTIMEO, SO_SNDTIMEO and RCVTIMEO.

    -t
        Set the time to live, defaults to 64.

    SIGINT
        Ends the ping and prints results.

TODO:

  • Propper packet filter.
  • Hog the network.

Contributors

Languages