Comparing Nmap results with Ndiff

The last tool that comes packed with the Nmap suite is Ndiff. For those unfamiliar with the traditional *NIX tool "diff," it is designed to visually show the differences between two separate files of text. In other words, if you (for example) want to see which lines of code changed when a patch was applied, you can "diff" the new patch and the old code, and visually see the differences. The following screenshot shows a basic Nmap command:

Comparing Nmap results with Ndiff

In the preceding screenshot, we launched a scan against my web server—dshaw.net—for ports 80 and 81. We named our first scan scan1.xml and ran another scan against the same host—we ...

Get Nmap Essentials 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.