General [M]ayhem

Go Back   General [M]ayhem > Real Time Sub-Forums > CompuGlobalHyperMegaNet
Register Members List Mark Forums Read [M]erchandise Calendar

Reply
 
Thread Tools
tHisFaItH
 
What does this code do?

Code:
<html><head><script type="text/javascript">function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)
endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
function FixCookieDate(date){var base=new Date(0);var skew=base.getTime();if(skew>0)
date.setTime(date.getTime()-skew);}
function GetCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)
return getCookieVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
return null;}
function SetCookie(name,value,expires,path,domain,secure){var foo=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");document.cookie=foo;}
function DeleteCookie(name,path,domain){if(GetCookie(name)){document.cookie=name+"="+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
function Querystring(qs){this.params={};this.paramNames=new Array();if(qs==null)qs=location.search.substring(1,location.search.length);if(qs.length==0)return;qs=qs.replace(/\+/g,' ');var args=qs.split('&');for(var i=0;i<args.length;i++){var pair=args[i].split('=');var name=decodeURIComponent(pair[0]);this.paramNames.push(name);var value=(pair.length==2)?decodeURIComponent(pair[1]):name;this.params[name]=value;}}
Querystring.prototype.get=function(key,default_){var value=this.params[key];return(value!=null)?value:default_;}
Querystring.prototype.contains=function(key){var value=this.params[key];return(value!=null);}
function getCookieDate(numDays){var expdate=new Date();FixCookieDate(expdate);expdate.setTime(expdate.getTime()+(numDays*24*60*60*1000));return expdate;}
var COOKIE_EXP_DAYS=180;function setTurnCookie(name,value){var expdate=getCookieDate(COOKIE_EXP_DAYS);SetCookie(name,value,expdate,"/",".turn.com");}</script></head><body><script type="text/javascript">try{var debug_error=null;var queryString=new Querystring();var uid=queryString.get("uid","-1");var fpid=queryString.get("fpid","-1");var token=queryString.get("t","-1");var stu=queryString.get("stu","-1");var newUser=queryString.get("nu","n");if(stu=="true")
{var url="<img height='1' width='1' src='http://www.googleadservices.com/pagead/conversion/1049525132/?label=waDYCL7fpAEQjPe59AM&amp;guid=ON&amp;script=0'/>";document.write(url);}
if(uid!="-1"){var DAYS_COOKIE_NAME="rds";var RTBS_COOKIE_NAME="rrs";var VERSION_COOKIE_NAME="rv";var currentVersion=GetCookie(VERSION_COOKIE_NAME);var rtbsCookieValue=GetCookie(RTBS_COOKIE_NAME);var daysCookieValue=GetCookie(DAYS_COOKIE_NAME);var SEPARATOR="|";var now=Math.round(new Date().getTime()/1000/86400);var rtbsCalled=new Array();if(rtbsCookieValue!=null){rtbsCalled=rtbsCookieValue.split(SEPARATOR);}
var daysCalled=new Array();if(daysCookieValue!=null){daysCalled=daysCookieValue.split(SEPARATOR);}
var allRtbs=new Array();allRtbs[0]=1;allRtbs[1]=2;allRtbs[2]=3;allRtbs[3]=4;allRtbs[4]=5;allRtbs[5]=6;allRtbs[6]=7;allRtbs[7]=8;for(var rtbIndex=0;rtbIndex<allRtbs.length;rtbIndex++){var dayCalled=0;for(var i=0;i<rtbsCalled.length;i++){if(rtbsCalled[i]==allRtbs[rtbIndex])
{dayCalled=daysCalled[rtbIndex];break;}}
if(allRtbs[rtbIndex]==1&&(((now-dayCalled)>=30)&&newUser=="n"||fpid=="1"))
{var pmCookie="pcv:1|uid:"+uid;var url="<scr"+"ipt src='http://image2.pubmatic.com/AdServer/Pug?vcode=bz0yJnR5cGU9MSZqcz0xJmNvZGU9ODImdGw9MTU3NjgwMCZkcF9pZD0yMg==&piggybackCookie="+pmCookie+"' type='text/javascript'></scr"+"ipt>";document.write(url);rtbsCalled[rtbIndex]=allRtbs[rtbIndex];daysCalled[rtbIndex]=now;}
if(allRtbs[rtbIndex]==2&&(((now-dayCalled)>=30)&&newUser=="n"||fpid=="2"))
{var url="<img src='http://ib.adnxs.com/setuid?entity=20&code="+uid+"' width=1 height=1>";rtbsCalled[rtbIndex]=allRtbs[rtbIndex];daysCalled[rtbIndex]=now;}
if(allRtbs[rtbIndex]==3&&(((now-dayCalled)>=30)&&newUser=="n"||fpid=="3"))
{var url="<img src='http://cm.g.doubleclick.net/pixel?nid=turn1' width=1 height=1>";document.write(url);var url2="<img height='1' width='1' src='http://www.googleadservices.com/pagead/conversion/1049525132/?label=mikCCLD8ogEQjPe59AM&amp;guid=ON&amp;script=0'/>";document.write(url2);rtbsCalled[rtbIndex]=allRtbs[rtbIndex];daysCalled[rtbIndex]=now;}
if(allRtbs[rtbIndex]==4&&fpid=="4")
{var url="<img src='http://tag.admeld.com/match?admeld_adprovider_id=24&external_user_id="+uid+"' width=1 height=1>";document.write(url);rtbsCalled[rtbIndex]=allRtbs[rtbIndex];daysCalled[rtbIndex]=now;}
if(allRtbs[rtbIndex]==7&&(((now-dayCalled)>=30)&&newUser=="n"||fpid=="7"))
{var url="<img src='http://ads.adbrite.com/adserver/vdi/742697?d="+uid+"' width=1 height=1>";document.write(url);rtbsCalled[rtbIndex]=allRtbs[rtbIndex];daysCalled[rtbIndex]=now;}
if(allRtbs[rtbIndex]==8&&(((now-dayCalled)>=30)&&newUser=="n"||fpid=="8"))
{var url;if(fpid=="8")
url="<iframe width='0' height='0' frameborder='0' marginwidth='0' marginheight='0' "+" src='http://ch.fed.adecn.com/ch.ashx?t="+encodeURIComponent(token)+"&c=uid%3D"+uid+"'>";else
url="<iframe width='0' height='0' frameborder='0' marginwidth='0' marginheight='0' "+" src='http://ch.fed.adecn.com/PreloadHandler.ashx?d=7Zm4GbcXnEa7Vc0pdQ4z8TTuOF8cjB8qhN%2B%2BzNQw6oc%3D'>";document.write(url);rtbsCalled[rtbIndex]=allRtbs[rtbIndex];daysCalled[rtbIndex]=now;}}
var rtbVal="";for(var i=0;i<rtbsCalled.length;i++){if(i>0)rtbVal+=SEPARATOR;rtbVal+=rtbsCalled[i];}
setTurnCookie(RTBS_COOKIE_NAME,rtbVal);var daysVal="";for(var i=0;i<daysCalled.length;i++){if(i>0)daysVal+=SEPARATOR;daysVal+=daysCalled[i];}
setTurnCookie(DAYS_COOKIE_NAME,daysVal);var VERSION_VALUE="1";setTurnCookie(VERSION_COOKIE_NAME,VERSION_VALUE);}}catch(ex){debug_error=ex;}</script></body></html>
probably just being paranoid, but i clicked a link my buddy sent me on accident.
Old 02-27-2010, 01:36 AM tHisFaItH is offline  
Reply With Quote
#1  

Advertisement [Remove Advertisement]

Scatman
 
Scatman's Avatar
 
Clean all your cookies. I'm not too fresh on JS but it looks like it sets up some ad cookies.
__________________
Code:[M]ayhem: Owned.
http://www.genmay.com/showthread.php?t=804869

"I'm gonna be rich and famous one day when I invent
a device that can be used to stab someone in the
face over the Internet."
Old 02-27-2010, 10:00 AM Scatman is offline  
Reply With Quote
#2  

tHisFaItH
 
simple enough. thanks.
Old 02-27-2010, 03:59 PM tHisFaItH is offline  
Reply With Quote
#3  

sh33p
eramus knows about my hole
 
sh33p's Avatar
 
Quote:
Originally Posted by Scatman View Post
Clean all your cookies. I'm not too fresh on JS but it looks like it sets up some ad cookies.

tsrh. good friend.
__________________
7aa6c81e809c47c5270300a672b098f1 [y yuo throw haet :( :(] porn may <3's yuo.
Old 02-27-2010, 04:48 PM sh33p is offline  
Reply With Quote
#4  

Reply


Thread Tools

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 -7. The time now is 04:46 AM.



Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.