Phpcurl obtains the value dynamically generated by javascript.

Source: Internet
Author: User
I am working on a simulated login to Qingguo educational administration system. I am a newbie using php curl. I learned and did it. Its login page has several values of hidden, I found that a value is dynamically generated by javascript and is empty when captured using curl. how can I capture this value? Thank you, please .... I am working on a simulated login to Qingguo educational administration system. I am a newbie using php curl. I learned and did it. Its login page has several values of hidden, I found that a value is dynamically generated by javascript and is empty when captured using curl. how can I capture this value?
Thank you, please.
This is the javascript code that generates this value on the page.

function chkpwd(obj) {  if(obj.value!='')  {    var s=md5(document.all.txt_asmcdefsddsd.value+md5(obj.value).substring(0,30).toUpperCase()+'13714').substring(0,30).toUpperCase();   document.all.dsdsdsdsdxcxdfgfg.value=s;} else { document.all.dsdsdsdsdxcxdfgfg.value=obj.value;} }  function chkyzm(obj) {  if(obj.value!='') {   var s=md5(md5(obj.value.toUpperCase()).substring(0,30).toUpperCase()+'13714').substring(0,30).toUpperCase();   document.all.fgfggfdgtyuuyyuuckjg.value=s;} else {    document.all.fgfggfdgtyuuyyuuckjg.value=obj.value.toUpperCase();}}//-->

Reply content:

I am working on a simulated login to Qingguo educational administration system. I am a newbie using php curl. I learned and did it. Its login page has several values of hidden, I found that a value is dynamically generated by javascript and is empty when captured using curl. how can I capture this value?
Thank you, please.
This is the javascript code that generates this value on the page.

function chkpwd(obj) {  if(obj.value!='')  {    var s=md5(document.all.txt_asmcdefsddsd.value+md5(obj.value).substring(0,30).toUpperCase()+'13714').substring(0,30).toUpperCase();   document.all.dsdsdsdsdxcxdfgfg.value=s;} else { document.all.dsdsdsdsdxcxdfgfg.value=obj.value;} }  function chkyzm(obj) {  if(obj.value!='') {   var s=md5(md5(obj.value.toUpperCase()).substring(0,30).toUpperCase()+'13714').substring(0,30).toUpperCase();   document.all.fgfggfdgtyuuyyuuckjg.value=s;} else {    document.all.fgfggfdgtyuuyyuuckjg.value=obj.value.toUpperCase();}}//-->

Restored with the original js.

Are you Miss Xue? Or from Luliang College?

Failed to perform simulated logon

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.