https://github.com/ReFirmLabs/binwalk/issues/121
https://github.com/ReFirmLabs/binwalk/wiki/Quick-Start-Guide
应该是binwalk和python版本不匹配的问题
https://github.com/ReFirmLabs/binwalk
从release找到旧版本2.2.0 https://github.com/ReFirmLabs/binwalk/releases/tag/v2.2.0
https://github.com/ReFirmLabs/binwalk/releases/tag/v2.2.0
如果有旧版本,
sudo python setup.py uninstall
下载解压,安装即可
cd binwalk python setup.py install