-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.2.html
84 lines (69 loc) · 2.81 KB
/
1.2.html
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body>
<div class="center">
<div class="inner">
<p>Wait for the password cracking process to complete and press enter to submit.</p>
<input type ="text" name="pass" autofocus readonly>
</div>
</div>
<script src="js/vendor/jquery-1.11.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script>
$(document).ready(function() {
var alfaNumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
alfaNumeric = alfaNumeric.split("");
var i = 0;
var r1 = 0;
var r2 = 0;
var i2 = 0;
var bond = "DD-AT-MS-1502";
function shuffle(a) {
var j, x, i;
for (i = a.length; i; i -= 1) {
j = Math.floor(Math.random() * i);
x = a[i - 1];
a[i - 1] = a[j];
a[j] = x;
}
}
shuffle(alfaNumeric);
var getChar = setInterval(function(){
i1 = i + 1;
if (i1%3 == 0 && i1 != 12) {
$("input[name=pass]").val($("input[name=pass]").val() + "-");
i++;
} else {
if ( r1 < 36 ) {
$("input[name=pass]").val($("input[name=pass]").val().substr(0,i) + alfaNumeric[r1]);
r1++;
} else {
$("input[name=pass]").val($("input[name=pass]").val().substr(0,i) + alfaNumeric[r2]);
r2++;
}
}
if (alfaNumeric[r2-1] == bond.substr(i,1)) {
shuffle(alfaNumeric);
i++;
r1 = 0;
r2 = 0;
}
if (i == bond.length ) {
clearInterval(getChar);
}
}, 75 );
});
</script>
</body>
</body>
</html>