Skip to content

Commit 2290249

Browse files
committed
uses fail_with to bomb out on datastore probs
1 parent 4f121e3 commit 2290249

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/scanner/http/ntlm_info_enumeration.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ def run_host(ip)
3838
turi = datastore['TARGET_URI']
3939
turis_file = datastore['TARGET_URIS_FILE']
4040
if (!turi && !turis_file)
41-
print_error("Either TARGET_URI or TARGET_URIS_FILE must be specified")
4241
# can't simply return here as we'll print an error for each host
43-
raise Rex::Script::Completed
42+
fail_with "Either TARGET_URI or TARGET_URIS_FILE must be specified"
4443
end
4544
if (turi and !turi.blank?)
4645
test_uris << normalize_uri(turi)

0 commit comments

Comments
 (0)