Skip to content

Commit cd3a7a8

Browse files
committed
Allow setting the last_fail_reason
1 parent 992b01b commit cd3a7a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/msf/core/db_manager/exploit_attempt.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ def do_report_failure_or_success(opts)
155155
# We have match, lets create a vuln_attempt record
156156
if vuln
157157
attempt_info[:vuln_id] = vuln.id
158-
vuln.vuln_attempts.create(attempt_info)
158+
vuln.vuln_attempts.create(attempt_info.merge({
159+
last_fail_reason: opts[:last_fail_reason]
160+
}))
159161

160162
create_match_result_for_vuln(vuln,opts)
161163

0 commit comments

Comments
 (0)