Skip to content

Commit a9dc062

Browse files
authored
Merge pull request rapid7#20069 from sjanusz-r7/allow-overwriting-reported-module-name
Allow overwriting reported module name for report_vuln
2 parents a179669 + d4001ef commit a9dc062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/auxiliary/report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def report_vuln(opts={})
303303

304304
timestamp = opts[:timestamp]
305305
username = opts[:username]
306-
mname = self.fullname # use module name when reporting attempt for correlation
306+
mname = opts[:module_fullname] || self.fullname # use module name when reporting attempt for correlation
307307

308308
# report_vuln is only called in an identified case, consider setting value reported here
309309
attempt_info = {

0 commit comments

Comments
 (0)