# ./w3af_console_docker
Traceback (most recent call last):
File "/root/w3af/extras/docker/scripts/./w3af_console_docker", line 5, in <module>
from common.docker_helpers import (check_root, create_volumes, start_container,
File "/root/w3af/extras/docker/scripts/common/docker_helpers.py", line 30
except subprocess.CalledProcessError, cpe:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
原因:yum需要用python2编译,如果服务器安装的是python3.6并作为默认编译器的话,就会出现这个错误。
修改yum配置文件:vim /root/w3af/extras/docker/scripts/./w3af_console_dock
第一句改为:
#!/usr/bin/env python2