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

Error to export old images #89

Open
roisec opened this issue Feb 27, 2024 · 11 comments
Open

Error to export old images #89

roisec opened this issue Feb 27, 2024 · 11 comments
Labels
question Further information is requested

Comments

@roisec
Copy link

roisec commented Feb 27, 2024

Hi,
I have old photos that I want to recover @KnugiHK, (I guess you may have an idea of how to recover it.)
These pictures transfer to several devices so I guess causes some issues.
When I used your tool, I saw the images were not available, I tried to sort by date and the pictures are not exported by your tool.
Is there any option to export it from the iTunes backup/or your tool?

See the screenshot below, when I tried to share it I saw the hash of the file but without success exporting it.
image

Thanks

@roisec roisec changed the title Error to open old images Error to export old images Feb 27, 2024
@KnugiHK
Copy link
Owner

KnugiHK commented Feb 28, 2024

Hi. Just want to confirm if you are working to export your WhatsApp images or the images stored in iOS, i.e., images in the Photo app.

@roisec
Copy link
Author

roisec commented Feb 28, 2024

Hi,
I don't configured it to save it on photo roll, so I don't think it will help :(
Do you have another idea?

@KnugiHK
Copy link
Owner

KnugiHK commented Feb 28, 2024

Is your iOS backup encrypted?

@roisec
Copy link
Author

roisec commented Feb 28, 2024

No, the IOS backup is not encrypted.
I have the iphone if needed.

@KnugiHK
Copy link
Owner

KnugiHK commented Feb 28, 2024

You can run the following SQL in the Manifest.db and check if each file in the backup is intect:

SELECT * FROM Files WHERE domain='AppDomainGroup-group.net.whatsapp.WhatsApp.shared'

@roisec
Copy link
Author

roisec commented Feb 28, 2024

@KnugiHK thanks for your response.
I did a iOS backup with iTunes and I didn’t choose encryption enabled, but when I tried enter the iOS folder I saw hashed files.
Do you mean I need to run your tool and then access to Manifest.db ?how can I get plain file of this db?

@KnugiHK
Copy link
Owner

KnugiHK commented Feb 28, 2024

In your iOS backup folder there should be a file called "Manifest.db". Open that with a SQLite browser and execute the SQL I mentioned above. Then, you will get the hash of each file. Using the hash, you can locate your files in the backup folder. You may want to first check the integrity of several randomly chosen files.

@roisec
Copy link
Author

roisec commented Feb 29, 2024

I succeeded to see all the hashes. Can I add the timestamp of the file hashes? Because I need the oldest photos?
In Addition, let's assume I found my hashes folder; what can I do with them? Is there any way to view them?

@KnugiHK
Copy link
Owner

KnugiHK commented Feb 29, 2024

The files named with hash is the file you want as you mentioned it is not encrypted.

To add the timestamp of the files, you need to parse the bplist file embedded. You may refer to this commit.

@roisec
Copy link
Author

roisec commented Feb 29, 2024

Thanks a lot!
now I am able to see newer picutres I want to export the oldest, I don't understand how to parse the Manifest.plist.
How can I do it easily?

@KnugiHK KnugiHK added the question Further information is requested label Sep 9, 2024
@KnugiHK
Copy link
Owner

KnugiHK commented Sep 9, 2024

Thanks a lot! now I am able to see newer picutres I want to export the oldest, I don't understand how to parse the Manifest.plist. How can I do it easily?

Ignore my last comment if you see that through email.

The latest version should have the timestamp written into the metadata of all WhatsApp media. You may want to take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants