#!/usr/bin/python

import scanner

target_url = "http://192.168.44.101/dvwa/"
links_to_ignore = ["http://192.168.44.101/dvwa/logout.php"]

data_dict = {"username":"admin","password":"password","Login":"submit"}

vuln_scanner = scanner.Scanner(target_url,links_to_ignore)
vuln_scanner.session.post("http://192.168.44.101/dvwa/login.php",data=data_dict)

vuln_scanner.crawl()
vuln_scanner.run_scanner()

#forms = vuln_scanner.extract_forms("http://192.168.44.101/dvwa/vulnerabilities/xss_r/")
#print forms
#response = vuln_scanner.test_xss_in_form(forms[0],"http://192.168.44.101/dvwa/vulnerabilities/xss_r/")
#print response
#response = vuln_scanner.test_xss_in_link("http://192.168.44.101/dvwa/vulnerabilities/xss_r/?name=")
#print response

