当前位置:网站首页>[JS 100 examples of reverse] anti climbing practice platform for net Luozhe question 5: console anti debugging
[JS 100 examples of reverse] anti climbing practice platform for net Luozhe question 5: console anti debugging
2022-06-23 21:28:00 【Brother K reptile】
Statement
All contents in this article are for learning and communication only , The content of the package 、 Sensitive website 、 All data interfaces have been desensitized , It is strictly prohibited to use for commercial and illegal purposes , Otherwise, all the consequences have nothing to do with the author , If there is infringement , Please contact me to delete !
Reverse target
- The goal is : Question 5 of the web crawler anti crawler practice platform : Console de debugging
- link :http://spider.wangluozhe.com/challenge/5
- brief introduction : Open the browser console , Console Console Position output bbbb0 Visible answer , Fill in the answer and submit it .
Reverse process
Let's just open the console , Found that the right button cannot be used , direct F12, The page will jump directly to the home page , No big problem , Start a new page , To open the first F12 Then enter the page , At this point, you can see that the console is crazy output div label , As shown in the figure below :
What's embarrassing here is , Although the console is constantly brushing div, But it doesn't have much impact on our input , Direct input bbbb[0], Look up , You can see the answer , Or just type in copy(bbbb[0]) Just copy the answer directly to the pasteboard . As shown in the figure below :
I don't know why , It's possible that the problem is not standardized, so let's directly exploit the loophole , The author's original intention should be to let us get rid of this infinite brush div The situation of , Then go to get the answer , So let's analyze the source code , You can see the output div All the ways 5.js in , Just click in , It's a setInterval Timer method :
There are many ways to deal with :
- Hook Timer , Will output div Delete ;
- Replace JS Code , Direct timer or output div Delete ;
- Direct console Hook, Set the timer method to null .
This time we are directly on the console Hook, Set the timer to empty , Note here , If the program has entered the timer , Again Hook It is no use , So the right thing to do is in front of the timer , such as let div The next breakpoint , Refresh web page , Input again at the console setInterval = function() {}; Set the timer to empty , Then release the breakpoint input bbbb[0] Get answers :
We noticed an error on the console Uncaught SyntaxError: Identifier 'div' has already been declared, This is because in the JS And page HTML Each of them made a statement in div As a result of , On page HTML An error will be reported when you make a statement again in , It has no effect on the acquisition of our results . thus , The analysis of this problem is finished . Answer submitted successfully :
边栏推荐
- 股票开户要找谁?网上开户安全么?
- Do you really understand the cache penetration, cache breakdown and cache avalanche in rotten street?
- Markdown syntax summary
- How to view the hard disk of ECS? How about the speed and stability of the server
- Application of JDBC in performance test
- Beitong G3 game console unpacking experience. It turns out that mobile game experts have achieved this
- Chrome extension development Chinese tutorial-1
- JS how to get the current local date
- Shanghai benchmarking enterprise · Schneider Electric visited benchmarking learning lean production, smart logistics supply chain and digital transformation
- Aiot application innovation competition - get better code completion and jump experience with clion
猜你喜欢

How to view the role of PMO in agile organizations?

What are the main dimensions of PMO performance appraisal?

How PMO uses two dimensions for performance appraisal

Gradle asked seven times. You should know that~

Beitong G3 game console unpacking experience. It turns out that mobile game experts have achieved this
![Harmonyos application development -- mynotepad[memo][api v6] based on textfield and image pseudo rich text](/img/b1/71cc36c45102bdb9c06e099eb42267.jpg)
Harmonyos application development -- mynotepad[memo][api v6] based on textfield and image pseudo rich text

Four aspects of PMO Department value assessment

How to gradually improve PMO's own ability and management level

Lightweight, dynamic and smooth listening, hero earphone hands-on experience, can really create

I am 30 years old, no longer young, and have nothing
随机推荐
How to create cloud disk service how to create cloud disk service backup?
JS naming conventions
Do you really understand the cache penetration, cache breakdown and cache avalanche in rotten street?
JS to get the screen size, current web page and browser window
How to view the role of PMO in agile organizations?
Using clion to realize STM32F103 lighting LED
How to check whether the service is running normally after easydss cluster transcoding is set up?
Bi-sql index
The printed picture is dark. It will make you clear in seconds
How do I clean the ECS hard disk? Why do I clean the hard disk regularly?
[development skills] how to add "live broadcast" status display bar on easynvr platform
Cobalt Strike Spawn & Tunnel
JS remove tabs and line breaks
Global and Chinese market of cloud billing services 2022-2028: Research Report on technology, participants, trends, market size and share
Microservice architecture | how to solve the problem of fragment uploading of large attachments?
Overview of digital circuits
How does PMO select and train project managers?
Go local variables & global variables
Global and Chinese markets for e-cigarettes and tobacco vapors 2022-2028: Research Report on technology, participants, trends, market size and share
Uniapp routing page Jump