[develop] Pressing 'n' when some tools were not found does not abort OWTF #365
Closed
Description
In the develop branch, when running owtf with missing tools, the user can decide whether or not to continue the execution but answering no ('n') does not abort the framework as shown below:
tour-depierre owcs/owtf ‹develop› » python2 owtf.py
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[!] WARNING: Tool path not found for: /usr/bin/theharvester
[!] WARNING: Tool path not found for: /usr/share/theharvester
[-] WARNING!!!: 2 tools could not be found. Some suggestions:
[-] - You can define your tool paths from the interface as well
Continue anyway? [Y/n]n
[-] Aborted by Framework: Aborted by user
[*] OWTF Version: 1.0.1, Release: LionHeart (Beta)
[-] Loading framework please wait..
[*] 127.0.0.1:8008 <-- HTTP(S) Proxy to which requests can be directed
[*] http://127.0.0.1:8009 <-- Web UI URL
We can see the message "Aborted by user" but the framework continues anyway.
When trying with the master branch, the framework aborts properly:
tour-depierre owcs/owtf ‹master› » python2 owtf.py
_____ _ _ _ _____ _____
| | | | |_ _| __|
| | | | | | | | | __|
|_____|_____| |_| |__|
@owtfp
http://owtf.org
[-] Loading Resources from: /home/depierre/git-repo/owcs/owtf/profiles/resources/default.cfg ..
[-] Loading Configuration from: /home/depierre/git-repo/owcs/owtf/profiles/general/default.cfg ..
[-] Loading Mapping from: /home/depierre/git-repo/owcs/owtf/profiles/mappings/default.cfg
[!] WARNING: Tool path not found for: /usr/bin/theharvester
[!] WARNING: Tool path not found for: /usr/share/theharvester
[-] WARNING!!!: 2 tools could not be found. Some suggestions:
[-] - You can define your tool paths from the interface as well
Continue anyway? [Y/n]n
[-] Aborted by Framework: Aborted by user
@alessandrofg is this related to your re-architecture pull request?