How can I remotely connect to a Selenium cluster

I recently came across an unsecured Selenium instance but I wanted to confirm my findings by making a basic request.

While I opted to use the Python bindings for Selenium, there wasn’t a quick start guide on how to remotely connect to an instance.

Here’s how you can quickly connect to a Selenium instance and do a basic request using Python:

>>> from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
>>> from selenium import webdriver
>>> hub_url = ""
>>> driver = webdriver.Remote(command_executor=hub_url, desired_capabilities=DesiredCapabilities.CHROME)
>>> driver.get("")
>>> driver.find_element_by_tag_name("img").get_attribute("src")