Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Check for tools before running commands #632
It'd be better to check if a tool exists before running the actual plugin. This will be significantly reduce the run-time in distributions that are not pen-testing oriented. For example, Ubuntu does not have arachni pre-installed but arachni scans seem to run during analysis resulting in errors.
OWTF should report that the tool is missing and the test will be skipped.
Check for installation before scanning.
Steps to Reproduce (for bugs)
@sachinkamath I don't think it will reduce the time. If a tool is not found, it will result in an error, and OWTF directly skips that plugin.
The install script installs some required tools in Debian (read Ubuntu) and if they are still not installed, OWTF prints out a warning to continue the start process (if some tools are not found):
So this is as intended. If OWTF checks for a certain tool before running the plugin, it could significantly slow it down.