Click to See Complete Forum and Search --> : need to decrypt a javascript code


cabazorro
06-20-2003, 12:57 AM
Hi
I need to decrypt the following variable:

<script language="JavaScript">function dc(d){var d2="", cc;for(i=0;i<d.length;i+=2){cc=unescape("%" + d.substring(i, i+2));d2+=cc;}return d2;}eval(dc("646f63756d656e742e777269746528756e65736361706528222533437461626c65253230626f726465722533442532323025 3232253230776964746825334425323231303025323525323225334525334374722533452533437464253230776964746825 33442532323530253235253232253230616c69676e25334425323263656e746572253232253345253343666f6e7425323066 616365253344253232417269616c25323225334525334362253345536f66747761726550616b2e636f6d2530442530412533 432f622533452533432f666f6e7425334525334362722533452533436125323068726566253344253232687474702533412f 2f7777772e536f66747761726550616b2e636f6d253044253041253232253345253343666f6e742532306661636525334425 3232417269616c25323225323073697a6525334425323232253232253345687474702533412f2f7777772e536f6674776172 6550616b2e636f6d2530442530412533432f666f6e7425334525334362722533452530442530412533432f61253345253343 666f6e7425323066616365253344253232417269616c25323225323073697a6525334425323232253232253345436f6e7461 6374253230757325334125323025334361253230687265662533442532326d61696c746f253341737570706f727440736f66 747761726570616b2e636f6d253232253345737570706f727440736f66747761726570616b2e636f6d2533432f6125334525 33432f666f6e742533452533432f746425334525334374642532307769647468253344253232353025323525323225323061 6c69676e25334425323263656e746572253232253345253343696d672532307372632533442532327370616b6c6f676f2e47 49462532322533452533432f74642533452229293b76617220646f636d6f64653d224f6e223b76617220656e61626c65746f 6f6c6261723d747275653b"));</script>

This is a javascript located at
http://canadaonlinebusiness.com/store/wysiwyghtmleditor/demo/editor.htm
and the code above is the advertisement at the bottom of the page pointing to softwarepack.com.
So Im trying to decrypt to change it.

Can anybody help me??

Gollum
06-20-2003, 02:25 AM
The code when decoded reveals...

document.write(unescape("%3Ctable%20border%3D%220%22%20width%3D%22100%25%22%3E%3Ctr%3E%3Ctd%20width%3D%2250%25%22%20align%3D% 22center%22%3E%3Cfont%20face%3D%22Arial%22%3E%3Cb%3ESoftwarePak.com%0D%0A%3C/b%3E%3C/font%3E%3Cbr%3E%3Ca%20href%3D%22http%3A//www.SoftwarePak.com%0D%0A%22%3E%3Cfont%20face%3D%22Arial%22%20size%3D%222%22%3Ehttp%3A//www.SoftwarePak.com%0D%0A%3C/font%3E%3Cbr%3E%0D%0A%3C/a%3E%3Cfont%20face%3D%22Arial%22%20size%3D%222%22%3EContact%20us%3A%20%3Ca%20href%3D%22mailto%3Asupp ort@softwarepak.com%22%3Esupport@softwarepak.com%3C/a%3E%3C/font%3E%3C/td%3E%3Ctd%20width%3D%2250%25%22%20align%3D%22center%22%3E%3Cimg%20src%3D%22spaklogo.GIF%22%3E%3C/td%3E"));var docmode="On";var enabletoolbar=true;

which will append the following HTML to the bottom of the document...


<table border="0" width="100%"><tr><td width="50%" align="center"><font face="Arial"><b>SoftwarePak.com
</b></font><br><a href="http://www.SoftwarePak.com"><font face="Arial" size="2">http://www.SoftwarePak.com
</font><br>
</a><font face="Arial" size="2">Contact us: <a href="mailto:support@softwarepak.com">support@softwarepak.com</a></font></td><td width="50%" align="center"><img src="spaklogo.GIF"></td>

cabazorro
06-20-2003, 08:45 AM
Hi
Great!! the html decrypted looks that is the one displayed, but Im having problems replacing the encrypted one with the decrypted.
I cannot make it work.
It shows an error in the docmode variable at line 45:
//Init editor in design mode,
maineditor.document.designMode=docmode;

Can anybode tell me how to replace it in full to get it work??
Thanks

chrismartz
06-20-2003, 09:36 AM
Is this your website?????????
What is it???

cabazorro
06-20-2003, 01:00 PM
This is not my website, just a url where the script found