C # query the status of Shanda shengfu recharge card,

Source: Internet
Author: User
Tags strong password

C # query the status of Shanda shengfu recharge card,

Today have such a demand, asked to be able to query the status of the shengfu card, the official website of the following http://www.801335.com/status/index.htm

As soon as I opened the website, I found that I added a verification code to two input boxes. I was surprised that the verification code was not pasted in a small case, and it didn't make any changes. The correct rate was good after the three-five recognition was done, 90 + % ..

After the verification code is sent, start to capture the packet and then click it. It seems that his data is encrypted. First, upload a picture.

Looking back, carefully looked at his interface, found the tricky, his card number and password input is flash UesTextInput-1.4.swf file name is this, then looked, his JS Code found several key lines

// Obtain the encryption Key
Var encryptedKey = document. getElementById (swfObjId). GetKey ($ ("# base64Cert"). val ());
$ ("#" + KeyEleId). val (encryptedKey );
// Obtain encrypted data
Var encryptedData = document. getElementById (swfObjId). GetValue ();
$ ("#" + DataEleId). val (encryptedData );

It turns out that he encrypted the input text through flash and assigned the value to the input box. Now that he knows his reality, I have a new idea.

Solution 1

C # Call The flash Com component to implement encryption and batch query by inputting the card number and password on the simulated keyboard. The specific implementation will not be discussed here,

The program ran, but found a problem. in the case of multiple threads, there is a problem with flash encryption. It cannot be synchronized. If you don't want to synchronize, I will synchronize it with you. I have added a synchronization mechanism. If you can, it will be okay, however, after synchronization, the query speed was reduced, and a card could be queried in about 1-2 seconds. My grandmother couldn't stand it. It's better to manually check the card. There's no way to continue the revolution.

 

Solution 2

Didn't you use flash encryption? If you add a strong password, it's not done on the client. As long as it's done on the client, I don't believe I can't help you. Haha, after years of development and accumulation, nothing. Some are accumulated gadgets,

Flash, right? Use some of my flash genie N years ago.

 

A relatively old version does not matter, as long as there is a field on the line ....

 

Sorry, what's going on? Now we need to convert the A3 code into our cute C # code, and everything is done.

In fact, there are only two methods to be rewritten. Just now there are two methods called by JS.

 

GetKey GetValue is the only two, and the rewritten code will not be pasted.

Start 10 threads with high speed .............

 

-- Happy sea

Blog: http://www.cnblogs.com/ningqhai/

Related Article

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.