Skip to content

Commit aa26405

Browse files
committed
Cleanup an expression and avoid fail_with
1 parent 74398c4 commit aa26405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/ntlm_info_enumeration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def run_host(ip)
4141
return
4242
end
4343
end
44-
if datastore['TARGET_URIS_FILE'] and datastore['TARGET_URIS_FILE'].length > 0
44+
if (datastore['TARGET_URIS_FILE'] && !datastore['TARGET_URIS_FILE'].blank?)
4545
File.open(datastore['TARGET_URIS_FILE'], 'rb').each_line do |line|
4646
test_uri = line.chomp
4747
test_path = normalize_uri(test_uri)
@@ -52,7 +52,7 @@ def run_host(ip)
5252
end
5353
end
5454
elsif not datastore['TARGET_URI']
55-
fail_with(Failure::BadConfig, "Either TARGET_URI or TARGET_URIS_FILE must be specified.")
55+
print_error("Either TARGET_URI or TARGET_URIS_FILE must be specified.")
5656
end
5757
end
5858

0 commit comments

Comments
 (0)