Post

Javascript - Obfuscation 4 (Incomplete)

Javascript - Obfuscation 4

1
2
3
4
5
6
7
8
9
Javascript - Obfuscation 4

Author
aaSSfxxx,  18 July 2011

Statement
Find the password.

NB : You will have to enable popups in order to solve this challenge!

난독화 해제 사이트

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
varð = "\x71\x11\x24\x59\x8d\x6d\x71\x11\x35\x16\x8c\x6d\x71\x0d\x39\x47\x1f\x36\xf1\x2f\x39\x36\x8e\x3c\x4b\x39\x35\x12\x87\x7c\xa3\x10\x74\x58\x16\xc7\x71\x56\x68\x51\x2c\x8c\x73\x45\x32\x5b\x8c\x2a\xf1\x2f\x3f\x57\x6e\x04\x3d\x16\x75\x67\x16\x4f\x6d\x1c\x6e\x40\x01\x36\x93\x59\x33\x56\x04\x3e\x7b\x3a\x70\x50\x16\x04\x3d\x18\x73\x37\xac\x24\xe1\x56\x62\x5b\x8c\x2a\xf1\x45\x7f\x86\x07\x3e\x63\x47";

function _(x, y) {
	return x ^ y;
}
function __(y) {
	var z = 0;
	for (var i = 0; i < y; i++) {
		z += Math.pow(2, i);
	}
	return z;
}
function ___(y) {
	var z = 0;
	for (var i = 8 - y; i < 8; i++) {
		z += Math.pow(2, i);
	}
	return z
}
function ____(x, y) {
	y = y % 8;Ï = __(y);Ï = (x & Ï) << (8 - y);
	return (Ï) + (x >> y);
}
function _____(x, y) {
	y = y % 8;Ï = ___(y);Ï = (x & Ï) >> (8 - y);
	return ((Ï) + (x << y)) & 0x00ff;
}
function ______(x, y) {
	return _____(x, y)
}
function _______(_________, key) {
	________ = "";
	________2 = "";
	for (var i = 0; i < _________.length; i++) {
		c = _________.charCodeAt(i);
		if (i != 0) {
			t = ________.charCodeAt(i - 1) % 2;
			switch (t) {
			case 0:
				cr = _(c, key.charCodeAt(i % key.length));
				break;
			case 1:
				cr = ______(c, key.charCodeAt(i % key.length));
				break;
			}
		} else {
			cr = _(c, key.charCodeAt(i % key.length));
		}
		________ += String.fromCharCode(cr);
	}
	return ________;
}
function __________(þ) {
	var ŋ = 0;
	for (var i = 0; i < þ.length; i++) {ŋ += þ ["charCodeAt"](i)
	}
	if (ŋ == 8932) {
		var ç = window.open("", "", "\x77\x69\x64\x74\x68\x3d\x33\x30\x30\x2c\x68\x65\x69\x67\x68\x74\x3d\x32\x20\x30");
        ç.document.write(þ)                                                 
	} 
    else {
		alert("Mauvais mot de passe!")
	}
}
__________(_______(ð, prompt("Mot de passe?")));        
This post is licensed under CC BY 4.0 by the author.