TypeError: 'NoneType' object is unsubscriptable with Wapiti
TypeError: 'NoneType' object is unsubscriptable with 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
我正在尝试扫描我的服务器以查找漏洞,我正在使用 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