xsssniper 是一个方便的 XSS 发现工具,具有批量扫描功能。
Usage: xsssniper.py [options]
Options:
-h, --help show this help message and exit
-u URL, --url=URL target URL
--post try a post request to target url
--data=POST_DATA post data to use
--threads=THREADS number of threads
--http-proxy=HTTP_PROXY
scan behind given proxy (format: 127.0.0.1:80)
--tor scan behind default Tor
--crawl crawl target url for other links to test
--forms crawl target url looking for forms to test
--user-agent=USER_AGENT
provide an user agent
--random-agent perform scan with random user agents
--cookie=COOKIE use a cookie to perform scans
--dom basic heuristic to detect dom xss
使用 GET 参数扫描单个 URL:
$ python xsssniper.py -u "http://target.com/index.php?page=test"
使用 POST 参数扫描单个 URL:
$ python xsssniper.py -u "http://target.com/index.php" --post --data=POST_DATA
爬取单个 URL 以查找要扫描的表单:
$ python xsssniper.py -u "http://target.com" --forms
批量扫描整个网站:
$ python xsssniper.py -u "http://target.com" --crawl
批量扫描整个网站(包括表单):
$ python xsssniper.py -u "http://target.com" --crawl --forms
分析目标页面的 JavaScript(嵌入的和链接的),以搜索常见的 sink 和 source:
$ python xsssniper.py -u "http://target.com" --dom
ISC 许可证。
Copyright (c) 2012, Gianluca Brindisi < [email protected] >
特此免费授予任何获得本软件及相关文档文件(以下简称“软件”)副本的人,不受限制地处理本软件的权利,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或销售本软件副本的权利,并允许向其提供本软件的人这样做,但须满足以下条件:
上述版权声明和本许可声明应包含在本软件的所有副本或实质性部分中。
本软件“按原样”提供,不提供任何明示或暗示的担保,包括但不限于适销性、特定用途适用性和非侵权性的担保。在任何情况下,作者均不对因本软件或本软件的使用或其他交易而引起的或与之相关的任何索赔、损害或其他责任负责,无论是合同行为、侵权行为还是其他行为。