Sihai network

12306 push dynamic pictures to find your sister to verify frequent bugs

The railway ticketing website has finally given a powerful medicine. The dynamic 'find your sister' verification code launched by 12306 has made countless ticketing software bow down. However, as the saying goes, there are policies on the top and Countermeasures on the bottom. The scalpers then made efforts again. They not only found out the bug of 12306, but also increased the success rate of ticketing software by 200% in an instant. Many viewers can't help sighing that the Chinese people are really smart.

12306 bug is really helpless

First of all, some netizens reported that the 12306 verification code really baffled the hero. Mr. Wang, who never ate seafood, said: 'today I tried to log in and said that I was stunned by clicking on all the oysters below. Oysters are God horses, and I have never eaten them in my life. I feel that I don't have enough common sense in life. I can't even buy a train ticket. '

Secondly, 12306's latest captcha seems to be embedded with advertisements. It is found that there are many products with brand identity in the color picture, and even fast food chains. There was no response.

Finally, an app called "HSR housekeeper" issued a notice on the home page, saying: "from March 16, the 12306 system verification code was modified, resulting in the HSR housekeeper unable to log in, and the technicians are trying to repair it. 'then, 12306 verification code was broken. Let's see the power of ticket grabbing software.

Is the ticket grabbing software boasting?

Last night, a ticket grabbing software company issued a statement that it had put in a technical team for the first time and introduced countermeasures to realize the automatic recognition of image verification code. The new verification measures launched by 12306 had no impact on its ticket grabbing software, and even claimed that "the success rate increased by 200%". How does the ticket grabbing software conquer 12306? Let's continue to look.

The basic idea of cracking captcha

1. First analyze the captcha, whether the foreground color is uncertain

2. Then save the width of the captcha / the number of captcha text. For example, if the width of a captcha is 60 after downloading and there are four numbers, then 60 / 4 = 15, and then save each word. If there are only numbers, save 0-9 numbers to the bitmap file. If English is more troublesome, save 0-9 and A-Z to the bitmap. The foreground color of the bitmap remains unchanged, and the background color remains unchanged

3. If the foreground needs to change, unify the text into the same color. Each dot matrix of 0-9 has a common point. Take the common point color, and then unify all the foreground into one color, such as white {255255255}. The bitmap structure is BGR, not RGB

4. Then compare. If one point of the captcha is white and the same point of the bitmap saved in step 2 is also white, then the frequency will be increased by 1

5. The last one with the highest frequency is the captcha!