python - 类型错误 : 'NoneType' object is unsubscriptable with Wapiti

标签 python security wapiti

我正在尝试扫描我的服务器是否存在漏洞,我正在使用 Wapiti 来执行此操作。奇怪的是,当我运行它时,我收到此错误。怎么了?

root@server [~/wapiti-2.3.0/bin]# python wapiti http://my.ip.address.here
Traceback (most recent call last):
  File "wapiti", line 41, in <module>
    lan.configure()
  File "/root/wapiti-2.3.0/wapitiCore/language/language.py", line 58, in configure
    lang = langCounty[:2]  # en
TypeError: 'NoneType' object is unsubscriptable
root@server [~/wapiti-2.3.0/bin]#

最佳答案

您正在使用最新版本。

但是,current source有一个固定版本:

if lang is None:
    # if lang is not specified, default language is used
    def_locale = locale.getdefaultlocale()
    langCounty = def_locale[0]   # en_UK
    if not langCounty is None:
        lang = langCounty[:2]  # en

这是a bug , fixed on 2013-10-21

关于python - 类型错误 : 'NoneType' object is unsubscriptable with Wapiti,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32521935/

相关文章:

python - 如何让python的argparse生成非英文文本?

iphone - 如何监控 iPhone 上的网络流量?

java - 如何通过 SFTP 从服务器检索文件?

python - Wapiti 安全工具 : Getting "Invalid Syntax Error "

penetration-testing - 如何通过 Wapiti Web Application Vulnerability Scanner 传递用户凭据

python - 是否有一个统一的python库来使用不同的协议(protocol)传输文件

python - 将值标记为警告或严重

python - 抓取简单页面: scrapy doesn't return all links

python - Python:我可以安全地释放不受信任的数据吗?