Browser Scripts in VB.net - javascript

I have a Windows form application with a browser in it. The browser opens to a secure website that will call a POPUP window asking for the Username and Password. Once logged in the site throws a bunch of Javascript Error Messages. I was wondering if there is a way to prevent these messages or at least automatically choose YES KEEP RUNNING SCRIPTS for the user so it is transparent.
In the Control Properties I set SUPPRESS ERRORS to TRUE but then the website does not prompt for the USERNAME and PASSWORD it just says YOU DO NOT HAVE ACCESS TO VIEW THIS PAGE. So setting the SUPPRESSION to TRUE will not work. Any ideas? Thanks!
Oh, also, I'm using Visual Basic Express 2010.

Related

Google log in from system default browser into web browser that I created

I want to create a login system where if the user logs in within their default browser I want them to automatically login in my web browser as well (this web browser is within my desktop app).
To explain it step by step:
the user clicks the "login" button on my website (the website is opened in my app in my own browser)
the default browser opens and navigates to my login page
the user logs in there
if login is successful my program/web browser catches the information
the user is automatically logged in in my web browser as well
My app is centered around the browser that I built, so I cannot change it.
I also cannot / would prefer not to have the users use my own browser to log in for two reasons:
it would require verification from Google (without it, Google warns users that the app is unsafe)
but more importantly, it makes the login process more difficult for the users (they would have to enter their email and password and go through 2FA again if they have it set up)
I thought I needed to create a custom URI scheme for my application and send the login information to my program but it sounds unsecure.
Maybe since I am communicating between different browsers, I should handle this with socket programming?
The tech I use:
for the web browser: Qt6 QWebEngineView
for the website: laravel and javascript
I am looking for ideas or road maps here. How can I do this securely?

Gmail API: python application error

https://developers.google.com/gmail/api/quickstart/python#step_1_turn_on_the_api_name
i executed python quickstart.py
and it opened browser-like window.
i've typed my email address and the password and reached a screen where i need to press "allow" button
when I did that I get this error:
"You've reached this page because we have dtected that Javascript is disabled in your browser. The age you attempted to load cannot display properly if script is disabled. Please enabled scripts and retry the opration or go back in your browser."
But im running this on a putty window.
how do i get pass this?
i had to add an option --noauth_local_webserver to python quickstart.py and it gave me the link to open on a browser to authenticate

Java Applets - Application/Publisher Show 'Unknown' for Signed Applet On Javascript->Java Calls

Our product is running into an issue specific to Java 8. Java 6/7 runs fine.
We have a package of Java applets that multiple customers use, so the domain this package is deployed to is always different. The package is properly signed with the certificate from Verisign.
When the end user launches a page in the browser, the expected dialog with our application name and publisher appears, and asks the end user to accept the security warning. The end user accepts and clicks 'Do not ask again' and the page runs fine.
The trouble starts with pages that make Javascript calls into the Java applets. The behavior appears to be random. New security popups appear, asking the end user to accept the certificate again. My understanding is that once the user selects the certificate initially, this should not happen again. Yet it does.
Then also sometimes the popup appears with the application name and publisher set to UNKNOWN. There does not seem to be any reason for this, the applet package is confirmed to be signed correctly and with a valid certificate from Verisign. Yet, it occurs.
I recognize the initial popup is unavoidable but all of these downstream popups, especially those where the application/publisher are UNKNOWN don't make sense to me, and I'm not sure how to debug this further. The java console trace logs do not clearly show any more details.
Any ideas? Please feel free to ask me more detail if there is something here unclear.

Script to automatically submit form in any browser

Note: I could not think words for this question to search in Google. That's why asking my question. Please bear with me.
I have internet subscription of xyz company and it's login based connection. But what happens is that sometimes login screen reappears and is asking for password. I have already stored user name and password in web page but I have to click on login button to relogin again.
Can I have any script written for this login page that whenever internet connection goes and asks for relogin again, script automatically submit form and get connected with internet?
You're looking for content scripts. There is no cross-browser way to inject code into a web page, but each major browser has a well documented way to do it:
Firefox
Chrome
Internet Explorer
Technically you could also write a script that sniffs HTTP requests using a tool like Wireshark and posts form data whenever it detects the page is displayed, but that doesn't seem like a great solution.

Refreshing same browser window from windows run command

I have one web application. When client enters the address and after successfully logging in. He gets the home page with some data over the page. Now when any third party tool or from run command if i give the same url on which the client is with changed parameter values, i want the same browser window to be refreshed with updated/changed values without opening the new browser window.
Whats happening now is that when i'm triggering the url from different source, its opening in new browser window. Plz help me out with few suggestions.
Ars.
The best solution would be for the web application to poll the server and refresh itself when there is an update.
Your command line tool can then contact the server and update the parameters directly, and the application in the user's browser will pick up those changes automatically.
Attaching to a running Internet Explorer instance is also possible, for example see this article: http://www.codeproject.com/Articles/9683/Automating-Internet-Explorer, or the Selenium project at http://seleniumhq.org/. But you're almost certainly going to make it easier for yourself by changing your application to refresh automatically.

Categories

Resources