Posts Tagged ‘hack’

Not Quite A Hack, But Lessons Learned

Monday, June 2nd, 2008

When I woke up this morning, I noticed an email from this site, congratulating me on setting up a new blog. Wondering what the hell that was supposed to mean, I went to this site, only to be greeted with the WordPress install page (wp-admin/install.php), as if no blog existed.

I figured the MySQL on this server had crashed. I wasn’t too worried about it as I’d backed up all my data late last week anyway. I figured I’d give it an hour for the host to sort out and check back later.

By the time I got to work, the site was indeed back up. I logged into WordPress and immediately noticed that the blog title that usually runs the top of the dashboard was now some long URL with words like “casino” and “gambling in it. All my posts seemed to be there, so I poked around a bit and noticed that the admin email had been changed to a hotmail address.

I quickly fixed this and continued to snoop around, but didn’t find anything else out of the ordinary.

I’m figuring that early this morning, some bot attacked all or a few of the WordPress blogs on my server, ramming it with requests until MySQL bailed. Then, it used the install.php file to try and create a new blog and change the password/contact address. Of course, it failed for the most part, but still…

So, no harm done, but I’m definitely wiser. After an initial blog is created, there’s no reason to keep install.php in your files. I deleted that as well as put several restrictions in place. Much Better.

Here’s a decent list of things you can do to harden and lock down your WordPress install.

Getting Firefox’s “Send Link” working with Thunderbird and Ubuntu Linux

Monday, January 21st, 2008

I’ve been using Firefox, Ubuntu and Thunderbird for years now and one thing that always irked me was the fact that the “Send Link” option in Firefox was totally non-operational. Ideally, I’d ALT-F - E and bang, a new email would open up in Thunderbird with the page title in the subject and the link in the body of the mail, but no go. Nothing.

This morning, I wanted to email a buddy of mine a link and got to feeling like there must be some fix out there for this, so I did some Googling and after hitting on the sweet search string, I found the answer.

To get Firefox to open a compose window via the “Send Link” option, do this:

  1. Open firefox and in the address bar, type “about:config”
  2. Right-click within the body of the page that opens and select “New” and then “String”
  3. In the dialog box, where it says “Enter preference name”, paste: network.protocol-handler.app.mailto
  4. In the next dialog box, enter your path to Thunderbird. Mine is /usr/bin/thunderbird.
  5. Hit OK and restart Firefox. “Send Link” should now work with Thunderbird.

Sweet.