WMAP runs loaded modules in a specific order. The order is defined by a numeric value. By default, the first module to run for web scanning is http_version, which has the OrderID=0 and open_proxy module with OrderID=1. This also means that the http_version module will execute first and open_proxy will run after that. A tester can change the default behavior of the module execution by changing the OrderID accordingly:
- The module execution order can be changed according to our needs. We can obtain the OrderID by executing the wmap_modules -l command.
The following screenshot shows the output of the preceding command:
![](https://static.packt-cdn.com/products/9781789953527/graphics/assets/5873a26b-4a50-4a01-94cc-0124ec4b7f64.png)
- The OrderID is set in the Metasploit module code. Let's see the OrderID for the http_version module:
![](https://static.packt-cdn.com/products/9781789953527/graphics/assets/a615294e-6a77-4085-beb7-bf5d987084f2.png)
The execution order for WMAP modules can be adjusted using the register_wmap_options() method.
- Let's use this method to...