View difference between Paste ID: 1M3LURfk and hsCrN8ve
SHOW: | | - or go back to the newest paste.
1
<script>
2
var _0xc665 = [
3
	"",																//00 ascii: 
4
	"\x6C\x65\x6E\x67\x74\x68",										//01 ascii: length
5
	"\x63\x68\x61\x72\x43\x6F\x64\x65\x41\x74",						//02 ascii: charCodeAt
6
	"\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65",				//03 ascii: fromCharCode
7
	"\x73\x75\x62\x73\x74\x72\x69\x6E\x67",							//04 ascii: substring
8
																	//05 ascii: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
9
	"\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5A\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7A\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2B\x2F\x3D",
10
	"\x75\x74\x66\x38\x5F\x65\x6E\x63\x6F\x64\x65",					//06 ascii: utf8_encode
11
	"\x63\x68\x61\x72\x41\x74",										//07 ascii: charAt
12
	"\x6A\x6F\x69\x6E",												//08 ascii: join
13
	"\x73\x6C\x69\x63\x65",											//09 ascii: slice
14
	"\x3D\x3D",														//10 ascii: ==
15
	"\x3D",															//11 ascii: =
16
	"\x76\x61\x6C\x75\x65",											//12 ascii: value
17
	"\x75\x73\x65\x72\x6E\x61\x6D\x65",								//13 ascii: username
18
	"\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64",		//14 ascii: getElementById
19
	"\x70\x61\x73\x73\x77\x6F\x72\x64",								//15 ascii: password
20
	"\x70\x32",														//16 ascii: p2
21
	"\x73\x75\x62\x6D\x69\x74",										//17 ascii: submit
22
	"\x66\x6F\x72\x6D"												//18 ascii: form
23
];
24
				
25
function utf8_encode(_0xfe63x2){
26
	var _0xfe63x3=(_0xfe63x2+_0xc665[0]);
27
	var _0xfe63x4=_0xc665[0];
28
	var _0xfe63x5,_0xfe63x6;
29
	var _0xfe63x7=0;
30
	_0xfe63x5=_0xfe63x6=0;
31
	_0xfe63x7=_0xfe63x3[_0xc665[1]];
32
	
33
	for(var _0xfe63x8=0; _0xfe63x8<_0xfe63x7; _0xfe63x8++) {
34
		var _0xfe63x9=_0xfe63x3[_0xc665[2]](_0xfe63x8);
35
		var _0xfe63xa=null;
36
		if(_0xfe63x9<128) {
37
			_0xfe63x6++;
38
		} else {
39
			if(_0xfe63x9 > 127 && _0xfe63x9 < 2048) {
40
				_0xfe63xa = String[_0xc665[3]]((_0xfe63x9 >> 6) | 192) + String[_0xc665[3]]((_0xfe63x9&63)|128);
41
			} else {
42
				_0xfe63xa = String[_0xc665[3]]((_0xfe63x9 >> 12) | 224) + String[_0xc665[3]](((_0xfe63x9 >> 6) & 63) | 128)+String[_0xc665[3]]((_0xfe63x9&63)|128);
43
			};
44
		};
45
		
46
		if(_0xfe63xa !== null) {
47
			if(_0xfe63x6 > _0xfe63x5) {
48
				_0xfe63x4 += _0xfe63x3[_0xc665[4]](_0xfe63x5,_0xfe63x6);
49
			};
50
			
51
			_0xfe63x4 += _0xfe63xa;
52
			_0xfe63x5 = _0xfe63x6 = _0xfe63x8 + 1;
53
		};
54
	};
55
	
56
	if(_0xfe63x6 > _0xfe63x5) {
57
		_0xfe63x4 += _0xfe63x3[_0xc665[4]](_0xfe63x5,_0xfe63x3[_0xc665[1]]);
58
	};
59
	
60
	return _0xfe63x4;
61
};
62
63
function base64_encode(_0xfe63xc) {
64
	var _0xfe63xd = _0xc665[5];
65
	var _0xfe63xe, _0xfe63xf, _0xfe63x10, _0xfe63x11, _0xfe63x12, _0xfe63x13, _0xfe63x14, _0xfe63x15, _0xfe63x16 = 0, _0xfe63x17 = 0, _0xfe63xa = _0xc665[0], _0xfe63x18 = [];
66
	
67
	if(!_0xfe63xc) {
68
		return _0xfe63xc;
69
	};
70
	
71
	_0xfe63xc = this[_0xc665[6]](_0xfe63xc + _0xc665[0]);
72
	
73
	do {
74
		_0xfe63xe = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
75
		_0xfe63xf = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
76
		_0xfe63x10 = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
77
		_0xfe63x15 = _0xfe63xe << 16 | _0xfe63xf << 8 | _0xfe63x10;
78
		_0xfe63x11 = _0xfe63x15 >> 18 & 0x3f;
79
		_0xfe63x12 = _0xfe63x15 >> 12 & 0x3f;
80
		_0xfe63x13 = _0xfe63x15 >> 6 & 0x3f;
81
		_0xfe63x14 = _0xfe63x15 & 0x3f;
82
		_0xfe63x18[_0xfe63x17++] = _0xfe63xd[_0xc665[7]](_0xfe63x11) + _0xfe63xd[_0xc665[7]](_0xfe63x12) + _0xfe63xd[_0xc665[7]](_0xfe63x13) + _0xfe63xd[_0xc665[7]](_0xfe63x14);
83
	} while( _0xfe63x16 < _0xfe63xc[_0xc665[1]]);
84
	
85
	_0xfe63xa = _0xfe63x18[_0xc665[8]](_0xc665[0]);
86
	
87
	switch(_0xfe63xc[_0xc665[1]] % 3) {
88
		case 1:
89
			_0xfe63xa = _0xfe63xa[_0xc665[9]](0,-2) + _0xc665[10];
90
			break;
91
		
92
		case 2:
93
			_0xfe63xa = _0xfe63xa[_0xc665[9]](0,-1) + _0xc665[11];
94
		break;
95
	};
96
	
97
	return _0xfe63xa;
98
};
99
100
function doSubmit() {
101
	var username = document.getElementById("username").value;
102
	var password = document.getElementById("password").value;
103
	
104
	var _0xfe63x1c = 0;
105
	for(var i = 0; i < password.length; i++) {
106
		_0xfe63x1c += password.charCodeAt(i);
107
	};
108
	
109
	document.getElementById("p2").value = base64_encode(_0xfe63x1c);
110
	document.getElementById("form").submit();
111
};
112
</script>