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 do we invoke the
scan
function if we want to perform an asynchronous scan and execute a script at the end of that scan? - 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 it necessary to define when we perform asynchronous scans using the
PortScannerAsync()
class?