Updated xssrays for AR
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user