zhzyker / vulmap

Vulmap 是一款 web 漏洞扫描和验证工具, 可对 webapps 进行漏洞扫描, 并且具备漏洞验证功能

Home Page:https://github.com/zhzyker/vulmap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'random' has no attribute 'choices'

mcam1551 opened this issue · comments

In python 3.5 random.choices() will fail because that method is not available on python 3.5.

Replacing random.choices() with random.sample() on modules/md5.py will work on python 3.5.

Adding a routine to check for python version and use one or the other works as well, for example:

import sys
if sys.version_info.major == 3 and sys.version_info.minor < 6:

Etc.

In fact vulmap is designed for > python 3.7
At least python 3.6 is also required, but there is a problem with gevent in python 3.6
So it is not compatible with python 3.5

Thanks for your feedback