cve-bin-tool
cve-bin-tool copied to clipboard
Add a pure-python cab extractor
As we talked on #1122 , we need to add a pure python cab-extractor as not all systems will come with it ,On a initial look cabarchive seems good. This will act as a fallback when cabextract is not found
I looked into cabarchive, and tested it on "test/assets/cab-test-python3.8.cab", it does not work as expected as the particular compression type is not supported, hence even though we can use cabarchive, it won't work on all cab files. Even looking at other methods, most if not all use subprocesses in order to do so (either cabextract or 7zip related), so as of now a pure python cab extractor might not exist.
I'm going to go ahead and mark this as blocked and take it off the "future" milestone since it seems unlikely to be resolved short or medium term. Thanks for the investigation, @XDRAGON2002 !
This has been blocked for over 6 months. I'm going to go ahead and close it. If a new and awesome library comes up, we can re-visit then.