Question: Using the skeleton code below, implement ICMP traceroute using scapy. Do NOT use the built-in scapy traceroute function. Perform a traceroute to 8.8.8.8. from scapy.all

Using the skeleton code below, implement ICMP traceroute using scapy. Do NOT use the built-in scapy traceroute function. Perform a traceroute to 8.8.8.8.

from scapy.all import * ttl= while True: a = IP (dst= b 

from scapy.all import * ttl= while True: a = IP (dst= b = ICMP () P = a/b pkt = srl (p, verbose = if (1) else: (2) 7 0) ttl=ttl) (3) == 0: print ("Complete ", pkt [IP].src) break print ("TTL: %d, Source: ttl +=1 "gttl, pkt [IP].src)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ICMP Traceroute using Scapy Without Using Builtin traceroute You are given a skeleton code with 3 bl... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!