Questions
As we conclude, here is a list of questions for you to test your knowledge regarding this chapter’s material. You will find the answers in the Assessments section of the Appendix:
- Which method from the
PortScanner
class is used to perform scans synchronously? - Which method from the
PortScanner
class is used to perform scans asynchronously? - How can we launch an asynchronous scan on a given host and port if we initialize the object with the
self.portScannerAsync = nmap.PortScannerAsync()
instruction? - How can we launch a synchronous scan on a given host and port if we initialize the object with the
self.portScanner = nmap.PortScanner()
instruction? - Which function is necessary to define when we perform asynchronous scans using the
PortScannerAsync()
class?