Skip to content

Commit ac65c54

Browse files
committed
Auxiliary::Web: fixed the previous confidence fix
1 parent 862b813 commit ac65c54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/msf/core/auxiliary/web.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,11 @@ def log_fingerprint( opts = {} )
179179
:blame => details[:blame],
180180
:category => details[:category],
181181
:description => details[:description],
182-
:confidence => calculate_confidence( parent.vulns[mode][vhash] ),
183182
:owner => self
184183
}
185184

185+
info[:confidence] = calculate_confidence( info )
186+
186187
report_web_vuln( info )
187188

188189
print_good " FOUND(#{mode.to_s.upcase}) URL(#{location})"
@@ -211,10 +212,11 @@ def log_resource( opts = {} )
211212
:blame => details[:blame],
212213
:category => details[:category],
213214
:description => details[:description],
214-
:confidence => calculate_confidence( parent.vulns[mode][vhash] ),
215215
:owner => self
216216
}
217217

218+
info[:confidence] = calculate_confidence( info )
219+
218220
report_web_vuln( info )
219221

220222
print_good " VULNERABLE(#{mode.to_s.upcase}) URL(#{target.to_url})"

0 commit comments

Comments
 (0)