Copyright of this article: Giant Panda konakona
Any reprint must indicate the source, otherwise we will settle the account with you = =#
I was online today looking for a regular menu suitable for company use. The website address is: http://apycom.com/
Finally I found it = =# But it’s encrypted...
Okay~ Let’s start decrypting it right away~
I hope everyone will finish reading it Be able to have a certain understanding of Javascript encryption and decryption.
This article only talks about partial decryption, but it is also commonly used.
Take this one as an example today~
http://apycom.com/menus/2-brown.html
It is free to use, click free download to download it. But its code is encrypted.
Extract to desktop.
Open menu.js, which is its main program. Based on jquery.
The bottom two paragraphs are densely packed and that’s what we are dealing with today.
I won’t say any more nonsense, this is obviously base64.
Search for eval and change all the ones starting with eval( to alert(
Then run the html and you can see the code.
Copy them and paste the code into the place of eval.
Look for eval in the code, change it to alert, refresh the browser, and cover that part of the code.
You can see that div, change it...
The most important thing is the last one. (); without it, there will be a JS error
Use http://js.clicki.cc/ to beautify the code
Script House added: You can use thes.value. = format, the data output by alert has a character limit.