当前位置:网站首页>[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 :
边栏推荐
- 我在深圳,到哪里开户比较好?在线开户安全么?
- Global and Chinese market of gas fire pit 2022-2028: Research Report on technology, participants, trends, market size and share
- [hot sales at the beginning of the year] | the first special offer of popular cloud products is second to none, and the first year of 1-core 2G cloud server is 38 yuan!
- 【Redis】有序集合的交集与并集
- What can RFID fixed assets management system bring to enterprises?
- A detailed discussion on the use guide of network Swiss Army knife nmap
- JS namespace
- Is it safe to open an account for flush stock?
- [typescript] some summaries in actual combat
- Use of paging components in fusiondesign
猜你喜欢

What are the main dimensions of PMO performance appraisal?

How PMO uses two dimensions for performance appraisal

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

New SQL syntax quick manual!

How does PMO select and train project managers?

Facing the problem of lock waiting, how to realize the second level positioning and analysis of data warehouse

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

Beitong G3 game console unpacking experience. It turns out that mobile game experts have achieved this

Uncover the secrets of Huawei cloud enterprise redis issue 16: acid'true' transactions beyond open source redis

Steps for formulating the project PMO strategic plan
随机推荐
How to batch generate UPC-A codes
Memory patch amsi bypass
Connect edgex gateway to thingsboard IOT platform
How can the cloud disk service be connected to the server? How many hard disks can the server mount?
Global and Chinese market of roll up piano 2022-2028: Research Report on technology, participants, trends, market size and share
What is a database index? Xinhua dictionary to help you
Wechat is new. You can create applications from Excel
打新债到底是用什么软件比较安全?打新债平台有哪些
Global and Chinese market of fly killers 2022-2028: Research Report on technology, participants, trends, market size and share
How does the video platform deployment give corresponding user permissions to the software package files?
How to use smart cloud disk service differences between local disk service and cloud disk service
New SQL syntax quick manual!
Wechat smart operation 3.0+ Alipay digital transformation 3.0
[typescript] some summaries in actual combat
Customize view to imitate today's headlines and like animation!
It's very interesting. Make an app to decorate the Christmas hat on Christmas!
How to build a personal cloud game server? How many games can the cloud game platform install?
RI Gai series: push of STD container_ Why is back slower than []
Copilot - employee, your layoff notice has been delivered
Processing of purchase return in SAP mm preliminary transaction code Migo