Updated xssrays for AR

This commit is contained in:
Ben Passmore
2019-11-30 15:23:27 +10:00
parent 173d55714a
commit 8ca7e2135c
5 changed files with 15 additions and 41 deletions

View File

@@ -18,10 +18,10 @@ module BeEF
def start_scan(hb, body)
@body = body
config = BeEF::Core::Configuration.instance
hb = BeEF::Core::Models::HookedBrowser.first(:id => hb.id)
hb = BeEF::Core::Models::HookedBrowser.find(hb.id)
#TODO: we should get the xssrays_scan table with more accuracy, if for some reasons we requested
#TODO: 2 scans on the same hooked browsers, "first" could not get the right result we want
xs = BeEF::Core::Models::Xssraysscan.first(:hooked_browser_id => hb.id, :is_started => false)
xs = BeEF::Core::Models::Xssraysscan.where(:hooked_browser_id => hb.id, :is_started => false).first
# stop here if there are no XssRays scans to be started
return if xs == nil || xs.is_started == true