cve-bin-tool icon indicating copy to clipboard operation
cve-bin-tool copied to clipboard

Add a pure-python cab extractor

Open bhargavh opened this issue 4 years ago • 2 comments

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

bhargavh avatar Apr 01 '21 10:04 bhargavh

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.

XDRAGON2002 avatar Feb 07 '22 17:02 XDRAGON2002

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 !

terriko avatar Feb 07 '22 19:02 terriko

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.

terriko avatar Oct 25 '22 21:10 terriko