Adje Posted October 14, 2017 Share Posted October 14, 2017 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 Link to comment Share on other sites More sharing options...
Ingolme Posted October 14, 2017 Share Posted October 14, 2017 Which software is intended to run this code? This certainly is not capable of running in browsers. Link to comment Share on other sites More sharing options...
Adje Posted October 15, 2017 Author Share Posted October 15, 2017 It is used by other scripts (to big to include in one time ) (5,8 MB) this is the first part. about.html export.html folderDialog.html header.html help.html help-en.html help-nl.html index.html language.xml License.txt loading.html monitor.html optionsApp.html optionsMap.html optionsSensors.html Sensiplant.hta sensiplant.ico settings.xml showGraph.html start.html calculations.js chrome.js common.js excanvas.js subModal.js builder.js controls.js dragdrop.js effects.js scriptaculous.js slider.js unittest.js prototype.js Link to comment Share on other sites More sharing options...
Adje Posted October 15, 2017 Author Share Posted October 15, 2017 More files uploading gives problems with the Forem site Link to comment Share on other sites More sharing options...
Adje Posted October 15, 2017 Author Share Posted October 15, 2017 But Thanks for the quick replay Link to comment Share on other sites More sharing options...
Adje Posted October 15, 2017 Author Share Posted October 15, 2017 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 ?? Link to comment Share on other sites More sharing options...
Adje Posted October 15, 2017 Author Share Posted October 15, 2017 The same error is comes when opening the file "ShowGraph.js" (and change filename again and press F5 Link to comment Share on other sites More sharing options...
Ingolme Posted October 15, 2017 Share Posted October 15, 2017 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. Link to comment Share on other sites More sharing options...
Adje Posted October 16, 2017 Author Share Posted October 16, 2017 oke Thanx Link to comment Share on other sites More sharing options...
justsomeguy Posted October 16, 2017 Share Posted October 16, 2017 The opening comment refers to jscript.encode. You can download a decoder here. It looks like this site may also offer decoding. If you search for jscript.encode you'll find other information. Link to comment Share on other sites More sharing options...
Adje Posted October 17, 2017 Author Share Posted October 17, 2017 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 ?? Link to comment Share on other sites More sharing options...
Adje Posted October 17, 2017 Author Share Posted October 17, 2017 oke Found the site with the instructions. Link to comment Share on other sites More sharing options...
Adje Posted October 17, 2017 Author Share Posted October 17, 2017 YES it works perfectly (I did'nt read the using instructions ) (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 Link to comment Share on other sites More sharing options...
justsomeguy Posted October 17, 2017 Share Posted October 17, 2017 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> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now