For example, a button on a page page is constantly clicked to swipe the ticket, such as poor to give a 4-bit password. What does it take to achieve it? Php? Write a script? Is such a thing called a Web page "script"? Is there an example of implementation?
Reply content:
After a year, learned some knowledge, six months ago has been trying to write 12306 brush ticket device. Today by chance to see their own questions, come from the question from the answer.
First, no matter what language to implement, the first thing to understand the principle of--web the most basic principle is the HTTP protocol, to understand the HTTP protocol first, know what is a GET request POST request.
Second, get to know how the site works. The so-called working principle is how the data from the backend server to the front end, how the front-end data is sent to the server, and how the server knows every request is from your user. This means understanding the cookie and session.
The way to learn can try to learn a background language to try to write a user registration login demo, so that the most profound understanding.
Or just find a website and use Chrome's F12 to turn on the "console" and open up the network for every request.
Of course, it is better to learn a background language, try to make a small website.
Third, understand the point of cryptography. When logged in, the password is generally encrypted before sending, so to simulate login requires password encryption. Learn about MD5 and RSA and so on encryption algorithms, the specific algorithm how to achieve the online have ready to download research or direct use. Third, understand the point of cryptography. When logged in, the password is generally encrypted before sending, so to simulate login requires password encryption. Learn about MD5 and RSA and so on encryption algorithms, the specific algorithm how to achieve the online have ready to download research or direct use.
Four, image text information recognition. This is to fix the verification code, this I research is not deep, for the simple verification code with OCR can be. An open CV can also be used to remove interference that is slightly noisy. Of course, overlapping, rotation and so on complex verification code, need more in-depth "machine learning" and so on knowledge.
Five, write the ticket tool. What platform does the tool look at, Windows, Linux, or Android? Generally run on Windows, the language is a lot to choose from, C #, Java can, or write directly on the Web page with JavaScript to write Ajax also line.
Of course, with good tools and open source libraries will do more, Apache has a HttpClient can help simulate the HTTP protocol very convenient httpclient-httpclient Home
Finally, of course, if the purpose is only to write a brush ticket, actually do not need such a fuss, to scrutiny each link principle and technical details. But I know that the master must not only want to make a simple brush ticket, the ticket collector is just a ladder. So learn the "brush ticket" technology like to enter the dean's office frantically collect photos to make a facemash, and then easily become a Facebook Zuckerberg, change the world, right?
Come on, young man. Against the first answer.
First of all, it's not that troublesome to make a simple swipe ticket.
You can learn to fill in the form, what you can learn in seven or eight minutes why you feel so big.
You can then learn to grab the packet post or get to make the ticket faster, and finally you can learn how to change the IP.
I sophomore when the teacher made a brush ticket software, on the use of a night, full-featured, successfully help the head teacher's daughter to brush the first place.
Add a point, your so-called click button is a form, you can use the VB WebBrowser control implementation, simple.
To give a four-bit password, you use 0123456789 as the base, and then from 0123 0124 ... try each one.
Finally, the script is to explain the execution, do not generate machine code, such as Php,javascript (Ajax technology used in the language), other such as C/c++,.net,delphi, etc. are compiled language, is to generate machine code I am now in the thinking of this thing, This is a program I wrote before. C # swipe Ticket program-Woostundy
, which implements the construction of HTTP requests and IP-swapping.
We are now studying whether a vote that requires authentication can be brushed.