EX-7 IMPLEMENTATION OF TRACEROUTE COMMAND
To write the python program for simulating Traceroute command
2.Get the frame size from the user.
3.To create the frame based on the user request.
4.To send frames to server from the client side.
5.If your frames reach the server, it will send ACK signal to client otherwise it will sendNACK signal to client.
from scapy.all import*
target = ["www.google.com"]
result, unans = traceroute(target,maxttl=32)
print(result,unans)
![image](https://private-user-images.githubusercontent.com/85554376/241583041-8ac912de-e2d3-40ab-b571-d8d8269dd932.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NzIzODksIm5iZiI6MTcyMDQ3MjA4OSwicGF0aCI6Ii84NTU1NDM3Ni8yNDE1ODMwNDEtOGFjOTEyZGUtZTJkMy00MGFiLWI1NzEtZDhkODI2OWRkOTMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDIwNTQ0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwOTZiMjc4MGIzMzc5YmNlZTZiNGJmOTJmYzg2ZTIyMTRiM2MwOWE5MzQzNThlN2NmYmFmY2M5NDFhNDU0YmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZYgfhDvhq7c0ELXOYwreD171epObzhL_3_FuHrIeaiQ)
Thus, the python program for simulating Traceroute command was successfully executed.