Home > Web Front-end > JS Tutorial > How to crack the encrypted source code of all web pages using js_Hacker Nature

How to crack the encrypted source code of all web pages using js_Hacker Nature

WBOY
Release: 2016-05-16 19:18:26
Original
1523 people have browsed it

Source code encryption is very popular nowadays. Whether it is because the author wants to protect his own resources, or because the scammer wants to prevent others from discovering that there is a scam on the web page, etc., the source code is encrypted.
It’s very easy to crack it. It’s done in one move. Are you excited? Yes, come with me! comeon gogogo!

1/First of all, let’s take a look at the source code of a webpage. In order not to waste everyone’s time, I will upload a webpage (already encrypted) in the free space for everyone to take a look. In order to facilitate Everyone sees the result. I did it very simply (really very simple). Let’s take a look at his source code. There are many methods. I just use one
. What is this? Is this the legendary one? Cheats, just kidding, if you can’t figure it out, let’s move on to the second step!

2/ Then our protagonist appears:

Copy code The code is as follows:

javascript :s=document.documentElement.outerHTML;document.write('');document.body.innerText=s;



This is the code, ah! Very long! Haha, let’s try to see if we can break the original code
We can enter this code in the address bar, or press the ctrl o key and then enter it again. Let’s try it
This is what it looks like


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute
]




After relapse

Hello!

Do you understand now!
Let me talk about the principle now: no matter how the web page is encrypted, it will eventually be restored to the HTML code that the browser can parse, and documentElement.outerHTML is the result of the restoration. Isn’t it very simple!
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template