Chapter 8: Working with Nmap Scanners

  1. Which method allows us to see the machines that have been targeted for scanning?

nmap.all_hosts()

  1. How do we invoke the scan function if we want to perform an asynchronous scan and also execute a script at the end of that scan?

nmasync.scan('ip','ports',arguments='--script=/usr/local/share/nmap/scripts/')

  1. Which method can we use to obtain the result of the scan in dictionary format?

nmap.csv()

  1. What kind of Nmap module is used to perform scans asynchronously?

nma = nmap.PortScannerAsync()

  1. What kind of Nmap module is used to perform scans synchronously?

nma = nmap.PortScanner()

  1. How can we launch a synchronous scan on a given host, on a given port if we initialize the object with the ...

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.