Skip to content

Rubidium7/ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ping

Table of Contents
  1. About the project
  2. Getting started
  3. Potential improvements

About the project

product-screenshot

This was the first project on my personal 10-day hackathon to learn about cryptography, and coding in rust, and to deepen my knowledge about network protocols and TLS/SSL.

It's a simple implementation of the ping command, you give as an argument either the domain or an ip address of a host and the program will ping it once a second and print the results.

Getting started

This is how you might run this program locally. Do note that it was originally made for a unix system, so your mileage may vary depending on your machine.

Prerequisites

As this program is coded in C, so you need to have gcc installed to compile it

How to run it

git clone https://github.com/Rubidium7/ping.git
cd ping
make && sudo ./ping <domain/ip_address>

Note: the program creates a raw socket which it'll need sudo access for

Potential improvements

As this project was written for a hackathon I purely focused on getting an MVP out, but if I come back to this here would be some nice feature ideas

  • support for flags
    • -?
    • -v
    • -f
    • -w
    • -l
    • etc.
  • error handling that mimics the original gnu ping

(back to top)

About

recreating the ping command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published