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 ;-)