Updated events for AR

This commit is contained in:
Ben Passmore
2019-11-30 15:17:32 +10:00
parent ea9c281804
commit 0f74b6faf2

View File

@@ -32,7 +32,7 @@ module Events
end
# validates that a hooked browser with the beef_hook token exists in the db
zombie = Z.first(:session => beef_hook) || nil
zombie = Z.where(:session => beef_hook).first || nil
if zombie.nil?
print_error "[EVENTS] Invalid beef hook id: the hooked browser cannot be found in the database"
return