Generic JS page decryption |
![]() Hyper Javascript | |
![]() |
||
fra_00xx 98xxxx handle 1100 NA PC | ||
< c e n t e r > < T a b l e b o r d..........etcWhen I solved the problem I stumbled on an interesting side effect, nameley a generic decoder!
function Show_Win_Raw_HTML (label, message) { Win_Show = window.open('','Spy','menubar=no,scrollbars=yes,width=600,height=400,resizab le=yes'); if (Win_Show != null) { if (Win_Show.opener == null) Win_Show.opener = self; } if (Win_Show == null) alert("Problem creating window, restart your browser"); if(message != null) { Win_Show.document.writeln("<xmp>",message,"</xmp>"); } } // // Usage: function Show_Win_Raw_HTML ("","insert html here") //
Now I had modified Seekers_spy I thought it better get put to use. What
better way than to tackle some page encryptions then?
Some months back I reversed Psyral Phobia's encryption (Version 1) so I
downloaded version 4 to see if it had improved any (it was cram before).
After installing (yuk .. Visual Basic) I encrypted a simple page which gave
me the following code:
(Tidied it up a bit)
If you do bother to study the decryption routine (I did eventually) you'll see it's relatively straight forward. But do we need to? The answer lies in the first line of the routine:
ky="";function d(msg){ky=ky+codeIt(key,msg);}
This function puts the decrypted text into 'ky' ready to display to the page. How does this help? Since that text must be in a 'good' format, for this system to work, if you can get 'ky' to output to a new window in its raw html/Javascript/VBScript etc you have the pre encrypted page in all it's glory.
Using the modified routine in seeker_spy insert the following code after the above line.
Show_Win_Raw_HTML ("",ky);
Load the page into your browser and... Et Voila... Plain script... ;)
Exactly the same trick works with other Heavens Rage software such as:
Script Keeper version 1.0.35
In fact this will work with any encryption where it decodes itself,
with the caveat that the encyption 'key' is on the page itself and not in a
.js file or similar. (Heavens rage are you reading this? C'mon give us a
challenge ;)
Unfortunatly Seekers_spy doesn't work with Opera :(
So another quick solution is to alter the final scrip of the page as
follows: