To write the python program for simulating Traceroute command
- Start the program.
- Get the frame size from the user.
- To create the frame based on the user request.
- To send frames to server from the client side.
- If your frames reach the server, it will send ACK signal to client otherwise it will sendNACK signal to client.
- Stop the program
from scapy.all import*
target = ["www.google.com"]
result, unans = traceroute(target,maxttl=32)
print(result,unans)
Thus, the python program for simulating Traceroute command was successfully executed.