In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you the content of the sample analysis of the new version of signature in reverse Douyin of the crawler. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Breakpoint debugging
After the stack comes in, there is already signature in url.
Shift+f11 looked forward, found the location where there is no signature, and then the breakpoint
Re-trigger the request
There is no signature here at present.
F9 F11 is fine, one step down
After a while you can see g.send (d)
This is the send request for XMLHttpRequest.
Send next step to the _ 0x2856c7 method
After processing here, we return to XMLHttpRequest.prototype.send, where we have signature.
Process analysis
After careful debugging, the positioning point can be located at the v (n) method in 8988.384447be.js, which is more convenient to assist in analysis.
You can see the concrete logic from this F11.
When d (t) is finished, go to 38413: function (e) here.
Then keep walking to request.
After debugging, you can see that the requested method, url's params, headers's user-agent and cookie are processed in request.
Then calculate it in the webmssdk confused by ob
The locations of Bogus and signature are as follows:
Bogus = _ 0x5342a6
Signature = _ 0x3564d7
After various processing, you return to the nativeXMLHttpRequestSend in XMLHttpRequest.prototype.send, where you already have signature.
Process summary
So the final process is that the XMLHttpRequest triggers the request. After the custom send is used, the parameters are processed in f.request, then calculated by webmssdk, and finally returned to XMLHttpRequestSend to complete the normal Http request.
If you restore it, you can analyze it according to the process. Webmssdk can solve the confusion and put it into the console for debugging and complete the parameter call by itself.
Thank you for reading! This is the end of this article on "sample analysis of the new version of reptile reverse Douyin signature". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.