View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000460 | Kali Linux | Kali Package Bug | public | 2013-07-25 15:28 | 2013-12-04 21:40 |
Reporter | g0tmi1k | Assigned To | dookie | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86 | OS | Kali | OS Version | 1.0 |
Fixed in Version | 1.0.6 | ||||
Summary | 0000460: binwalk - NameError: global name 'Plugins' is not defined | ||||
Description | When trying to use binwalk with a firmware, program crashes.
Forum posting: http://forums.kali.org/showthread.php?18082-Binwalk-Plugins-is-not-defined&p=25273&viewfull=1#post25273 | ||||
Steps To Reproduce | wget http://www.tp-link.com/resources/software/TL-WA801ND_V2_130121.zip | ||||
Additional Information | Tested on x86 - with and without bleeding edge enabled (both times fully up-to-date)
| ||||
I am working with the 64 bit iso but I think my comment is relevant to any of the builds. The files init.py and init.pyc in the binwalk/plugins directory are preventing the python import from finding the plugins.py file that has the definition for the Plugins class. Apparently, the import is finding the package init files first and ignoring the plugins.py file. I do not see these files in the binwalk package and I don't think they should be there. The python compile script update-python-modules creates these files during install time, thinking that this directory is supposed to be a package and thus it needs these files. Had a look at that script and you can turn that behavior off by including a file named .noinit in the plugins directory. It won't automatically create an init.py if it sees that file in the directory. |
|
Upgraded and fixed in binwalk_1.2.2-1-1kali0. Thanks for the bug report and fix. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-07-25 15:28 | g0tmi1k | New Issue | |
2013-08-27 21:13 | kdog | Note Added: 0000802 | |
2013-12-04 21:40 | dookie | Note Added: 0001124 | |
2013-12-04 21:40 | dookie | Status | new => resolved |
2013-12-04 21:40 | dookie | Fixed in Version | => 1.0.6 |
2013-12-04 21:40 | dookie | Resolution | open => fixed |
2013-12-04 21:40 | dookie | Assigned To | => dookie |