Fixed error causing some ARE rules to not run.
This commit is contained in:
20
arerules/enabled/confirm_close_tab.json
Normal file
20
arerules/enabled/confirm_close_tab.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
@@ -92,7 +92,7 @@ module BeEF
|
|||||||
:rule_token => rule_token,
|
:rule_token => rule_token,
|
||||||
:mod_body => wrapper,
|
:mod_body => wrapper,
|
||||||
:is_sent => false,
|
:is_sent => false,
|
||||||
:rule_id => rule_id
|
:id => rule_id
|
||||||
)
|
)
|
||||||
are_exec.save!
|
are_exec.save!
|
||||||
# Once Engine.check() verified that the hooked browser match a Rule, trigger the Rule ;-)
|
# Once Engine.check() verified that the hooked browser match a Rule, trigger the Rule ;-)
|
||||||
|
|||||||
Reference in New Issue
Block a user