http protocol software, simulating browser contracting, making protocol software, making crawlers, making assistants, principles

Warm-up: Google browser or Firefox browser (the same principle as other browsers is based on the gourd)
and then prepare a post assistant (as long as you can use winhttp and other protocols for post get and other operations) I use idea's restClient Write picture description here;
Then there must be a code conversion tool, just like Baidu.
————————————————- Get started.
—————-Here I omitted the QQ login binding phone number. I won’t say more about this. If these two steps teach you, I’m afraid you will go to jail. (I'll pretend like ha ha)
First change useragent browser, or browser can not access the micro-channel qq or share the link above
modification Tutorial: https://blog.csdn.net/qq_35189120/article/details/82559598
modified after the start Analyze what the browser did after we opened the link.
Open the Firefox browser f12 netwrok point network brought back cache
Write picture description here
to see this console warning, horrible, in order to prevent the two dollars in my pocket was cheated I'd better get taught in it,
first of all we see the browser loaded It keeps sending data from time to time, but our browser has already caught it (this is the packet capture) and
just take a piece of it to analyze the structure
Write picture description here;
this is so clearly written above. We mainly look at post and get the type of operation at the time of capture can point above xhr Write picture description here
This filters out static files (css.js.png ... .. these futile js was quite used but this does not involve)
the rest We analyze each item one by one, and
we click to respond to see what's thereWrite picture description here
Do you see these things? They are all good things. There are receipt records and other information. Then we guess that this one is to receive the data of hb. How to prove it, open the post assistant and use the rest client to help with the required parameters, first the address, and then request Method, then cookies (this tutorial roughly introduces this, in fact, as long as some parameters, there are some do not need this. This depends on experience, rely on trial), and then the request parameters, this can be copied directly, it is a json format We choose text to send. As follows:
Write picture description here;
point later sent to see things right response: Write picture description here
Compare the results of browser yes that's what we want, the specific parameters of its own analysis of Kazakhstan, which parameters are not clear deformation is doing. Well, this completes the process of capturing and issuing packages.
Capturing packets is a magical operation, and you can use fiddler to grab it on the mobile phone.
The next step is to use a good language to write software. Easy language can be completed using Jingyi modules, and java can be completed using httpclient.
What do you say that the encoding software is not used? That's because this data is not encoded. Look at the cookies to see if there are strange symbols. That's right, they are encoded. Try your own specific encoding and see more It takes a few times to know what code looks like. Then put a semi-finished product package BWrite picture description here

Guess you like

Origin blog.csdn.net/qq_35189120/article/details/82630695