How do I write something like a web page scanner?

Source: Internet
Author: User
For example, you can click a button on a Web page to refresh the ticket, or use a four-digit password. What is the implementation? PHP? Write scripts? Is this a webpage script? Is there any implementation example? For example, you can click a button on a Web page to refresh the ticket, or use a four-digit password. What is the implementation? PHP? Write scripts? Is this a webpage script? Is there any implementation example? Reply: After a year, I learned some knowledge and tried to write a 12306 ticket dispenser six months ago. Today, I accidentally saw my previous questions. let's answer your questions.

First, no matter what language is used for implementation, you must first understand the principle-the most basic principle of web is the HTTP protocol, first understand the HTTP protocol, and know what is a Get request Post request.

Second, understand how the website 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 that each request is from your user. That is to say, we understand cookie and session.
You can learn a background language and try to write a user registration and logon demo. this is the most profound understanding.
Alternatively, you can use chrome F12 to open the "console" on a website and view each request in the Network.
Of course, it is better to learn a background language and try to build a small website.
Third, understand cryptography. The password entered during login is generally sent after encryption, so password encryption is required for simulated login. Learn about MD5, RSA, and other encryption algorithms. on the Internet, you can download and research algorithms or use them directly. Third, understand cryptography. The password entered during login is generally sent after encryption, so password encryption is required for simulated login. Learn about MD5, RSA, and other encryption algorithms. on the Internet, you can download and research algorithms or use them directly.

Fourth, image text information recognition. This is to solve the verification code. I have not studied it deeply. I can use ocr for simple verification codes. Open CV can also be used to remove interference such as noise. Of course, complicated verification codes such as overlapping and rotating require more in-depth "machine learning" and other knowledge.

Fifth, write the ticket Flushing tool. What platform does the tool write on? windows, Linux, or Android? If you are running on windows, many languages are available. C # and java can be used, or you can write ajax directly on a webpage using javascript.
Of course, using good tools and open-source libraries will get twice the result with half the effort. Apache has an HttpClient that can help simulate the HTTP protocol, which is very convenient for HttpClient-HttpClient Home

Finally, of course, if you only want to write a vote collector, you do not need to go into the principles and technical details of each link. However, I know that the subject must not only want to be a simple ticket painter, but also a step. In this way, just like the technology that I learned, I can log on to the academic affairs office to collect photos and create facemash. then I can become a Facebook player and change the world, right?

Come on, young man. I disagree with the No. 1 answer.
First, it is not that troublesome to make a simple ticket collector.
You can learn how to fill out a table and learn things in seven or eight minutes.
Then you can learn how to capture packets and use post or get to make the ticket Flushing faster. Finally, you can learn how to change the ip address.
When I was a sophomore year, I helped the class teacher build a ticket Flushing software and spent one night with complete functions. I successfully helped the class teacher's daughter to become the first place.

To add this point, you can click the button to fill in the table. you can use the webbrowser control of vb, which is simple.

Let's look at a four-digit password. you use 0123456789 as the base, and try it one by one from 0123 0124...

The script is interpreted and executed without generating machine code, such as php and javascript (the language used by AJAX technology ,. net, delphi, and so on are all compiled languages. they are machine code generation and I am still thinking about this thing. this is a program I wrote earlier. C # The ticket flushing program-woostundy To construct Http requests and change IP addresses.
Currently, we are investigating whether a vote that requires authentication can be used to refresh the ticket.

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.