latest news

01.12.2012

gmap3 for JQuery : v5.0

04.09.2011

Flow for JQuery : v2.7

18.11.2011

gmap3 for JQuery : v4.1

19.01.2011

A fake Virus in JQuery

JQuery : Virus (fake ^^)

Few month ago, a website i'll will not mention has added direct links to my download files instead of giving links to the download page ands without citing my website.
The admin doesn't answer to my mail, I was very angry, so i decided to write an hoax ^^, a russian virus installation to scare its users.
So, when someone click on its links to download my shared files, user is redirected to my hoax.

It display a progress bar and adapt the virus name to the user system. To be very scary, it is translated into Russian :P

Try a demonstration : JQuery - Russian Virus - Fake

Here is the simple code :

<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<style>
  body{
    background-color: #000;
    font-family:monospace,sans-serif;
    font-size: 11px;
    color: #3D650C;
  }
  #cie{
    text-align: center;
    height: 20px;
    width:100%;
  }
  #load{
    width:75%;
    height: 20px;
    border: 1px solid #3D650C;
    margin: 0 auto;
    text-align: left;
  }
  #progress{
    width:0;
    height: 20px;
    background-color: #1B2D07;
  }
  #message{
    display: none;
  }
  #system{
  }
</style>
<script>
function U(P){ var t = 50; if ( ((P >= 45) && (P < 50) ) || ((P >= 60) && (P < 65) ) ) t = 200; $('#progress').width( Math.floor( P * $('#load').width() / 100 ) ); if (P < 100) setTimeout('U('+(P+1) +');', t); else K();};
function K(){$("#cie").hide();$("#message").fadeIn();}
$(function(){
  U(1);
  $('#system').html('Target : ' + B.browser + ' ' + B.version + ' / ' + B.OS + '<br><br>');
  var z = $("#message").html();
  $("#message").html(z.replace(/XXXXX/g, B.OS.substring(0,3).toUpperCase()));
});
  var B={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)return data[i].identity}else if(dataProp)return data[i].identity}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};B.init();
</script>
</head>
<body>
<div id="system">
</div>
<div id="message">
  Полиморфные вирусы "WII-ATT-XXXXX-2K10" установлен.<br>
  Ваша система будет терять одного файла в сутки. Связаться с администратором для процесса удаления.
  <br><br>
  Polymorphic virus "WII-ATT-XXXXX-2K10" installed.<br>
  Your system will lose one file per day. Contact the admin for the removal process.
  <br><br>
  Virus polymorphe "WII-ATT-XXXXX-2K10" installé.<br>
  Votre système perdra un fichier par jour. Contactez l'admin pour obtenir la procédure de suppression.
</div>
<div id="cie">
  <div id="load">
    <div id="progress"></div>
  </div>
</div>

</body>
</html>