-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathobfuscatedJS.html
37 lines (35 loc) · 1.23 KB
/
obfuscatedJS.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
<html>
<head>
<title>Obfuscation JS</title>
<script type="text/javascript">
function atobctod(pass_enc){
var pass = "116,104,105,115,105,115,110,111,116,97,102,108,97,103,";
var tab = pass_enc.split(',');
var tab2 = pass.split(',');
var i,j,k,l=0,m,n,o,p = "";
i = 0;
j = tab.length;
k = j + (l) + (n=0);
n = tab2.length;
for(i = (o=0); i < (k = j = n); i++ )
{
o = tab[i-l];
p += String.fromCharCode((o = tab2[i]));
if(i == 5)break;
}
for(i = (o=0); i < (k = j = n); i++ )
{
o = tab[i-l];
if(i > 5 && i < k-1)
p += String.fromCharCode((o = tab2[i]));
}
p += String.fromCharCode(tab2[17]);
pass = p;
return pass;
}
String["fromCharCode"](atobctod(window.atob("NzcsNzksNjcsODMsNjcsODQsNzAsMTIzLDgyLDY5LDk1LDQ4LDk4LDEwMiwxMTcsMTE1LDk5LDY0LDExNiwxMDgsNzksMTEwLDk1LDc0LDUzLDEyNQ")));
h = window.prompt('Reverse the password');
alert(atobctod(h));
</script>
</head>
</html>