Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 1.99 KB

README.md

File metadata and controls

79 lines (57 loc) · 1.99 KB

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)