Skip to content

Mulling/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

079fdcb · Jan 30, 2025

History

22 Commits
Feb 27, 2023
Feb 27, 2023
Jan 30, 2025
Feb 27, 2023
Jan 30, 2025
Jan 30, 2025

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.