Using JS to assign value to realize JS confusing code restore

Source: Internet
Author: User
Tags eval

Method One: Use IE Developer tool (IE8 started to have already brought, IE7 previously need to download install IE Developer Toolbar) for the inverse confusion, I commonly used chrome, but did not find the use of chrome with the developer tool to achieve the method of counter obfuscation ... Who would like to know the park friends to inform ...

Not wordy, directly above the figure

Method Two: Code implementation (PS. OK, as a part of the development of the general resentment, many developers most hope that the use of their own development of things, I wish the OS are their own toss, I realize the time is the first implementation of the method two, and then to use a bit ie ... -_-||| )

Put a confusing test code on first

Eval (function (p,a,c,k,e,d) {e=function (c) {return (c)

Start implementation: www.2cto.com

1. Create a new page xxx.html

2. Add a div container id= "divtest"

3. The most critical step-assignment execution: (in the confusing code above, extract the contents of the eval () to assign (or print directly) to document.getElementById (' Divtest '). innertext)

document.getElementById (' Divtest '). Innertext=function (p,a,c,k,e,d) {e=function (c) {return (c)

Open xxx.html Display results: (anti-confusing code has been compressed, remove the newline and other characters)

Alert ("Melancholy of the horse-counter obfuscation Test 1"); function A () {alert ("Melancholy}var-anti-aliasing Test 2") B=function () {alert ("Blue-counter obfuscation Test 3")};a (); B ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.