This article is a mirror article of machine translation, please click here to jump to the original article.

View: 27982|Reply: 6

[Source] C# WebBrowser control insertion executes JS code

[Copy link]
Posted on 8/28/2017 9:23:29 AM | | |
Insert the JS code in the C# WebBrowser control, and execute!


There is a certain difference between WPF's WebBrowser and WinForm's WebBrowser.


To inject the javascrip{filter}t script into it, after my own experimentation, the following path can be passed:




This method can also inject the javascrip{filter}t function, and call Browser.Invokescrip{filter}t() when needed.

But today I found a very strange problem. I modified document.body.style.zoom with this injection method, and the whole page was scaled, but there was a problem with the flash and other controls.





Previous:The knowledge structure of front-end engineers, students who want to learn the front-end can take a look
Next:Selenium web automated testing scheme
Posted on 8/31/2017 9:42:49 PM |
Wipe Do you browse my blog every day and decrypt all the techniques for me
Posted on 9/1/2017 12:58:47 PM |
Reply and see!
- This article is from the architect, the original address: https://www.itsvse.com/thread-3653-1-1.html
 Landlord| Posted on 9/2/2017 10:24:47 AM |
Xiaozhe Posted on 2017-8-31 21:42
Wipe Do you browse my blog every day and decrypt all the techniques for me

Who reads your blog every day, I'm also drunk
Posted on 10/13/2017 10:47:15 AM |
Xiao Zhazha Posted on 2017-9-2 10:24
Who reads your blog every day, I'm also drunk

It's funny, I just sent MD5 before, and you came out with one, and I came out with an execution JS less than two days ago
 Landlord| Posted on 10/13/2017 10:51:01 AM |
Xiaozhe Posted on 2017-10-13 10:47
Funny, I just posted MD5 before, and you came out with one, and I released an execution JS less than two days ago, and I made one...

Drunk md5 is indeed watching you write one, I wrote one myself

This JS execution is because I want to make a software to grab the activation code, and I recorded it.
Posted on 10/13/2017 10:58:36 AM |
Little slag Posted on 2017-10-13 10:51
Drunk md5 is indeed watching you write one, I wrote one myself

This js execution is because I want to make a software to grab the activation code, remember ...

That's really similar...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com