Forum Discussion

BradBunch38's avatar
BradBunch38
Copper Contributor
Jan 08, 2021

Sending Keystrokes to Username and Password Authentication Popup Window in Chrome Browser

I am an Operational Technology Technician responsible for remediating vulnerabilities in all of our ICS (building automation devices) and IoT (security cameras) devices.  I am currently remediating SSL/TLS vulnerabilities in the cameras by installing SSL certificates from our internal, trusted CA.  As part of the process of initially discovering and connecting to the cameras to download the Certificate Signing Requests (CSRs), I have to login to 50-100 cameras thru the web GUI in the browser per change window, and manually logging into 50 - 100 cameras at a time is a slow, painful process, which I am looking to automate with scripting.  I am looking for a way to send keystrokes to the Username and Password fields in the authentication popup window of each and every camera I am trying to login to.  Is there a way to automate this using Javascript, POSH, Python, WinBatch, or VBScript?

I also wanted to stress that the download and install of Selenium and Chrome WebDriver is not allowed in our environment, as I have read this is a possible solution from multiple different scripting articles.

I also wanted to stress that the authentication windows on these cameras are separate popup windows and not a web form field that is built into a web page, which is why Selenium is a possible solution for this scenario...  Is there any way to accomplish this without having to use Selenium/Chrome WebDriver?

3 Replies

Resources