Take a look at the main() method of this class, from where the execution cycle actually starts:

The main() method is the same piece of code that is used with both the CLI version and the GUI version of the code, so there are many parameters that would only be relevant when invoked with the GUI mode. We will discuss those that are needed in CLI mode in this section. We can see that the mode variable is initialized to c inside the definition of the main() method.

In the section highlighted as (1) in the following screenshot, we initialize an object for the texttable() Python module, which will be used to draw a table on the console window to display the project IDs for which service scanning can be performed. The second section collects ...

Get Hands-On Penetration Testing 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.