View Full Version : Javascript for encoding/encrypting HTML

06-02-2005, 04:14 PM
I have passed across some javascript I found very confusing. I've been trying to understand what the author is trying to do with no luck! I know for one thing that part of the script is encoded. So, I decoded it but the rest still seems encrypted? I found this very strange but I am still quite new to javascripting so can anyone help in untangling this code?
the code is:
<script language="JavaScript" type="text/javascript"><!--
var e="709Mol8=>xbJrjL31<:w4.c%)zPWIdtHS\"(2nm_6pe+E ;g-hai?/uCyTfsv",i=60,z="",g="";eval(unescape("%66%75%6E%63%74%69%6F%6E%20%77%77%77%28%29%7B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%67%29%3B% 7A%3D%22%22%7D%3B%66%75%6E%63%74%69%6F%6E%20%79%28%78%29%7B%76%61%72%20%61%3D%27%27%2C%6B%2C%66%2C%6 4%2C%63%3B%66%6F%72%28%6B%3D%30%3B%6B%3C%78%2E%6C%65%6E%67%74%68%3B%6B%2B%2B%29%7B%66%3D%78%2E%63%68 %61%72%41%74%28%6B%29%3B%64%3D%65%2E%69%6E%64%65%78%4F%66%28%66%29%3B%69%66%28%64%3E%2D%31%29%7B%63% 3D%28%28%64%2B%31%29%25%69%2D%31%29%3B%69%66%28%63%3C%3D%30%29%7B%63%2B%3D%69%7D%61%2B%3D%65%2E%63%6 8%61%72%41%74%28%63%2D%31%29%7D%65%6C%73%65%7B%61%2B%3D%66%7D%7D%67%2B%3D%61%7D"));</script>

Harry Armadillo
06-02-2005, 04:46 PM
Who are you, where did it come from, and why should we decode it for you? What do you plan to do with their goofy pop-up code?

06-02-2005, 05:05 PM
I am a student given this as an assignment to do analysis. I've been trying to work it out for a couple of hours with no luck. I thought someone can help. I've already decoded the encoded part... I didn't see something amazing nor did i see any popup :(
have you discovered anything from it?

Harry Armadillo
06-02-2005, 05:17 PM
Homework? This doesn't look like homework....and this is more a professional forum than a 'do my homework for me' place.

Yes, I can read the whole thing. Pop-up is the only clue you get without more/better convincing of your legitimacy.

06-02-2005, 05:42 PM
Do not post your homework assignments and expect us to do them for you. We do not encourage cheating on these forums, and how are you supposed to learn if you're not doing it for yourself?

While direct cheating is discouraged, collaboration is no problem. Instead of asking for something directly, you could say "I have to do this, and I'm thinking about doing it this way, but are there any better methods?" You have clearly demonstrated you know at least what you're talking about, and at the same time, attempted to improve your scripting skills (by looking at superior - if any - methods), which is really what homework is all about.

Nuff said!