When Curl hits swf...-php Tutorial

Source: Internet
Author: User
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.

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.