Building a Network Scanner Using Python

In this chapter, we will build a network scanner that can identify the live hosts on the network and we will also expand it to include guessing the running operating system on each host and opened/closed ports. Usually, gathering this information requires multiple tools and some Linux ninja skills to get the required information but, using Python, we can build our own network scanner code that includes any tools and we can get a customized output.

The following topics will be covered in this chapter:

  • Understanding the network scanner
  • Building a network scanner with Python
  • Sharing your code on GitHub

Get Hands-On Enterprise Automation with Python. 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.