在kali Linux虚拟机上,运行“binwalk -e 文件名”命令会报错

文章目录

  • 报错
  • 解决方法


报错

Extractor Exception: Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use ‘–run-as=root’ (binwalk itself must be run as root).

Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/binwalk/core/module.py”, line 258, in init
self.load()
File “/usr/lib/python3/dist-packages/binwalk/modules/extractor.py”, line 147, in load
raise ModuleException(“Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use ‘–run-as=%s’ (binwalk itself must be run as root).” % user_info.pw_name)
binwalk.core.exceptions.ModuleException: Binwalk extraction uses many third party utilities, which may not be secure. If you wish to have extraction utilities executed as the current user, use ‘–run-as=root’ (binwalk itself must be run as root).

在kali Linux虚拟机上,运行“binwalk -e 文件名”命令会报错_第1张图片

解决方法

在kali Linux虚拟机上,运行“binwalk -e 文件名”命令会报错_第2张图片

  • 在原命令后面加上 “–run-as=root”

原命令:binwalk -e misc8.png

改为:binwalk -e misc8.png --run-as=root
在kali Linux虚拟机上,运行“binwalk -e 文件名”命令会报错_第3张图片

你可能感兴趣的:(linux)