The method of cracking the encrypted source code of all web pages with js is now very popular with source code encryption, whether out of the author's desire to protect their own resources, or in order to prevent others from discovering that web pages have Trojans, etc, source code encryption.
It's easy to crack it. I just got it done with one trick. is it just a little exciting? Yes. come with me! Comeon gogogo!
1/First, let's take a look at the source code of a web page. in order not to waste everyone's time, I will upload a web page (encrypted) in the free space, in order to let everyone see the results, I am very simple (really very simple) to look at his source code, there are a lot of methods, I casually use
What is this? is this the legend of the secret? I have a joke. are you not clear? let's proceed to step 2!
2/Then we will go to the leading role:
The code is as follows:
Javascript: s0000document.doc umentElement. outerHTML; document. write (''); Document. body. innerText = s;
This is the code, Ah! Very long! Let's see if we can break the original code.
Enter this code in the address bar, or press ctrl + o to enter the code.
This is the case.
<HTML> <script language = "javascript"> <! -- Document. write (unescape ("% 0D % 0A % 3C % 21% 4F % 44% 43% 54% 59% 50% 45% 20% 68% 6D % 6C % 74% 20% 50% 55% 4C % 42% 49% 43% 2D % 2F % 2F % 57% 33% 43% 2F % 2F % 44% 54% 44% 20% 58% 48% 4D % 4C % 54% 2E % 20% 31% 30% 20% 54% 6E % 72% 61% 73% 6F % 6E % 61% 6C % 2F % 2F % 45% 4E % 22% 20% 22% 68% 74% 3A % 2F % 2F % 74% 70% 77% 2E % 77% 2E % 6F % 77% 77% 2F % 33% 52% 2F % 78% 68% 74% 6D % 6C % 31% 2F % 44% 54% 2F % 44% 78% 68% 6D % 6C % 74% 2D % 31% 74% 72% 6E % 61% 73% 69% 6F % 6E % 61% 6C % 2E % 64% 74% 64% 3E % 0D % 0A % 3C % 22% 68% 6D % 6C % 74% 6D % 6C % 6E % 20% 3D % 78% 73% 22% 68% 3A % 2F % 2F % 77% 77% 77% 2E % 77% 33% 2E % 6F % 72% 2F % 67% 31% 39% 39% 2F % 39% 78% 6D % 6C % 68% 3E % 0D % 0A % 3C % 68% 65% 61% 3E % 0D % 0A % 3C % 6D % 64% 65% 74% 61% 20% 68% 74% 2D % 74% 70% 65% 71% 3D % 75% 6F % 6E % 74% 65% 6E % 74% 2D % 54% 79% 70% 65% 22% 20% 63% 6F % 6E % 74% 65% 6E % 74% 3D % 22% 74% 65% 78% 2F % 74% 6D % 6C % 3B % 20% 63% 68% 61% 72% 73% 65% 3D % 74% 67% 62% 32% 33% 31% 32% 2F % 3E % 0D % 0A % 3C % 22% 20% 6C % 74% 3E % u65E0 % u6807 % u9898 % u6587 % u6863 % 3C % 2F % 74% 69% 6C % 74% 3E % 0D % 0A % 3C % 2F % 65% 68% 65% 61% 3E % 0D % 0A % 0D % 0A % 0A % 3C % 62% 6F % 64% 79% 3E % 0D % 0A % u4F60 % u597D % uFF01 % 0D % 0A % 3C % 2F % 62% 6F % 64% 79% 3E % 0D % 0A % 3C % 2F % 68% 74% 6D % 6C % 3E ")) // --> SCRIPT </HTML>
[Ctrl + A Select All Note: If you need to introduce external Js, you need to refresh it to execute]
After
Hello!
Have you understood it now!
Principle: no matter how the webpage is encrypted, it will eventually be restored to the htm Code that the browser can parse. while documentElement. outerHTML is the result of restoration, isn't it very easy!