IOError: [Errno 2] No such file or directory: 'encrypted_bananas_file'
Hi
This is the output I got when I tried the script. I have a rooted device.
8.0.0
Traceback (most recent call last):
File "decrypt_photos.py", line 140, in
Hi, can you tell me what Snapchat version are you running? Because the script works only for versions 5.0.34.X or 5.0.38.X. You can check your version under the Settings->Application Manager->Snapchat tab. If your running any of those versions, try closing the application before running the script.
Joaquín
It got upgraded to version 8.0.0 on 17th November. Is there any hack for that?
I'll have to look into the new update, i'll probably take a few days to check how the learn how new version encrypts images. Thanks for reporting this.
please let me know if you find a hack. it's urgent. need to submit a report in 3 weeks
Hi, I just tested the script with the new version and it appeared to work. Did you close the application before running the script? are you running adb shell as root from start? (You should have # instead of $ when running adb shell). Remember the script only works for images so far, since it's a poc.
the app was closed but i think i missed the adb part.. so to summarise, please confirm if this is what i need to do:-- $ adb shell #su
python decrypt_images.py
the script is saved on the Desktop currently
Hi, plese install adbd Insecure from Chainfire to make adb run as root from the start. Otherwise the script won't work because adb pull command can't pull files from internal memory.
but i am doing a forensic analysis currently by extracting the whole image and i have used adb pull and did not need to install any of those. But still could you please provide a link to those?
Hi, sure, download from http://forum.xda-developers.com/showthread.php?t=1687590. The problem is using adb pull to extract something from /data/data/ folder, you need adb running as root to do that.
Thanks mate.. Will have a look and update my findings!!
Cheers!
I installed chainfire and then ran the script again.. And got the following error:--
$ python decrypt_photos.py
8.0.0
b4d975402fe47bbd
Traceback (most recent call last):
File "decrypt_photos.py", line 141, in
Can you check if you check if you have the folder "received_image_snaps" under /data/data/com.snapchat.android/cache folder? Unloaded images are cached inside this folder when closing the application.
yes i do

The folder is empty, apparently you have no unseen images. You must open the chat so the images are downloaded and then close the application so it's cached inside that folder. Try checking if there are images files inside that folder before running the script.

As you can see from the screenshots, I have opened the image and viewed it. Now, in the last 2 screenshots, you can see that the Received images folder is empty. But it is really interesting to see that there are some .nomedia files under cache/stories/received/thumbnail. Are the pics being stored in this new location now? Is that why the script is failing?
Hi, did you check the received images folder after you viewed the image? I checked last night the script with two accounts and it seemed to work properly with the last Snapchat version. Are you checking /data/data/com.snapchat.android/cache (internal memory for the application) or the cache folders stored in the sdcard?
I am checking the internal memory of the phone. I am taking the whole image of /data. Please see the screenshot of the received images folder above
Also, when you said to close the app, did you mean to use the "force stop" function?
No, force stop stops the app abruptly and doesn't give the application a chance to save the keys for the image in the bananas file and unloaded images can't be decrypted. You need to close it the normal way (press home screen and swipe gesture closing the app).
I did that. But still no snaps are being stored in the /data/com.snapchat.android/cache/received_image_snaps folder. I checked this from the extracted image of the device. Is there any particular reason that you could think of why this is happening?
also could you also confirm your version no please?
I got this to work today by manually installing the snapchat APK with version 5.0.38.1. Hope that helps.
No I need to work on it on the latest one. The other guy said it works for him. Do you also face the same issue as me?
Regards Abhishek Mitra On 2 Dec 2014 04:25, "Patrick Edelman" [email protected] wrote:
I got this to work today by manually installing the snapchat APK with version 5.0.38.1. Hope that helps.
— Reply to this email directly or view it on GitHub https://github.com/programa-stic/snapchat-decrypt/issues/5#issuecomment-65181698 .
@zerokes
Did you try running it on the version 8.x?
Yes, I did. It appeared to be working properly. No changes where made to the classes mentioned in the README file in 8.x from what i've seen.
Now I am getting this error suddenly:--
Traceback (most recent call last):
File "decrypt_photos.py", line 135, in
The script is supposed to be a POC, changes could be made to make it more stable. For example, not having to run adb as root. Sometimes keys for images are lost because you received the image, then forced stoped the application (being unable to update the bananas key file). Cleaning the application data and reloading the unseen image may fix the issue.
The error you're seing comes from the script not being able to obtain the app version using the command adb shell dumpsys package com.snapchat.android, change the script to return "8.0.0" in getVersion() if you're sure to be running that version.
ok.. let me try.. thanks!!
ok.. since there are no files or folders under received_image_snaps, I changed the code in line nos 86 and 108. Look at attached screenshot. But still the script throws an error :--
Traceback (most recent call last):
File "decrypt_photos.py", line 144, in
I tried this on two devices now, Samsung Galaxy Fame and Samsung Galaxy Note. Both yielded the same result

The script is not running in the device. It runs on the folder from where it is saved on the computer. Could you please share your email id or any other contact details so that I can contact you with more details?