A
A
AlessandrIT2019-06-23 13:35:53
Python
AlessandrIT, 2019-06-23 13:35:53

Python - how to open any file through an archiver?

The essence is simple. I have a file, in the interior of which there is another file. It was created through Required to get a hidden file from a Python script. What are the options? copy /b 1.jpg + 2.rar 3.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2019-06-23
@AlessandrIT

Look for the rar signature , then read the file from that location and write it to a new one with the desired name.
Since the jpeg file is a random byte stream, there is a tiny chance that such a signature will also appear in it, so look for all the necessary signatures in the file and save several files in this case, then check for integrity and leave the one that is not broken.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question