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 = 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
ICMP Traceroute using Scapy Without Using Builtin traceroute You are given a skeleton code with 3 bl... View full answer
Get step-by-step solutions from verified subject matter experts
