Parse Baidu search result link? Url = parameter analysis (full)

Source: Internet
Author: User
Tags php form
The URL of Baidu's search results has been changed to a redirect format like link? url......... This is the redirection format. This unfriendly URL has the impulse to crack. So today I started to try to crack it. I wrote an article a few days ago that I could get the URL after Baidu jump. After I went to Baidu, someone also studied Baidu link? Url =.

The following result is obtained:

1. the encryption method is based on: Random + input stay time + snapshot address for encryption
2. the entire code should have three parts: 1. the time of the search term; 2. the keywords of the search; 3. the randomly generated unique identification code.
3. url = the last piece of similar code in any environment or browser
From the results of the above research, we can know that "there is a similar piece of code at the end" is relatively available, so we should start from here.
I searched for "ENBA" and found that all the URLs of my first search results have the same code, that is
Http://www.baidu.com/link? Url = ............ Ebac5573358cc3c0659257bfcf54763ec1c5ecff3b3fbd1d4c
Code for all search results: ebac5573358cc3c0659257bfcf54 (found after N searches)
The 763ec1c5ecff3b3fbd1d4c at the end looks like the real URL of the search result. (The ciphertext has been verified as a real URL)
I verified it like this:
1. Baidu first searches for www.php100.com
Link to the first result:
Http://www.baidu.com/link? Url = ............ Ebac5573358cc3c0659257bfcf546427d417fef6656de2404d6843da27
See the previous 6427dda-fef6656de2404d6843da27
2. search www.hao123.com on Baidu.
Link to the first result:
Http://www.baidu.com/link? Url = ............ Ebac5573358cc3c0659257bfcf54 6427dda-e6ff7a6de0434d6843da
See the previous 6427d415e6ff7a6de0434d6843da
......
After multiple searches for N websites, we found that the first few domain names were "www.", and the ciphertext values were all 6427d385.
And www. is four characters, and the ciphertext 6427d385 is eight characters. We can know that two ciphertext characters are equal to one url character.
So I wrote a php form to query and obtain the ciphertext for later viewing.
Generate a php source code:

The code is as follows:





Query Baidu link? Ulr = real link form


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.