2013. 9. 5. 10:27ㆍ99. 정리전 - IT/11. Java
자바스크립트 암호화, 최소화
try {
var blogId = document.write(parent.document.location.href.toLowerCase().split("blogid=")[1].split("&")[0]);
} catch (e) {
var blogId = "err";
}
var img_url = "https://t1.daumcdn.net/cfile/tistory/131B8F3D4F21597B13"
var img_right = "0"
var img_bottom = "-350"
var timer1 = setInterval("chk_close();", 1000);
function chk_close() {
if (parent.document.getElementById("widget").style.display == 'none') {
if (getCookie("wid_ani_" + blogId) == "") {
setCookie("wid_ani_" + blogId, "1", 1);
}
} else {
setCookie("wid_ani_" + blogId, "", 1);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function setCookie(name, value, expiredays) {
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function getCookie(name) {
var nameOfCookie = name + "=";
var x = 0;
while (x <= document.cookie.length) {
var y = (x + nameOfCookie.length);
if (document.cookie.substring(x, y) == nameOfCookie) {
if ((endOfCookie = document.cookie.indexOf(";", y)) == -1)
endOfCookie = document.cookie.length;
return unescape(document.cookie.substring(y, endOfCookie));
}
x = document.cookie.indexOf(" ", x) + 1;
if (x == 0)
break;
}
return "";
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (parent.document.getElementById) {
myObj = parent.document.createElement("DIV");
parent.document.body.appendChild(myObj);
if (getCookie("wid_ani_" + blogId) == "") {
eval(function (p, a, c, k, e, d) {
e = function (c) {
return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
};
if (!''.replace(/^/, String)) {
while (c--) {
d[e(c)] = k[c] || e(c)
}
k = [
function (e) {
return d[e]
}
];
e = function () {
return '\\w+'
};
c = 1
};
while (c--) {
if (k[c]) {
p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c])
}
}
return p
}('18 e="<9 1=\\"Z-A: r; k: l; j: i; b: "+15+"f; o: h; c: "+L+"f\\" s=\'v\'><p n=\'u\'><a U=\\"Q: 6.7(\'v\').1.5=\'8\';6.7(\'q\').1.5=\'8\';6.7(\'t\').1.5=\'\';\\" ><e m=\'"+14+"\' F=\'w\' N=\'I\' H=\'d\' 1=\\"M: J;4-b-3: 2(0,0,0); 4-G-3: 2(0,0,0); 4-c-3: 2(0,0,0); 4-y-3: 2(0,0,0); B: E; D: C\\" x=\'%z%K\'></a></p></9>"+"<9 1=\\"Z-A: r; k: l; j: i; b: -P; o: h; c: "+(O(L))+"f\\" s=\'17\'><p n=\'u\'><a 13=\'g://19.11.X/Y/12/10.16\' 1d=\'1f\' ><e m=\'g://1h.S.R.T/d/1a\' F=\'w\' N=\'I\' H=\'d\' 1=\\"M: J;4-b-3: 2(0,0,0); 4-G-3: 2(0,0,0); 4-c-3: 2(0,0,0); 4-y-3: 2(0,0,0); B: E; D: C;V: 8;\\" x=\'%z%K\'></a></p></9>"+"<9 1=\\"Z-A: r; k: l; j: i; b: -P; o: h; c: "+(O(L)-W)+"f\\" s=\'q\'><p n=\'u\'><a U=\\"Q: 6.7(\'v\').1.5=\'8\';6.7(\'q\').1.5=\'8\';6.7(\'t\').1.5=\'\';\\" ><e m=\'g://1g.S.R.T/d/1e\' F=\'w\' N=\'I\' H=\'d\' 1=\\"M: J;4-b-3: 2(0,0,0); 4-G-3: 2(0,0,0); 4-c-3: 2(0,0,0); 4-y-3: 2(0,0,0); B: E; D: C;V: 8;\\" x=\'%z%K\'></a></p></9>"+"<9 1=\\"Z-A: r; k: l; 5: 8; j: i; b: -P; o: h; c: "+(O(L)-W)+"f\\" s=\'t\'><p n=\'u\'><a U=\\"Q: 6.7(\'v\').1.5=\'\';6.7(\'q\').1.5=\'\';6.7(\'t\').1.5=\'8\';\\" ><e m=\'g://1c.S.R.T/d/1b\' F=\'w\' N=\'I\' H=\'d\' 1=\\"M: J;4-b-3: 2(0,0,0); 4-G-3: 2(0,0,0); 4-c-3: 2(0,0,0); 4-y-3: 2(0,0,0); B: E; D: C;V: 8;\\" x=\'%z%K\'></a></p></9>";', 62, 80, '|style|rgb|COLOR|BORDER|display|document|getElementById|none|div||BOTTOM|RIGHT|image|img|px|http|706px|180px|WIDTH|POSITION|fixed|src|align|HEIGHT||btn2|10000|id|btn3|left|widget|__se_object|jsonvalue|LEFT|7B|INDEX|rwidth|350px|rheight|179px|class|TOP|s_subtype|attachment|pointer|7D|img_right|cursor|s_type|parseInt|670px|javascript|tistory|uf|com|onclick|border|55|kr|benkyou||widget|pe|iframe|href|img_url|img_bottom|php|btn1|var|alien|151F463D4F215978111146|136C3F4D4F230CBE1DC089|cfile8|target|156CA04D4F230CBE1D994D|_0|cfile2|cfile1'.split('|'), 0, {}));
} else {
eval(function (p, a, c, k, e, d) {
e = function (c) {
return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
};
if (!''.replace(/^/, String)) {
while (c--) {
d[e(c)] = k[c] || e(c)
}
k = [
function (e) {
return d[e]
}
];
e = function () {
return '\\w+'
};
c = 1
};
while (c--) {
if (k[c]) {
p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c])
}
}
return p
}('15 e="<c 1=\\"Z-B: A; s: k; l: j; 9: "+14+"f; n: o; b: "+F+"f;5: 6;\\" r=\'v\'><p u=\'h\'><a V=\\"Q: 7.8(\'v\').1.5=\'6\';7.8(\'q\').1.5=\'6\';7.8(\'t\').1.5=\'\';\\" ><e g=\'"+16+"\' w=\'I\' N=\'H\' K=\'d\' 1=\\"L: J;3-9-2: 4(0,0,0); 3-G-2: 4(0,0,0); 3-b-2: 4(0,0,0); 3-y-2: 4(0,0,0); E: D; C: m\\" x=\'%z%M\'></a></p></c>"+"<c 1=\\"Z-B: A; s: k; l: j; 9: -P; n: o; b: "+(O(F))+"f\\" r=\'13\'><p u=\'h\'><a 18=\'i://19.10.X/12/11/Y.17\' 1d=\'1f\' ><e g=\'i://1h.U.T.R/d/1a\' w=\'I\' N=\'H\' K=\'d\' 1=\\"L: J;3-9-2: 4(0,0,0); 3-G-2: 4(0,0,0); 3-b-2: 4(0,0,0); 3-y-2: 4(0,0,0); E: D; C: m;S: 6;\\" x=\'%z%M\'></a></p></c>"+"<c 1=\\"Z-B: A; s: k; l: j; 9: -P; n: o; b: "+(O(F)-W)+"f;5: 6;\\" r=\'q\'><p u=\'h\'><a V=\\"Q: 7.8(\'v\').1.5=\'6\';7.8(\'q\').1.5=\'6\';7.8(\'t\').1.5=\'\';\\" ><e g=\'i://1g.U.T.R/d/1e\' w=\'I\' N=\'H\' K=\'d\' 1=\\"L: J;3-9-2: 4(0,0,0); 3-G-2: 4(0,0,0); 3-b-2: 4(0,0,0); 3-y-2: 4(0,0,0); E: D; C: m;S: 6;\\" x=\'%z%M\'></a></p></c>"+"<c 1=\\"Z-B: A; s: k; l: j; 9: -P; n: o; b: "+(O(F)-W)+"f\\" r=\'t\'><p u=\'h\'><a V=\\"Q: 7.8(\'v\').1.5=\'\';7.8(\'q\').1.5=\'\';7.8(\'t\').1.5=\'6\';\\" ><e g=\'i://1c.U.T.R/d/1b\' w=\'I\' N=\'H\' K=\'d\' 1=\\"L: J;3-9-2: 4(0,0,0); 3-G-2: 4(0,0,0); 3-b-2: 4(0,0,0); 3-y-2: 4(0,0,0); E: D; C: m;S: 6;\\" x=\'%z%M\'></a></p></c>";', 62, 80, '|style|COLOR|BORDER|rgb|display|none|document|getElementById|BOTTOM||RIGHT|div|image|img|px|src|left|http|180px|fixed|WIDTH|350px|HEIGHT|706px||btn2|id|POSITION|btn3|align|widget|class|jsonvalue|LEFT|7B|10000|INDEX|rheight|179px|rwidth|img_right|TOP|attachment|__se_object|pointer|s_subtype|cursor|7D|s_type|parseInt|670px|javascript|com|border|tistory|uf|onclick|55|kr|widget||pe|iframe|benkyou|btn1|img_bottom|var|img_url|php|href|alien|151F463D4F215978111146|136C3F4D4F230CBE1DC089|cfile8|target|156CA04D4F230CBE1D994D|_0|cfile2|cfile1'.split('|'), 0, {}));
}
myObj.innerHTML = img