Fix ARE rule length check

This commit is contained in:
Brendan Coles
2016-01-26 15:33:57 +00:00
parent b0bf1c0c21
commit 47c1bd29aa

View File

@@ -360,7 +360,7 @@ module BeEF
rules = BeEF::Core::AutorunEngine::Models::Rule.all()
end
return nil if rules == nil
return nil unless rules.length?
return nil unless rules.length > 0
print_info "[ARE] Checking if any defined rules should be triggered on target."
# TODO handle cases where there are multiple ARE rules for the same hooked browser.