Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] How to decode obfuscated Javscript


  • From: flavio at economisa.com.br (Flávio Gomes)
  • Subject: [Javascript] How to decode obfuscated Javscript
  • Date: Fri Sep 22 10:51:05 2006

Check the last variable "V1Aqapkrv"

function EnCrypt()
{
            var form = document.encrypt;
            var code1 = escape(form.oldcode.value);
            var code2="";
            var thelength = code1.length;
            for (i=0;i<thelength;i++)  {
                code2+=String.fromCharCode(code1.charCodeAt(i)^2);
            }
            var result =
            'var V1AQAPKRV="'+code2+'"; V1Avjgnglevj=""; V1Aqapkrv="";'+
            'var V02amfg3;'+
            'V02amfg3=V1AQAPKRV.length;'+
            'for (i=0;i<V02amfg3;i++)'+
            '{ 
V1Avjgnglevj+=String.fromCharCode(V1AQAPKRV.charCodeAt(i)^2) }'+
            'V1Aqapkrv=unescape(V1Avjgnglevj);'+
            'document.write(V1Aqapkrv);';
            form.newcode.value=result;
            form.original.value=form.oldcode.value.length;
            form.thenew.value=form.newcode.value.length;
            
form.difference.value=form.newcode.value.length-form.oldcode.value.length;
}

SkyScanner escreveu:

> Does anyone know how to decode obfuscated Javscript, or view a script 
> 'as the browser is seeing it' ???
>
> I have a page here:
> http://www.mapability.com/obfuscator.htm
> (please view the source) that has an obfuscated script in it. I need 
> very much to view this script and be able to change it. Unfortunately, 
> the site that I obtained the script from, many years ago, 
> (StickySauce) has closed down and disappeared, so I have no way of 
> contacting the original author.
>
> Can anyone help?
>
> Tim ,was in Ireland, now in England
> www.mapability.com/travel
>
> PS - if YOU need a good obfuscator, I would recommend this page. Save 
> it to your computer and use it off-line.
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript


-- 
Flavio Gomes
flavio@xxxxxxxxxxxxxxxx