Extracting hashes from encrypted archives #599
Unanswered
NordmanPro
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You can find a documentation of 7zip file structure at https://py7zr.readthedocs.io/en/latest/archive_format.html It may be good start point that
You can observe |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Hiroshi Miura, I would like to ask you to help me with one project. Now I am trying to finish the script for extracting password hashes from 7zip archives, I do it as a CTF tool. This is an old project of another person, which was written for python 2, but now it is no longer relevant.
Here is the link
https://github.com/truongkma/ctf-tools/blob/master/John/run/7z2john.py
You wrote a very good library for working with 7zip archives, you know their structure better. This script can extract passwords only from archives that have an encrypted header and only one file inside, even if the file is in a folder, the script does not work quite correctly. It cannot process archives with unencrypted headers and several files inside. Unfortunately, there is also no support for all compression algorithms. I slightly edited this script for python 3, also completed the ability to output the hash in the format for hashcat (not completely), nothing else has changed dramatically. I know there is already a script from philsmd that he wrote in perl, but I want to make it in python. I really ask you to help me finish this script, I will attach my file to this message, later I want to post it on github, I will definitely indicate you as a co-author
My file, I uploaded it to pastebin
https://pastebin.com/Y4TaD7Hm
Beta Was this translation helpful? Give feedback.
All reactions