Port-scanning and traceroute with scapy

At this point, we will see a port scanner on a certain network segment. In the same way we do port-scanning with nmap, with scapy we could also perform a simple port-scanner that tells us for a specific host and a list of ports, whether they are open or closed.

Get Mastering Python for Networking and Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.