-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerator.js
More file actions
37 lines (37 loc) · 885 Bytes
/
generator.js
File metadata and controls
37 lines (37 loc) · 885 Bytes
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
var fso = new ActiveXObject ("Scripting.FileSystemObject");
var base = fso.OpenTextFile ("base.txt", 1);
var code = fso.OpenTextFile ("code.txt", 1);
var out = fso.CreateTextFile("jfuery.js");
out.Write ('[');
out.Write (base.readLine());
var db = code.readAll();
//WScript.Echo (db);
function w(v) {
out.Write ([
'[[]]()', '()[[]]', '()()', '([])',
'(![])', '(+[])', '([[]])', '(!![])',
'()([])', '([![]])', '([+[]])', '([]+[])',
'(+!![])', '[![]]()', '[+[]]()', '()[+[]]'
][v&15]);
}
for (var i=0; i<db.length; i++) {
if (i%500 == 0) {
if (i) out.Write ('()');
out.Write ('+[][[]]');
}
var s = db.charCodeAt(i);
if (s<256) {
w (s >> 4);
w (s);
} else {
out.Write ('()[![]]');
w (s >> 12);
w (s >> 8);
w (s >> 4);
w (s);
}
}
out.Write ('()][[]]()[!![]]()');
base.Close();
code.Close();
out.Close();