Skip to content

Commit 8308c2a

Browse files
committed
Added check for nonsensical options
1 parent 99133de commit 8308c2a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/auxiliary/scanner/http/title.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ def initialize
3030
deregister_options('VHOST')
3131
end
3232

33+
def run
34+
35+
if datastore['STORE_NOTES']==false && datastore['SHOW_ERRORS']==false && datastore['SHOW_TITLES']==false
36+
print_error("Notes storage is false, errors have been turned off and titles are not being shown on the console. There isn't much point in running this module.")
37+
else
38+
super
39+
end
40+
end
41+
3342
def run_host(target_host)
3443
begin
3544
res = send_request_cgi('uri' => '/',

0 commit comments

Comments
 (0)