Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 7z archive file format #23

Open
Tracked by #86
dc3-plaso opened this issue May 22, 2015 · 7 comments
Open
Tracked by #86

Add support for 7z archive file format #23

dc3-plaso opened this issue May 22, 2015 · 7 comments
Assignees

Comments

@dc3-plaso
Copy link
Contributor

No description provided.

@dc3-plaso dc3-plaso self-assigned this May 22, 2015
@joachimmetz
Copy link
Member

Any suggestions for a Python module for this functionality?

@dc3-plaso
Copy link
Contributor Author

I'm looking at the pylzma library, using their py7zlib module. This would open and decompress the files for us, however it will not allow for us to perform any type of seeking into the files. Therefore, we will have to read in the whole files into a file stream in memory or temporary file.

@joachimmetz
Copy link
Member

This one you mean: https://pypi.python.org/pypi/pylzma ?

For context what we normally look at regarding new dependencies: https://github.com/log2timeline/plaso/wiki/Adding-a-new-dependency

Therefore, we will have to read in the whole files into a file stream in memory or temporary file.

This does not sound like an optimal solution, but we do somewhat the same for sqlite due to other limitations. I opt we get a temporary file manager in place before that or see if the seek functionality could be added to pylzma?

@dc3-plaso
Copy link
Contributor Author

Agreed, I have currently implemented the 7z support using pylzma. It uses temporary files to read the files within the archive, but it should be trivial to change this to use the temporary file manager when its ready. Therefore, I would like to submit this for code review.

@joachimmetz
Copy link
Member

python-lzma that is shipped with Ubuntu: https://launchpad.net/pyliblzma

Fedora python-backports-lzma.x86_64

@joachimmetz joachimmetz changed the title Add support for 7z file format. Add support for 7z archive file format. Feb 4, 2016
@dc3-plaso
Copy link
Contributor Author

I will be able to get back to writing this next week.

@joachimmetz
Copy link
Member

Sounds good to me, I've been looking at xz compressed stream support. I might implement something based on Python lzma for that, seeing it's integrated in Python 3 and back ported for Python 2. However this will not provide 7z archive file support.

@joachimmetz joachimmetz changed the title Add support for 7z archive file format. Add support for 7z archive file format Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants