Friday, January 13, 2012

Analysing a facebook spam/rogue app

Recently a couple of my friends were affected by a rogue app that posted crap using their accounts, and I was a bit curious how everything worked. But, typically they are so short lived, that by the time I get to see them, they are gone from the face of the internet, but, this time...

Luckily today another of my friends *liked* one such shit, and lets see how it works...

First off, it links to an exact Facebook look alike page... http://kustuntuniya.blogspot.com/?3





The page is an exact look alike, however, the lazy fellows were lazy enough not actually make all the links work. The header is just a div element with a CSS background image.

backgroundurl("http://i55.tinypic.com/jpj7fl.jpg") no-repeat scroll center top #3B5998;

 
Similarly the bottom part, is another image http://i.imgur.com/ZJLcI.jpg

Now, its the middle part that is actually interesting. 
The whole dark area is an iframe containing the page http://installplug.info/girlplugin.html 

The page has all the elements and the button like anchor tag, "Install Plugin", with the following code,  
<a class="install nomargin" onclick="instalar();">a>

So, it call our beloved instalar  function in javascript, which is found above in a script tag.


The next two lines tell them the type of browser... To install the XPI addon for firefox and CRX addon for Google chrome.


var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;


1 comment:

  1. thanks for this Usefull post, this is the only result when is search about http://munishocks.info/new/extra.js, coz this js keeps on appearing on my offline site error when i turn on web console of my gchrome.. I also experienced this kind of spam a few months ago...


    www.wapdabarkads.co.cc

    ReplyDelete