下面代码是否有错误的地方import argparseimport concurrentfuturesimport requestsdef execute_commandurl command body = xml version=10 encoding=UTF-8 SOAP-ENVEnvelope xmlnsSOAP-ENV=httpschemasxmlsoaporgsoapenve
代码中有几处错误:
- 在requests.post()方法中,headers中的key应该是'User-Agent'而不是'user-agent'。
- 在requests.get()方法中,headers参数的变量名应该是'headers'而不是'headers'。
- 在requests.get()方法中,proxies参数的变量名应该是'proxies'而不是'proxies'。
- 在requests.get()方法中,timeout参数的变量名应该是'timeout'而不是'timeout'。
- 在check_vulnerability()函数中,headers参数没有被定义。
- 在main()函数中,vulnerable_urls列表没有被添加到。
- 在main()函数中,如果args.output不为None,则应该在check_vulnerability()和execute_commands()函数中将vulnerable_urls列表添加到。
- 在main()函数中,如果args.file不为None,则应该在check_vulnerability()函数中将vulnerable_urls列表添加到
原文地址: https://www.cveoy.top/t/topic/hDbw 著作权归作者所有。请勿转载和采集!