When Curl hits swf... This post was last edited by PhpNewnew at 17:27:31
When I first came back, I asked a friend yesterday to help me with a simulated login to read data.
Of course, packet capture... code Curl... verification code (recognition rate 70%, to be improved)... submit data
Finally, the data on the analysis page is found that the page will read a movie. that is, swf. then the swf will return a new passwd based on the form's username passwd validateCode (verification code) and then post it to the verification page .. for example, you input 12345 in input passwd
After processing, it may be aabbccdd.
So. when Curl hits swf, I would like to ask if you have handled this situation? Or how can I solve it better?
The following js code is executed on the page:
New String (thisMovie ("Secrecy"). Str_Encrypt (username, passwd, validatecode). split (",");
...
Document. form_login ["passwd"]. value = t_Array [1]; // The page value is rewritten here.
Now the problem is solved. how does curl trigger this event and obtain the data of t_Array [1] correctly.
Then post.
If not, you can only use the desktop tool to solve the problem...
Reply to discussion (solution)
Too? I cannot conquer it.
1. a callback function can be specified for curl to process dynamic data during interaction.
2. common methods:
A. for verification codes, when the cookie of the other party is saved, the image of the verification code is manually recognized and then retransmitted with the cookie.
B. execute the js script on the client and re-import the result with the cookie.
3. although JavaScript scripts may be executed on the server, swf cannot be loaded and run.
It can only be soy sauce.
I don't know anything at all...
Has the landlord solved the problem? Can you elaborate?
Solved?
Find a solution.
QQ: 837493271
Thank you very much.