Summary

In this chapter, we looked at the basics of packet-crafting and sniffing with various Python modules, and saw that scapy is very powerful and easy to use. By now, we have learned the basics of socket programming and scapy. During our security assessments, we may need the raw output and access to basic levels of packet topology so that we can analyze the information and make decisions ourselves. The most attractive part of scapy is that it can be imported and used to create networking tools without going to create packets from scratch.

In the next chapter, we will explore programming packages in Python to extract public information from servers with services such as shodan.

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.