django - ModuleNotFoundError:没有名为“capfuzz”的模块
问题描述
当我尝试使用命令启动MobSF
(Mobile-Security Framework)时,出现以下错误:Windows 10
python manage.py runserver
c:\Users\username\Mobile-Security-Framework-MobSF>python manage.py runserver
Performing system checks...
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000001C247E189D8>
Traceback (most recent call last):
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\utils\autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\core\management\commands\runserver.py", line 120, in inner_run
self.check(display_num_errors=True)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py", line 364, in check
include_deployment_checks=include_deployment_checks,
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\core\management\base.py", line 351, in _run_checks
return checks.run_checks(**kwargs)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\core\checks\registry.py", line 73, in run_checks
new_errors = check(app_configs=app_configs)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\core\checks\urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\core\checks\urls.py", line 23, in check_resolver
return check_method()
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\urls\resolvers.py", line 397, in check
for pattern in self.url_patterns:
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\utils\functional.py", line 36, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\urls\resolvers.py", line 536, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\utils\functional.py", line 36, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "C:\Users\username\AppData\Roaming\Python\Python37\site-packages\django\urls\resolvers.py", line 529, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Program Files\Python37\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "c:\Users\username\Mobile-Security-Framework-MobSF\MobSF\urls.py", line 4, in <module>
import DynamicAnalyzer.views.android.dynamic
File "c:\Users\username\Mobile-Security-Framework-MobSF\DynamicAnalyzer\views\android\dynamic.py", line 24, in <module>
from DynamicAnalyzer.tools.webproxy import (
File "c:\Users\username\Mobile-Security-Framework-MobSF\DynamicAnalyzer\tools\webproxy.py", line 6, in <module>
import capfuzz as cp
ModuleNotFoundError: No module named 'capfuzz'
为什么会这样?
解决方案
通过这些命令安装CapFuzz 。
git clone https://github.com/MobSF/CapFuzz.git
cd CapFuzz
python setup.py install
推荐阅读
- javascript - 输入只允许数字、一个点和两个小数位
- php - PHP 消息:注意:尝试访问数组偏移量
- python - python:如何从字典中添加值并附加列表
- angular - 离子离开后不破坏页面
- java - Java Char 添加没有意义(对我来说)
- css - 带有移动背景的剪辑文本
- api - 为混合应用寻找本地酒吧/啤酒厂 REST API 的建议
- apache-spark - 尝试使用 foreachbatch 和 foreach 将记录(字符串)发送到 AWS SNS
- css - 剪辑路径插入圆
- javascript - TypeError:superCtor 未定义(继承inherits_browser.js)