Skip to content

Commit c497d5f

Browse files
committed
Auxiliary::Web: log methods pass vuln info to parent
1 parent 628f7ef commit c497d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/auxiliary/web.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ def log_fingerprint( opts = {} )
161161
map { |x| x.to_s }.join( '|' ).hash
162162

163163
return if parent.vulns.include?( vhash )
164-
parent.vulns[vhash] = true
165164

166165
location = opts[:location] ?
167166
page.url.merge( URI( opts[:location].to_s )) : page.url
@@ -183,6 +182,7 @@ def log_fingerprint( opts = {} )
183182
}
184183

185184
info[:confidence] = calculate_confidence( info )
185+
parent.vulns[vhash] = info
186186

187187
report_web_vuln( info )
188188

@@ -196,7 +196,6 @@ def log_resource( opts = {} )
196196
map { |x| x.to_s }.join( '|' ).hash
197197

198198
return if parent.vulns.include?( vhash )
199-
parent.vulns[vhash] = true
200199

201200
location = URI( opts[:location].to_s )
202201
info = {
@@ -216,6 +215,7 @@ def log_resource( opts = {} )
216215
}
217216

218217
info[:confidence] = calculate_confidence( info )
218+
parent.vulns[vhash] = info
219219

220220
report_web_vuln( info )
221221

0 commit comments

Comments
 (0)