We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74398c4 commit aa26405Copy full SHA for aa26405
modules/auxiliary/scanner/http/ntlm_info_enumeration.rb
@@ -41,7 +41,7 @@ def run_host(ip)
41
return
42
end
43
44
- if datastore['TARGET_URIS_FILE'] and datastore['TARGET_URIS_FILE'].length > 0
+ if (datastore['TARGET_URIS_FILE'] && !datastore['TARGET_URIS_FILE'].blank?)
45
File.open(datastore['TARGET_URIS_FILE'], 'rb').each_line do |line|
46
test_uri = line.chomp
47
test_path = normalize_uri(test_uri)
@@ -52,7 +52,7 @@ def run_host(ip)
52
53
54
elsif not datastore['TARGET_URI']
55
- fail_with(Failure::BadConfig, "Either TARGET_URI or TARGET_URIS_FILE must be specified.")
+ print_error("Either TARGET_URI or TARGET_URIS_FILE must be specified.")
56
57
58
0 commit comments