W3af in Python
To use W3AF from any Python script, it is necessary to know certain details of its implementation, as well as the main classes that allow to interact with the framework programmatically.
There are several classes included in the framework, however, the most important to manage the whole attack process is the w3afCore class of the core.controllers.w3afCore module. An instance of that class contains all the methods and properties needed to enable plugins, establish the objective of an attack, manage profiles, and above all, start, interrupt, and stop the attack process.
https://github.com/andresriancho/w3af-module
We can find the main controller in this folder inside the GitHub repository:
https://github.com/andresriancho/w3af-module/tree/master/w3af-repo/w3af/core/controllers ...