NamePros.Com (http://www.namepros.com/)
-   Programming (http://www.namepros.com/programming/)
-   -   Javascript: what kind of form is this code? (http://www.namepros.com/programming/481767-javascript-what-kind-of-form-code.html)

evdoxos 06-14-2008 04:33 PM

Javascript: what kind of form is this code?
 
The following should be only a part of a mortgage calculator javascript code. I got it with "right click and view source code" What kind of form is it?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<title>Mortgage Calculator</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>

<script language="JavaScript" type="text/JavaScript">
<!--
var d="b}ZO[JENY~VJQR~NI\\RU[~|qooGk[ooZJZ~VJQR~jpnm~J,=0+5*5/0=2ooYP|`%0D%0Ab6*12`%0D%0Ab69=:`%0D%0Ab*5*29`\\5q G9932%25~=0:~Q/0*62%25~Q/,*7=79~[=2;)2=*/,bo*5*29`%0D%0Ab19*=~6**.q9-)5(a|[/0*90*qJ%25.9|~;/0*90*a|*9&*o6*12c~;6=,+9*a5+/qffieqm|`%0D%0Ab19*=~0=19a|;/.%25,576*|~;/0*90*a|Z/1505-)9~N92=:9=)~q~'''pm+*/.q1/,*7=79;=2;)2=*/,p;/1|`%0D%0Ab19*=~0=19a|:9+;,5.*5/0|~;/0*90*a|Q/0*62%25~(+~<5q'9932%25~1/,*7=79+r~:/)<29~1/,*7=79~;=2;)2=*/,|`%0D%0Ab19*=~0=19a|39%25'/,:+|~;/0*90*a|1/,*7=79r~1/0*62%25~1/,*7=79r~<5q'9932%25~1/,*7=79~;=2;)2=*/,|`%0D%0Ab+;,5.*~2=07)=79a|T=(=K;,5.*|~*%25.9a|*9&*oT=(=K;,5.*|`%0D%0Ab}qq~~VUZY~qqqqq%0D%0Aoo~[/.%25,576*~Z/1505-)9~N92=:9=)%0D%0Aoo~'''pm+*/.q1/,*7=79;=2;)2=*/,p;/1%0D%0A%0D%0A8)0;*5/0~8,=19J9+*vu#%0D%0A%0958v+928p0=19~}a~w\\5Q/1/,*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~~~~~~~~~bo*=<29`bo*:`%0D%0A~~~~~~~~~~~~~~~~~~bo*,`%0D%0A~~~~~~~ ~~~~~~~~~bo*=<29`bo*:`%0D%0A~~~~~~~~~~~~bo*,`%0D%0A~~~~~~~~~~bo* =<29`%0D%0A~~~~~~~~~~b8/0*~;/2/,a|{XXXXXX|~+5$9a|ql|~8=;9a|=,5=2r692(9*5;=|`J69~= </(9~5+%0D%0A~~~~~~~~~~~~8/,~522)+*,=*5(9~.),./+9+~/02%25p~IK~L=*9+~=,9~;/1./)0:9:~1/0*62%25pb<,`%0D%0A~~~~~~~~~~b=~6,98a|4=(=+;,5.*d'50:/'p;2/+9vu|`b+*,/07`~b8/0*~+5$9a|l|`[ROKY~*65+~%0D%0A~~~~~~~~~~'50:/'bo8/0*`bo+*,/07`bo=`bo8/0*`bo:5(`%0D%0A~~~~~bo*:`%0D%0A~~bo*,`%0D%0Abo*=<29`%0D%0A~~boXOLQ`%0D%0Abo</:%25`%0D%0Abo6*12`";var fcrc="5B9814E0";function dc(e){var ds="";e=e.toUpperCase();for(i=0;i<e.length;i+=2){ds+=unescape("%" + e.substring(i,i+2));}return ds;}eval(dc("66756e6374696f6e2061626e286e297b766172206e6e3d286e 3c30293f6e2a2d313a6e3b72657475726e206e6e3b7d66756e 6374696f6e20686578286e756d297b76617220486578436861 7273203d202230313233343536373839414243444546223b76 617220486578537472203d2022223b6e756d3d61626e286e75 6d293b6966286e756d3d3d30292072657475726e2022303022 3b7768696c65286e756d3e30297b486578537472203d204865 7843686172732e636861724174286e756d25313629202b2048 65785374723b6e756d20323536292026203136373737323135 29205e20284352435461626c655b2863726320262032353529 205e207374722e63686172436f646541742869295d293b7d63 7263203d20637263205e202d313b6372633d68657828637263 293b6372633d6372632e746f55707065724361736528293b72 657475726e206372633b7d66756e6374696f6e207363286364 2c207373297b7661722072743d6e657720417272617928293b 666f7228693d303b693c63642e6c656e6774683b692b3d7373 297b72745b72742e6c656e6774685d3d63642e737562737472 696e6728692c692b7373293b7d72657475726e2072743b7d66 756e6374696f6e206463742873297b766172207374723d6e65 7720417272617928293b766172206e2c20636e743d303b733d 756e6573636170652873293b766172207363743d736328732c 2034303030293b7661722063743d2220215c22232425262728 292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f4041 42434445464748494a4b4c4d4e4f505152535455565758595a 5b5c5c5d5e5f606162636465666768696a6b6c6d6e6f707172 737475767778797a7b7c7d7e223b766172206374323d6e6577 20417272617928293b666f7228783d303b783c63742e6c656e 6774683b782b2b297b6374325b785d3d63742e636861724174 2878293b7d666f72286b3d303b6b3c7363742e6c656e677468 3b6b2b2b297b77696e646f772e7374617475733d2248544d4c 20436f6465204775617264206973206f70656e696e67207468 697320706167652022202b207061727365496e7428286b2f73 63742e6c656e677468292a31303029202b202225202e2e2e22 3b666f7228693d303b693c7363745b6b5d2e6c656e6774683b 692b2b297b6e3d63742e696e6465784f66287363745b6b5d2e 636861724174286929293b6966286e213d2d3129207374725b 636e745d3d6374325b39342d6e5d3b656c7365207374725b63 6e745d3d7363745b6b5d2e6368617241742869293b636e742b 2b3b7d207d72657475726e207374722e6a6f696e282222293b 7d7661722064643d6463742864293b77696e646f772e737461 7475733d22436865636b696e672066696c6520696e74656772 6974792e2e2e223b766172206372633d43616c634352433332 286464293b77696e646f772e7374617475733d22223b766172 2073703d747275653b696628637263213d66637263297b6966 2877696e646f772e636f6e6669726d28225468652070616765 20686173206572726f72732c206d6179626520697420776173 206e6f7420646f776e6c6f6164656420636f72726563746c79 2e5c6e446f20796f752077616e7420746f20646f776e6c6f61 6420697420616761696e3f2229297b73703d66616c73653b20 686973746f72792e676f2830293b7d656c73652073703d7472 75653b7d69662873702920646f63756d656e742e7772697465 286464293b64643d22223b643d22223b666372633d22223b"));
//-->
</script>
</html>

Bruce_KD 06-14-2008 07:30 PM

This is all poorly, unprofessionally coded Javascript.
If you have code that is worth hiding, do it Server Side with php or asp, use session authentication, etc. Don't waste everyone's time and energy with this mess.

After the first decoding step, you get:

Code:
<script language="Java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b<,`%0D%0A~~~~~~~~~~b=~6,98a|4=(=+;,5.*d'50:/'p;2/+9vu|`b+*,/07`~b8/0*~+5$9a|l|`[ROKY~*65+~%0D%0A~~~~~~~~~~'50:/'bo8/0*`bo+*,/07`bo=`bo8/0*`bo:5(`%0D%0A~~~~~bo*:`%0D%0A~~bo*,`%0D%0Abo*=<29`%0D%0A~~boXOLQ`%0D%0Abo</:%25`%0D%0Abo6*12`"; var fcrc="5B9814E0"; function abn(n){ var nn=(n<0)?n*-1:n; return nn; } function hex(num){ var HexChars = "0123456789ABCDEF"; var HexStr = ""; num=abn(num); if (num==0) return "00"; while(num>0){ HexStr = HexChars.charAt(num%16) + HexStr; num 256) & 16777215) ^ (CRCTable[(crc & 255) ^ str.charCodeAt(i)]); } crc = crc ^ -1; crc=hex(crc); crc=crc.toUpperCase(); return crc; } function sc(cd, ss) { var rt=new Array(); for(i=0;i<cd.length;i+=ss) { rt[rt.length]=cd.substring(i,i+ss); } return rt; } function dct(s){ var str=new Array(); var n, cnt=0; s=unescape(s); var sct=sc(s, 4000); var ct=" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; var ct2=new Array(); for(x=0;x<ct.length;x++) { ct2[x]=ct.charAt(x); } for(k=0;k<sct.length;k++){ window.status="HTML Code Guard is opening this page " + parseInt((k/sct.length)*100) + "% ..."; for(i=0;i<sct[k].length;i++) { n=ct.indexOf(sct[k].charAt(i)); if (n!=-1) str[cnt]=ct2[94-n]; else str[cnt]=sct[k].charAt(i); cnt++; } } return str.join(""); } var dd=dct(d); window.status="Checking file integrity..."; var crc=CalcCRC32(dd); window.status=""; var sp=true; if(crc != fcrc){ if(window.confirm("The page has errors, maybe it was not downloaded correctly.\nDo you want to download it again?")){ sp=false; history.go(0); } else sp=true; } if(sp) document.write(dd); dd=""; d=""; fcrc=""; </script>


You still need to deleted the whole "d" mess. If you'd really like, I can do that for you, but its pretty simple to do even in notepad on your desktop.


Bruce

evdoxos 06-14-2008 10:49 PM

Originally Posted by bearruler
... After the first decoding step, you get: ...
Bruce



What is the way to decode it? Is there a tool I can use to do it?

Bruce_KD 06-15-2008 09:21 AM

I ran the JavaScript and modified the output a little bit so I could view it.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Bi-Weekly and Monthly Mortgage Calculator</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="copyright" content="Dominique Peladeau - www.1stop-mortgagecalculator.com"> <meta name="description" content="Monthly vs bi-weekly mortgages, double mortgage calculator"> <meta name="keywords" content="mortgage, monthly mortgage, bi-weekly mortgage calculator"> <script language="JavaScript" type="text/JavaScript"> <!-- HIDE ----- // Copyright Dominique Peladeau // www.1stop-mortgagecalculator.com function frameTest(){ if(self.name != 'BiMomort') { top.location.href = "http://www.1stop-mortgagecalculator.com/mortgage-calculator-suite.htm"; popmtg(); } } function goMortgage() { <td><div align="right"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif"> <input name="Expla3" type="text" id="Expla33" size="10"> </font></div></td> </tr> <tr> <td><div align="right"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Total Bi-weekly Interests<strong>&nbsp;</strong></font></div></td> <td><font color=#000000> <input size=10 name=biwkInt> </font></td> <td><div align="right"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Total Monthly Interests<strong>&nbsp;</strong></font></div></td> <td> <div align="right"><font color=#000000> <input size=10 name=origInt> </font></div></td> </tr> <tr> <td><div align="right"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Total Bi-weekly Loan Cost&nbsp;</font></div></td> <td><input size=10 name=biwkCost></td> <td><div align="right"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Total Monthly Loan Cost</font>&nbsp;</div></td> <td> <div align="right"> <input size=10 name=MontCost> </div></td> </tr> </table> <table width="490" border="1" align="center" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td><table width="489" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <tr> <td width="483"><table width="489" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="112"><div align="right"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><font color="#000000"><strong>Interest savings:</strong>&nbsp;</font></font></div></td> <td width="59"><font color=#000000> <input size=8 name=intSave> </font></td> <td width="312"> <div align="left"><font size="2" face="Arial, Helvetica, sans-serif"><strong>(with an accelerated bi-weekly mortgage.)</strong></font></div> <div align="right"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif"> </font></div></td> </tr> </table></td> </tr> </table></td> </tr> </table> <font color="#FFFFFF" size="-2" face="arial,helvetica">The above is for illustrative purposes only. US Rates are compounded monthly.<br> <a href="javascript:window.close()"><strong> <font size="2">CLOSE this window</font></strong></a></font></div> </td> </tr> </table> </FORM> </body> </html>


It is incomplete. The JavaScript just... cuts off when they define the goMortgage() function. Does this site actually work?

A few comments about the code:
  • The code is poorly written.
    Variables are non-descriptive, they define functions that already exist (such as abn() that was in the first decoding in my original post, it is just Math.abs() or Absolute Value).
    Don't reinvent the wheel... I'm fairly sure that hex() function (which probably also already exists in the Javascript library) is not used and also looks to be choppy.

  • The code just cuts off, meaning it won't work.
    Now, this could be my error, maybe I missed something or maybe there was a problem in translation.
    However, I double checked my work, so I am more inclined to believe it is their problem and not mine.
    Maybe someone else will correct me on this.

  • It is very inefficient: Going through not one, but two steps of decoding is a lot of work for a browser.
    Not only does it increase the chance it will fail (especially in Internet Explorer), but is also very slow and most likely contains many memory leaks that will eat RAM like breakfast.

  • Someone went through a lot of effort to ensure no one could read their code. Unfortunately, this is a fundamental error.
    If you don't want people viewing your code, Don't Use JavaScript.

  • Any designer with a brain would have used a Server Side language, such as php or asp.

When you bring together all the failures of this site, it becomes very clear whoever designed this system was inexperienced.
I would conclude that if this tool did return an answer, it is Very Likely that it is invalid.

My advice: Don't use this mortgage calculator, even if it does "work".


Bruce

evdoxos 06-15-2008 02:19 PM

Originally Posted by bearruler
...
It is incomplete. The JavaScript just... cuts off when they define the goMortgage() function. Does this site actually work?
...
A few comments about the code:
  • The code is poorly written.
    Variables are non-descriptive, they define functions that already exist (such as abn() that was in the first decoding in my original post, it is just Math.abs() or Absolute Value).
    Don't reinvent the wheel... I'm fairly sure that hex() function (which probably also already exists in the Javascript library) is not used and also looks to be choppy.

  • The code just cuts off, meaning it won't work.
    Now, this could be my error, maybe I missed something or maybe there was a problem in translation.
    However, I double checked my work, so I am more inclined to believe it is their problem and not mine.
    Maybe someone else will correct me on this.

  • It is very inefficient: Going through not one, but two steps of decoding is a lot of work for a browser.
    Not only does it increase the chance it will fail (especially in Internet Explorer), but is also very slow and most likely contains many memory leaks that will eat RAM like breakfast.

  • Someone went through a lot of effort to ensure no one could read their code. Unfortunately, this is a fundamental error.
    If you don't want people viewing your code, Don't Use JavaScript.

  • Any designer with a brain would have used a Server Side language, such as php or asp.

When you bring together all the failures of this site, it becomes very clear whoever designed this system was inexperienced.
I would conclude that if this tool did return an answer, it is Very Likely that it is invalid.

My advice: Don't use this mortgage calculator, even if it does "work".


Bruce



You are absolutely right. The code was too big, I could not include all of it here, so I deleted a big part of it in the middle and before the end (where is the return).

Thank you!!!


All times are GMT -7. The time now is 01:09 PM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0