Возможно вопрос чуть не в тему:
Нашел рабочий скрипт пользовательских закладок, которые хранятся в куках
[more=скрипт]/*---------------------------------------------------------/
/ uFAVORITE v1.0 /
/ -------- /
/ POWERED BY UCODES.RU /
/ AUTOR UBERCHEL /
/ COPYRIGHT UBERSOFT LTD. 2011 ALL RIGHTS RESERVED. /
/ SITE:
HTTP://UCODES.RU /
/---------------------------------------------------------*/
(uFavorite = {
v: {
a: 365 || 0,
b: 'span',
c: '',
d: '',
e: document.location.host,
s: 'default',
r: '',
h: '',
y: '',
i: ''
},
a: function(d, c, o, u, t) {
if (u == '') u = 'javascript://';
return [["<div ", "<\/div>", "<span ", "<\/span>", "<h1 ", "<\/h1>", "<h2 ", "<\/h2>", "<a ", "<img ", "<br ", "<hr ", ">", " \/>", "var s=document.getElementById('uFavorite');s.parentNode.removeChild(s)", "'"], ['ufavorite_', 'id="' + d + '"', 'class="' + c + '"', 'href="' + u + '"', 'onclick="' + o + '"', 'src="' + u + '"', 'title="' + t + '"', ' ', 'fadd', 'fdel', '"; expires="', '"; path="/";', '="', ';', 'onclick', 'uFavorite.f(this, 1)', 'uFavorite.f(this, 0)', 'class', 'body', 'resultFav', '/', '-', '_', '.html', '&', '"Msxml2.XMLHTTP"', '"Microsoft.XMLHTTP"', 'undefined', 'GET', '', '*', '=', 'rel', 'media', 'StyleSheet', 'type', 'text\/css', 'Screen', 'default', 'link', 'head', '\/ufavorite\/themes\/', '\/style.css', 'uFavorite', '|', '117|99|111|122|111|110|46|114|117|124|117|53|49|115|116|46|110|101|116|124|117|115|105|116|101|46|115|117|124|97|118|116|111|115|46|100|111|46|97|109', '1042|1085|1080|1084|1072|1085|1080|1077|44|32|1086|1096|1080|1073|1082|1072|32|1079|1072|1075|1088|1091|1079|1082|1080|32|1089|1082|1088|1080|1087|1090|1072|32|1080|1085|1080|1094|1080|1072|1083|1080|1079|1072|1094|1080|1080|32|1079|1072|1082|1083|1072|1076|1086|1082|33\n', '/close.png', '"', '1047|1072|1082|1083|1072|1076|1082|1080|44|32|1091|1078|1077|32|1086|1090|1082|1088|1099|1090|1099|33\n', '60|100|105|118|32|115|116|121|108|101|61|34|112|97|100|100|105|110|103|58|53|112|120|59|34|62|1047|1072|1082|1083|1072|1076|1086|1082|32|1085|1077|1090|44|32|1087|1091|1089|1090|1086|46|46|46|60|47|100|105|118|62\n', '(^|\\b)(', '|i)(\\b|$)', 'fvtop', 'fvlogo', 'fvs', '80|111|119|101|114|101|100|32|98|121|32|117|67|111|100|101|115|46|82|117', 'fCopyright', '|', '1040|1074|1090|1086|1088|1089|1082|1086|1077|32|1087|1088|1072|1074|1086|44|32|1086|1073|32|1080|1085|1090|1077|1083|1083|1077|1082|1090|1091|1072|1083|1100|1085|1086|1081|32|1089|1086|1073|1089|1090|1074|1077|1085|1085|1086|1089|1090|1080', '1085|1072|32|1089|1082|1088|1080|1087|1090|32|34|117|70|97|118|111|114|105|116|101|34|44|32|1087|1086|1083|1085|1086|1089|1090|1100|1102|32|1087|1088|1080|1085|1072|1076|1083|1077|1078|1080|1090|32|1077|1075|1086|32|1072|1074|1090|1086|1088|1091|44|32|1074|32|1083|1080|1094|1077', '1064|1091|1088|1084|1080|1085|1072|32|1052|46|1057|44|32|1090|1072|1082|1078|1077|32|1080|1079|1074|1077|1089|1090|1085|1099|1084|32|1087|1086|1076|32|1085|1080|1082|1086|1084|32|85|98|101|114|67|72|69|76|44|32|1072|1076|1084|1080|1085|1080|1089|1090|1088|1072|1090|1086|1088|1091|32|1089|1072|1081|1090|1072|32|117|67|111|100|101|115|46|82|117|46', '1055|1077|1088|1074|1086|1080|1089|1090|1086|1095|1085|1080|1082|1086|1084|32|1087|1091|1073|1083|1080|1082|1072|1094|1080|1080|44|32|1076|1072|1085|1085|1086|1081|32|1074|1077|1088|1089|1080|1080|32|1089|1082|1088|1080|1087|1090|1072|58|32|118|49|46|48|44|32|1103|1074|1083|1103|1077|1090|1089|1103|32|1090|1072|1082|1078|1077|32|1089|1072|1081|1090|32|117|67|111|100|101|115|46|82|117|33', '\n', '\n\r', 'msi']]
},
b: function(s) {
s = s.substr(s.indexOf(s.split(uFavorite.a()[1][20])[3]));
if (s.indexOf(uFavorite.a()[1][23]) != -1) {
s = s.slice(0, s.indexOf(uFavorite.a()[1][21]))
} else {
s = s.slice((s.indexOf(uFavorite.a()[1][21]) - 1), s.length)
}
while ((s.indexOf(uFavorite.a()[1][21]) >= 0) || (s.indexOf(uFavorite.a()[1][20]) >= 0)) {
s = s.replace(uFavorite.a()[1][21], uFavorite.a()[1][22]).replace(uFavorite.a()[1][20], uFavorite.a()[1][22])
}
return s
},
c: function(a, b, c) {
if (c) {
var d = new Date();
d.setTime(d.getTime() + (c * 24 * 60 * 60 * 1000));
var e = uFavorite.a()[1][10] + d.toGMTString()
} else {
e = uFavorite.a()[1][29]
}
document.cookie = a + uFavorite.a()[1][12] + b + e + uFavorite.a()[1][11]
},
d: function(a) {
var d = document.cookie.split(uFavorite.a()[1][13]);
for (var i = 0; i < d.length; i++) {
var c = decodeURIComponent(d[i]);
while (c.charAt(0) == uFavorite.a()[1][7]) c = c.substring(1, c.length);
if (c.indexOf(a) == 0) return c.substring(a.length, c.length)
}
return null
},
f: function(e, i, d) {
if (d) {
uFavorite.c(uFavorite.a()[1][0] + d, null, new Date(0))
} else {
if (i == 0) {
if (uFavorite.g(uFavorite.a()[1][44])) {
return false
}
uFavorite.c(uFavorite.a()[1][0] + uFavorite.b(e.getAttribute(uFavorite.a()[1][32]).split(uFavorite.a()[1][24])[0]), encodeURIComponent(e.getAttribute(uFavorite.a()[1][32])), uFavorite.v.a);
e.setAttribute(uFavorite.a()[1][14], uFavorite.a()[1][15]);
e.setAttribute(uFavorite.a()[1][17], uFavorite.a()[1][9])
} else if (i == 1) {
uFavorite.c(uFavorite.a()[1][0] + uFavorite.b(e.getAttribute(uFavorite.a()[1][32]).split(uFavorite.a()[1][24])[0]), null, new Date(0));
e.setAttribute(uFavorite.a()[1][14], uFavorite.a()[1][16]);
e.setAttribute(uFavorite.a()[1][17], uFavorite.a()[1][8])
}
}
},
g: function(p) {
if (p) {
var r = p.split(uFavorite.a()[1][44]);
for (var i = 0; i < r.length; i++) return (uFavorite.v.e == r[i])
} else return null
},
u: function() {
var a = 0;
var d = document.cookie.split(uFavorite.a()[1][13]);
for (var i = 0; i < d.length; i++) {
uFavorite.v.c = decodeURIComponent(d[i]);
while (uFavorite.v.c.charAt(0) == uFavorite.a()[1][7]) {
uFavorite.v.c = uFavorite.v.c.substring(1, uFavorite.v.c.length)
}
if (uFavorite.v.c.indexOf(uFavorite.a()[1][0]) == 0) {
uFavorite.v.d = uFavorite.a()[0][15] + String(uFavorite.v.c.substring(uFavorite.a()[1][0].length, uFavorite.v.c.length).split(uFavorite.a()[1][31])[0]) + uFavorite.a()[0][15];
uFavorite.v.r = String(uFavorite.v.c.substring(uFavorite.a()[1][0].length, uFavorite.v.c.length).split(uFavorite.a()[1][31])[1]).split(uFavorite.a()[1][24])[1].replace(uFavorite.a()[1][48], uFavorite.a()[1][29]);
uFavorite.v.h = String(uFavorite.v.c.substring(uFavorite.a()[1][0].length, uFavorite.v.c.length).split(uFavorite.a()[1][31])[1]).split(uFavorite.a()[1][24])[0].replace(uFavorite.a()[1][48], uFavorite.a()[1][29]);
document.getElementById(uFavorite.a()[1][19]).innerHTML += String('<div class="fStory" id="fvs' + a + '"><span class="fTitle"><a href="' + uFavorite.v.h + '" title="' + uFavorite.v.r + '">' + uFavorite.v.r + '</a></span><span class="fDelete" onclick="uFavorite.f(0,0,' + uFavorite.v.d + ');uFavorite.t(' + a + ');"></span></div>');
a++
} else setTimeout(function() {
var s = document.getElementById(uFavorite.a()[1][19]);
if (s.innerHTML == uFavorite.a()[1][29]) {
s.innerHTML = uFavorite.h(uFavorite.a()[1][50])
}
},
500)
}
},
t: function(a) {
var s = document.getElementById(uFavorite.a()[1][55] + a);
s.parentNode.removeChild(s);
if (document.getElementById(uFavorite.a()[1][19]).innerHTML == uFavorite.a()[1][29]) {
document.getElementById(uFavorite.a()[1][19]).innerHTML = uFavorite.h(uFavorite.a()[1][50])
}
},
h: function(b) {
uFavorite.v.i = uFavorite.a()[1][29];
var a = b.split(uFavorite.a()[1][58]);
for (var i = 0; i < a.length; i++) {
uFavorite.v.y = a[i];
uFavorite.v.i += String.fromCharCode(uFavorite.v.y)
}
return String(uFavorite.v.i)
},
go: {
init: function(e) {
var a = document.getElementsByTagName(uFavorite.v.b);
var b = RegExp(uFavorite.a()[1][51] + uFavorite.a()[1][8] + uFavorite.a()[1][52]);
if (navigator.userAgent.toLowerCase().indexOf(uFavorite.a()[1][65]) != -1) {
for (var i = 0; i < a.length; i++) {
if (b.test(a[i].className)) a[i].parentNode.removeChild(a[i])
}
return false
}
if (uFavorite.g(uFavorite.h(uFavorite.a()[1][45]))) {
return false
}
try {
uFavorite.v.a = String(e.expires);
uFavorite.v.s = String(e.style);
uFavorite.v.b = String(e.tag);
for (var i = 0; i < a.length; i++) {
if (b.test(a[i].className)) {
if (uFavorite.d(uFavorite.a()[1][0] + uFavorite.b(a[i].getAttribute(uFavorite.a()[1][32]).split(uFavorite.a()[1][24])[0]))) {
a[i].setAttribute(uFavorite.a()[1][17], uFavorite.a()[1][9]);
a[i].setAttribute(uFavorite.a()[1][14], uFavorite.a()[1][16])
}
}
}
} catch(e) {
alert(uFavorite.h(uFavorite.a()[1][46]) + e)
} finally {
var s = document.createElement(uFavorite.a()[1][39]);
s.setAttribute(uFavorite.a()[1][33], uFavorite.a()[1][37]);
s.setAttribute(uFavorite.a()[1][32], uFavorite.a()[1][34]);
s.setAttribute(uFavorite.a()[1][35], uFavorite.a()[1][36]);
if (!uFavorite.v.s || uFavorite.v.s == uFavorite.a()[1][29]) {
uFavorite.v.s = uFavorite.a()[1][38]
}
s.href = String(uFavorite.a()[1][41] + uFavorite.v.s + uFavorite.a()[1][42]);
document.getElementsByTagName(uFavorite.a()[1][40])[0].appendChild(s)
}
},
view: function() {
if (!document.getElementById(uFavorite.a()[1][43])) {
document.getElementsByTagName(uFavorite.a()[1][18])[0].innerHTML += String(uFavorite.a()[0][0] + uFavorite.a(uFavorite.a()[1][43])[1][1] + uFavorite.a()[1][7] + uFavorite.a()[0][12] + uFavorite.a()[0][0] + uFavorite.a(uFavorite.a()[1][53])[1][1] + uFavorite.a()[1][7] + uFavorite.a()[0][12] + uFavorite.a()[0][0] + uFavorite.a(uFavorite.a()[1][54])[1][1] + uFavorite.a()[1][7] + uFavorite.a()[0][12] + uFavorite.a()[0][9] + uFavorite.a(uFavorite.a()[1][29], uFavorite.a()[1][29], uFavorite.a()[1][29], uFavorite.a()[1][41] + uFavorite.v.s + uFavorite.a()[1][47])[1][5] + uFavorite.a()[1][7] + uFavorite.a(0, uFavorite.a()[1][29], uFavorite.a()[0][14])[1][4] + uFavorite.a()[0][13] + uFavorite.a()[0][1] + uFavorite.a()[0][1] + uFavorite.a()[0][0] + uFavorite.a(uFavorite.a()[1][19])[1][1] + uFavorite.a()[0][12] + uFavorite.a()[0][1] + uFavorite.a()[0][2] + uFavorite.a(uFavorite.a()[1][57])[1][1] + uFavorite.a()[1][7] + uFavorite.a()[0][12] + uFavorite.h(uFavorite.a()[1][56]) + uFavorite.a()[0][3] + uFavorite.a()[0][1])
} else {
alert(uFavorite.h(uFavorite.a()[1][49]));
return false
}
uFavorite.u()
},
uppp: function() {
alert(uFavorite.h(uFavorite.a()[1][59]) + uFavorite.a()[1][63] + uFavorite.h(uFavorite.a()[1][60]) + uFavorite.a()[1][63] + uFavorite.h(uFavorite.a()[1][61]) + uFavorite.a()[1][63] + uFavorite.h(uFavorite.a()[1][62]) + uFavorite.a()[1][64])
}
}
});
/*
|| the Script extends by a principle "AS IS", that is free.
|| Remember that plagiarism badly, a script is protected by the copyright about intellectual the property!
|| the Author of a script ubechel
|| 5:28 12/10/2011
*/[/more]
Только смущает, то что некоторые части кода зашифрованы, например:
117|99|111|122|111|110|46|114|117|124|117|53|49|115|116|46|110|101|116|124|117|115|105|116|101|46|115|117|124|97|118|116|111|115|46|100|111|46|97|109
Есть ли возможность расшифровать эти шифры, или хотя бы узнать что этот код не вредоносный?
Вот еще аналогичный [more=скрипт]/*##########################################################
MODULE FOVORITES (umFavorites) #############################
############################################################
POWERED BY UBERCHEL ########################################
COPYRIGHT 2013 UBERSOFT LLC. ALL RIGHTS RESERVED. ##########
ICQ: 468407295 #############################################
E-MAIL: UBERSOFT@I.UA ######################################
SITE:
HTTP://UBERMEDIA.RU AND
HTTP://UBERSOFT.RU ###########
##########################################################*/
;(function (window, undefined) {
var module;
var newsid;
var virify = false;
var tagIdEv = "umfav";
var tagIdBt = "umfavBut";
var tagIdGl = "umfavorite";
var tagClassCan = "umFCanvas";
var tagClassAdd = "umFavadd";
var tagClassDel = "umFavdel";
var globalfunc = "\x3C\x73\x70\x61\x6E\x20\x73\x74\x79\x6C\x65\x3D\x22\x66\x6C\x6F\x61\x74\x3A\x72\x69\x67\x68\x74\x3B\x66\x6F\x6E\x74\x2D\x73\x69\x7A\x65\x3A\x31\x30\x70\x78\x3B\x6D\x61\x72\x67\x69\x6E\x3A\x37\x70\x78\x20\x35\x70\x78\x20\x30\x70\x78\x20\x35\x70\x78\x3B\x63\x6F\x6C\x6F\x72\x3A\x23\x39\x37\x39\x37\x39\x37\x3B\x22\x3E\x26\x63\x6F\x70\x79\x3B\x26\x6E\x62\x73\x70\x3B\x32\x30\x31\x33\x26\x6E\x62\x73\x70\x3B\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x75\x62\x65\x72\x73\x6F\x66\x74\x2E\x72\x75\x22\x20\x73\x74\x79\x6C\x65\x3D\x22\x63\x6F\x6C\x6F\x72\x3A\x23\x39\x37\x39\x37\x39\x37\x3B\x74\x65\x78\x74\x2D\x64\x65\x63\x6F\x72\x61\x74\x69\x6F\x6E\x3A\x6E\x6F\x6E\x65\x3B\x22\x3E\x55\x62\x65\x72\x53\x4F\x46\x54\x20\x4C\x4C\x43\x2E\x3C\x2F\x61\x3E\x3C\x2F\x73\x70\x61\x6E\x3E";
var getByClass = function(a, b, c) {
if (a || a != undefinad) {
var j = new Array();
var e = document.getElementsByTagName("*");
var p = new RegExp("(^|\\b)("+a+")(\\b|$)", "ig");
if (!b || b == undefined) b = 0;
for (var i=0; i<e.length; i++) {
if (p.test(e[i].className)) {
j.push(e[i]);
}
}
if (!j || j == '') {
return undefined;
}
if (c == true) {
return j;
} else {
return j[(b<=j.length?b:j.length)];
}
} else
return false;
}
var remByClass = function (obj, cls) {
var classes = obj.className.split(' ');
for(var i=0; i<classes.length; i++) {
if (classes[i] == cls) {
classes.splice(i, 1);
i--;
}
}
obj.className = classes.join(' ');
}
var umCanvasPos = function () {
if (getByClass(tagClassCan)) {
var el = getByClass(tagClassCan);
var eh = el.offsetHeight/2;
var hd = (window.innerHeight/2) - eh;
el.style.cssText = "margin:"+hd+"px auto;";
} else return false;
}
var virifyCopy = function (a) {
if (a && typeof(a) != undefined) {
if (globalfunc.indexOf('\x55\x62\x65\x72\x53\x4F\x46\x54') != -1) {
virify = true;
return true;
}
} return false;
}
var fromData = function (a, b) {
if(a && typeof(a) != undefined && virify) {
var elem = a.getAttribute('rel').split('&');
var elem1 = elem[0].match(/(^[/]|\b)\d+/ig).join('');
if (b && b == true) {
return String("/" + module + elem[0].match(/[/]\d+-.+/im));
} else {
return new Array(tagIdEv + elem1, elem[1]);
}
} else
return undefined;
}
var items = function () {
var result = "";
var cookies = document.cookie.match(/umFav\d+/ig);
var trimfunc = "\x55\x62\x65\x72\x53\x4F\x46\x54\x20\x4C\x4C\x43";
var globaltrim = "\u0417\u0430\u043A\u043B\u0430\u0434\u043A\u0438\x20\u043D\u0435\x20\u0437\u0430\u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0442\x2C\x20\u0423\u0431\u0440\u0430\u043D\x20\u043A\u043E\u043F\u0438\u0440\u0430\u0439\u0442\x21";
if (virify && globalfunc.indexOf(trimfunc) != -1) {
for(var i in cookies) {
var data = unescape(cookie.get(cookies[i]));
data = data.split('::');
result += "<div class=\"umFresult\"><span onclick=\"umfavDelete(this,'"+cookies[i]+"');\"></span><a href=\""+data[0]+"\">"+data[1]+"</a></div>";
}
} else result = globaltrim;
getByClass(tagClassCan).innerHTML += globalfunc;
getByClass('umFContent').innerHTML = result;
}
this.umFavClose = function () {
var el = document.getElementById(tagIdGl);
if (el.style.display == 'block') {
el.innerHTML = "";
el.style.display = 'none';
}
}
this.umfavDelete = function (el, a) {
if (el && typeof(a) != undefined) {
if (cookie.set(a, 0, -1)) {
el.parentNode.parentNode.removeChild(el.parentNode);
} else alert('Не удалось удалить закладку!');
} else return false;
}
this.umFavorite = function (el) {
if (el || el != undefined) {
if(/umFavdel/i.test(el.className) && virify) {
remByClass(el, tagClassDel);
el.className = tagClassAdd;
el.setAttribute("title", "Добавить в закладки");
cookie.set(fromData(el)[0], null, -1);
} else {
remByClass(el, tagClassAdd);
el.className = tagClassDel;
el.setAttribute("title", "Удалить из закладок");
cookie.set(fromData(el)[0], (fromData(el, true) + '::' + fromData(el)[1]), 365);
}
} else return false;
}
this.onload = function () {
if (document.getElementById(tagIdGl)) {
var el = getByClass(tagClassAdd, 0, true);
var gl = document.getElementById(tagIdGl);
var gb = document.getElementById(tagIdBt);
var gc = "display:block;position:fixed;top:0px;left:0px;width:100%;height:100%;";
var wr = "<div class=\""+tagClassCan+"\"><div class=\"umFTop\"><span onclick=\"umFavClose(); return false;\"></span><img src=\"/umfav/img/logo.png\"></div><div class=\"umFContent\"></div></div>";
if (virifyCopy(globalfunc) && el) {
module = location.href.split('/')[3];
for (var i=0; i<el.length; i++) {
if (virify && cookie.get(fromData(el[i])[0]) != null) {
el[i].className = tagClassDel;
el[i].setAttribute("title", "Удалить из закладок");
}
}
if (gb.addEventListener) {
gb.addEventListener("click", function () {
gl.innerHTML = wr;
gl.style.cssText = gc;
umCanvasPos();
items();
}, false);
} else if (gb.attachEvent) {
gb.attachEvent("onclick", function () {
gl.innerHTML = wr;
gl.style.cssText = gc;
umCanvasPos();
items();
});
} else gb.onclick = function () {
gl.innerHTML = wr;
gl.style.cssText = gc;
umCanvasPos();
items();
}
} else
return false;
}
}
})(window);[/more]
так здесь тоже некоторые части зашифрованы, например:
\x55\x62\x65\x72\x53\x4F\x46\x54