Traceroute program made from scratch using ICMP and RAW sockets
How to run:
- Compile with: gcc traceroute.c -o traceroute
- To run use: sudo ./traceroute "website'. For example if we want to visit yahoo.com we would use: sudo ./traceroute www.yahoo.com MUST RUN WITH SUDO SINCE USING RAW SOCKETS
Output:
For each stop in the route the program will display
- How many hops it took to get there
- ICMP message type
- Time it took to get there
- IP adrress of the host at that stop
- Name of the host at that stop if it's available