Skip to content

Commit ea78e83

Browse files
committed
Fix undefined method error
[FixRM rapid7#8350]
1 parent fe08903 commit ea78e83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/auxiliary/admin/edirectory/edirectory_edirutil.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ def run
148148
}
149149
}, 25)
150150

151+
if res.nil?
152+
print_error("Did not get a response from server")
153+
return
154+
end
155+
151156
raw_data = res.body.scan(/#{action.opts['PATTERN']}/).flatten[0]
152157
print_line("\n" + Rex::Text.decode_base64(raw_data))
153158

0 commit comments

Comments
 (0)