Continue to jsoup the teaching quality evaluation of the square educational system one-click Praise

Source: Internet
Author: User

Again to a number of subjects of the teacher evaluation, but each teacher evaluation of the content of more than 20, but also a manual choice, so lazy method in this want to do a one-click praise of the function.

Continue to use Jsoup httpclient and so can normally log into the educational system, then you can go on the following

First, we have to catch the packet analysis.

See a few subjects need to be evaluated, can be analyzed in advance, saved up,

I. Direct Web page analysis ...

<a href= "xsjxpj.aspx?xkkh= (2013-2014-2) -05b31067-0311-1&xh=2011125127&gnmkdm=n12141" target= "Zhuti" onclick= "GETMC (' Java language ');" >java language </a>

<a href= "xsjxpj.aspx?xkkh= (2013-2014-2) -12130121-9392-1&xh=2011125127&gnmkdm=n12141" target= "Zhuti" onclick= "GETMC (' Electronic design Training '); > Electronic Design Training </a>

<a href= "xsjxpj.aspx?xkkh= (2013-2014-2) -20112008-2013-1&xh=2011125127&gnmkdm=n12141" target= "Zhuti" onclick= "GETMC (' programmable controller ');" > Programmable Controllers </a>

<a href= "xsjxpj.aspx?xkkh= (2013-2014-2) -05b34230-0317-1&xh=2011125127&gnmkdm=n12141" target= "Zhuti" onclick= "GETMC (' control motor ');" > Control Motor </a>

<a href= "xsjxpj.aspx?xkkh= (2013-2014-2)-xxd07206-4612-1&xh=2011125127&gnmkdm=n12141" target= "Zhuti" onclick= "GETMC (' Business Japanese Conversation (beginner) ');" > Business Japanese Conversation (beginner) </a>

<a href= "xsjxpj.aspx?xkkh= (2013-2014-2) -05b31080-0775-1&xh=2011125127&gnmkdm=n12141" target= "Zhuti" onclick= "GETMC (' Principle of digital communication ');" > Digital Communication Principles </a>

<a href= "xsjxpj.aspx?xkkh= (2013-2014-2) -05b31100-0936-1&xh=2011125127&gnmkdm=n12141" target= "Zhuti" onclick= "GETMC (' digital signal processing ');" > Digital Signal Processing </a>

1 Now to do is click on the first to enter the evaluation page all future parameters are related to this address.Xkkh=(2013-2014-2) -05b31067-0311-1

Select all to save and go to the next comment

2 continue to evaluate, notice which parameters have changed

This is the first time the argument is submitted

Here you can see more data on the post form here, which is the first time the data is saved.

There are many parameters passed from the first page, the server took the last time we recorded the operation, the encryption section is, and then as one of the parameters of this submission, resubmit

3. Save the above and open the next review page

Look at the post data of the first review page

As with the previous basic, only that the encrypted section of the __viewstate is different, prove it is very important, every time you save the submission is used

The following is still the same analysis,.... (All the Submit button clicks before that are not responding)

4. It's the last page.

Because I first filled out after the click on the save, so the following parameter changes, but we can be completed after the completion of a direct click Submit, and the first save completed in the submission effect is the same, just indicate that the entrance is not the same.

Click Submit to see

That Button1 turned into a Button2 , and of course, the encryption in front of it.

Supposedly the most important thing is that this step is submitted by the various parameters, so it is necessary to look at the encryption of what the content, the general use should be Base64 encryption bar

If so, see the decrypted content. So we're not going to be able to forge a paragraph like this one, and then encrypt the post to solve it?

It seems to see or not understand the ... Or be honest every time you get over and save it at the submit insurance point.

The following simulation data are submitted 1. Open the simulation on the First review page

Parameter Get for simulation

    1. Xkkh: (2013-2014-2) -05b31067-0311-1
    2. xh:2011125142
    3. gnmkdm:n12141

Post parameters

    1. _eventtarget:
    2. __eventargument:
3. __viewstate:xxxooo a large pile of PJKC: (2013-2014-2)-xxd07206-4612-15. Datagrid1:_ctl2:js1:5 (Excellent)

DATAGRID1:_CTL3:JS1:

DATAGRID1:_CTL4:JS1:

8DATAGRID1:_CTL5:JS1:

DATAGRID1:_CTL6:JS1:

DATAGRID1:_CTL7:JS1:

DATAGRID1:_CTL8:JS1:

DATAGRID1:_CTL9:JS1:

DATAGRID1:_CTL10:JS1:

DATAGRID1:_CTL11:JS1:

DATAGRID1:_CTL12:JS1:

DATAGRID1:_CTL13:JS1:

DATAGRID1:_CTL14:JS1:

DATAGRID1:_CTL15:JS1:

DATAGRID1:_CTL16:JS1:

DATAGRID1:_CTL17:JS1:

DATAGRID1:_CTL18:JS1:

DATAGRID1:_CTL19:JS1:

DATAGRID1:_CTL20:JS1:

DATAGRID1:_CTL21:JS1:

DATAGRID1:_CTL22:JS1:

PJXX:

TXT1:

textbox1:0

Button1:

Post past and then remove __viewstates as parameter

Because each account corresponds to a different number, that is, some parameters are different, to the last commit is good.

This information can be obtained according to the analysis;

Suppose we have 6 subjects, named A,b,c,d,e,f, corresponding to a teacher's number 1,2,3,4,5,6
Working process on a webpage:
1. Click on an Account evaluation link to enter the evaluation page
2. Tick-Check for positive feedback
3. Save (less than the last one cannot be submitted)
4. Click the Save button to transfer to the next account review, until the last one, at which time you can submit
5. Completion of the submission, all evaluations completed.


Get parameters
Xkkh: (2013-2014-2) -05b31067-0311-1
xh:2011125127
gnmkdm:n12141


Post form parameters
_eventtarget:
__eventargument:

This is a different generation, depending on the parameters of the previous??? Encrypted data that needs to be saved to the next as a parameter
__viewstate:

A number that corresponds to a teacher, according to different subjects
PJKC: (2013-2014-2) -05b31100-0936-1

5 Points High Praise parameters
Datagrid1:_ctl2:js1:5 (Excellent)
... A total of 20 praise
Datagrid1:_ctl21:js1:5 (Excellent)

PJXX:
TXT1:
textbox1:0

The previous ones need to be saved first, and the last is a one-time commit
Button1: Save
Button2: Submit


Need to save post 5 times above, each post needs to save the returned __viewstate as the next post parameter
The 6th post is the post that is submitted, so that you can do one-click Praise

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.