有一段js代碼內容如下:
eval(function(E,I,A,D,J,K,L,H){function C(A)后面內容省略。。。
解密可以采用如下方法:
方法一:
打開谷歌瀏覽器,按F12,在Console窗口中把eval代碼復制粘貼進去,回車運行,即可就到源碼。
方法二:
新建一個html文件,把上面eval替換成document.write輸出即可。
備注,前后加xmp標簽的作用是完整的輸出html標簽,並且不做任何轉義。
<html> <head> <title>eval解密</title> </head> <body> <script type="text/javascript"> document.write("<xmp>"); document.write(function(E,I,A,D,J,K,L,H){function C(A)后面內容省略。。。) document.write("</xmp>"); </script> </body> </html>