From 9696b05abaca0ca4ae814b42a8062269fb79ccce Mon Sep 17 00:00:00 2001 From: Jack Walker Date: Mon, 6 Jul 2020 14:39:04 +1000 Subject: [PATCH] Fixed error causing some ARE rules to not run. --- arerules/enabled/confirm_close_tab.json | 20 ++++++++++++++++++++ core/main/autorun_engine/engine.rb | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 arerules/enabled/confirm_close_tab.json diff --git a/arerules/enabled/confirm_close_tab.json b/arerules/enabled/confirm_close_tab.json new file mode 100644 index 000000000..6ca76158e --- /dev/null +++ b/arerules/enabled/confirm_close_tab.json @@ -0,0 +1,20 @@ +{"name": "Confirm Close Tab", + "author": "mgeeky", + "browser": "ALL", + "browser_version": "ALL", + "os": "ALL", + "os_version": "ALL", + "modules": [ + {"name": "confirm_close_tab", + "condition": null, + "code": null, + "options": { + "text":"Are you sure you want to navigate away from this page?", + "usePopUnder":"true" + } + } + ], + "execution_order": [0], + "execution_delay": [0], + "chain_mode": "sequential" +} diff --git a/core/main/autorun_engine/engine.rb b/core/main/autorun_engine/engine.rb index 33842ca88..5b9763f16 100644 --- a/core/main/autorun_engine/engine.rb +++ b/core/main/autorun_engine/engine.rb @@ -92,7 +92,7 @@ module BeEF :rule_token => rule_token, :mod_body => wrapper, :is_sent => false, - :rule_id => rule_id + :id => rule_id ) are_exec.save! # Once Engine.check() verified that the hooked browser match a Rule, trigger the Rule ;-)