Jump to content
Adje

Help needed Compiled source unreadable?

Recommended Posts

Hello people

Can You help me with an Jave script ( it is unreadable and I think its also compiled or something like that )

I have try'd to look at it with an DeCompiler but it keeps unreadable

It is used for calculations in another part of de system ( XML scripts )

The system (soft- and hard-ware) is made by an company that is not able to get service of this product.

Because of problems with the system I'm trying to figure out how the software works.

But this script is the part that is not possible to see what is going on in it.

Filename = Calculations.js

Note: It is running on an "Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40 GHz With Windows 7 Ultimate" system

When someone can get the file more readable much thanks.

calculations.js

Share this post


Link to post
Share on other sites

Which software is intended to run this code? This certainly is not capable of running in browsers.

Share this post


Link to post
Share on other sites

Further inquirys give the following results:

When the programs are running (the total system), and I change the filename of Calculations.js  (say to Calculations_test.js) the folowing happen's:

The program keeps running good as long as I dont change the view (or refresh the page)

When I press F5 (refresh) then there comes an alarm message " ScripFault"  (the picture is in Dutch)

meaning "the value of the item covertValue null or not defined and no function" 

This should mean ( as far as my knowledge go's) that the script in Calculations.js is putting a little program with an name of "convertValue" in the computer and run it ??

scriptfout.png

Share this post


Link to post
Share on other sites

I'm afraid this system is much too complex to solve in a forum post. It looks like you would have to hire somebody to reverse engineer this software.

Share this post


Link to post
Share on other sites

He this looks good advice.

I downloaded the decoder.

But do You know how to Use it ?? When I run the decoder program there is opening an Command screen for some seconds and the closes that window.

Further there is happening nothing ??

Share this post


Link to post
Share on other sites

YES it works perfectly  (I did'nt read the using instructions :wub: )

(there are some little strange codes but that's no problem.

But Now I have the sourcefile reconstructed so I can study on that and maybe improve it for the system.

After that I wonder if I have to encode it again ??

Thanks a lot

Share this post


Link to post
Share on other sites

You don't have to encode it, that looks like a failed Microsoft attempt to hide Javascript.  I would be surprised if anything other than IE or Edge knows what to do with that, so it's better to leave it out.  Javascript code isn't exactly a trade secret.

Although it might be the case that the script tags tell the browser that it is encoded.  This is the correct script tag to use:

<script type="text/javascript" src="file.js"></script>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...