Tag Archives: tutorial

Neutralizing a Trojan.JS.Redirector.cq SQL injection on your WordPress blog

29 Jul

Early today, a friend Calvin Chew had tweeted me about an antivirus alert on my site. I immediately looked into it, and did some research on the internet.

It turned out that a code linked to a remote malicious Javascript had been inserted to each of my five-hundred-something pages and posts through an SQL injection attack which redirects visitors to a rogue antivirus page that downloads a rootkit onto the local system upon any click, even to close the window. This Javascript trojan is said to mostly affect MediaTemple-hosted WordPress blog.

I’ve managed to successfully cleared the databases in less than an hour on the phone. If your blog has been compromised, read on to find out how.

(more…)

Removing Facebook events

25 Jul

Ever got annoyed by fake Facebook events?

Luckily, removing them is as simple as 1-2-3. Read on to find out how.

(more…)

Using the Goo.gl URL shortener

27 Jun

In late 2009, Google released their new goo.gl URL shortener service for use with Google products and services. On the goo.gl website, it is mentioned that URL shortener service is not available for “broader consumer use”.

However, a certain Matthew Flaschen has made it possible to use goo.gl for any URL through a convenient Javascript bookmarklet. All you need to do is drag this link into your Bookmarks: Goo.gl

To use it, just click on the bookmarklet when you’re on the page whose URL you’d like to shorten and a pop-up window will appear with the shortened link that you can select and copy.

Watermark images in PHP

30 May

I’ve always been very lazy to watermark my photos. Adobe’s Lightroom 2 doesn’t currently support automatic image watermarking and the only viable option is to launch Photoshop CS4 and apply the watermark to each and every photo. Very tedious, isn’t it?

So I thought to myself, why not just watermark images on-the-fly on my site? And with that, I explored the webs to find an efficient way to do it, but most are bugged with two problems – you can only use a PNG-8 image watermark, and your images will suffer from terribly devastating JPEG compression artefacts. Oh, the horror!

And here I am, with my shiny and polished code. Read on to find out more!

(more…)

Removing Facebook applications

15 May

Are you a victim of spam like these?

Every day, I see an alarmingly increasing number of people whose Facebook accounts are being controlled and used by spam bots through malicious applications. Are you one of them?

This easily-preventable issue of application spam is worryingly being ignored by victims and would-be victims. In this simple 5-step tutorial, I’ll show you how to block and remove Facebook applications that are bothering you.

(more…)