Closed Gaurav-Chauhan25 closed 3 years ago
I have been facing an issue regarding the python.xlrd
module not being installed.
pip install xlrd
installed the latest xlrd version, but the windows-exploit-suggester tool doesn't work with the newest version of xlrd. Tool was facing conflicts to read from .xls and .xlsx, that's why the tool was throwing this error:
root@kali:~/Desktop/Windows-Exploit-Suggester# python windows-exploit-suggester.py --systeminfo systeminfo.txt --database 2021-09-29-mssb.xls
[*] initiating winsploit version 3.3...
[*] database file detected as xls or xlsx based on extension
Traceback (most recent call last):
File "windows-exploit-suggester.py
", line 1639, in <module>
main()
File "windows-exploit-suggester.py
", line 414, in main
wb = xlrd.open_workbook(ARGS.database)
File "/usr/local/lib/python2.7/dist-packages/xlrd/__init__.py", line 138, in open_workbook
ragged_rows=ragged_rows,
File "/usr/local/lib/python2.7/dist-packages/xlrd/xlsx.py", line 808, in open_workbook_2007_xml
zflo = zf.open
(component_names['xl/_rels/workbook.xml.rels'])
File "/usr/lib/python2.7/zipfile.py", line 994, in open
raise BadZipfile("Bad magic number for file header")
zipfile.BadZipfile: Bad magic number for file header
I installed the specific version of xlrd module that was 1.6.0 using pip install xlrd==1.6.0
and now it worked like a charm.
Hope you get that. Can you just put that in your .md file as there's no solution available on the internet regarding this!
Windows exploit suggester is not maintained by us: https://github.com/AonCyberLabs/Windows-Exploit-Suggester
I faced the xlrd issue in the new python version (be it python 3 or python2),
Add installation of xlrd version 1.6.0
pip install xrld==1.6.0
Add this in your README.md file so that no one gets stuck