• Stars
    star
    427
  • Rank 101,680 (Top 3 %)
  • Language
    Shell
  • License
    MIT License
  • Created almost 4 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Recover old Snaps that have “disappeared” from Snapchat

snaprecovery

Recover old Snaps that have “disappeared” from Snapchat


⚠️ This script only works for rooted Android devices! ⚠️


Dependencies

This script was tested on an Android device running Android 10 with LinageOS with Snapchat v11.9.0.48 Beta

Notice: Snapchat has seemed to patched this vulnerability without any notice. I reported this issue to them through HackerOne but it was out of scope because I used a rooted devices and what I reported was a "sreenshot detection avoidance", which is also out of scope.

How the recovery works

According to Snap Inc's blog post from 9 May 2013, Snaps are deleted once you have viewed them.

After a snap has been opened, the temporary copy of it is deleted from the device’s storage. We try to make this happen immediately, sometimes it might take a minute or two. The files are deleted by sending a “delete” instruction to the phone’s file system. This is the normal way that things are usually deleted on computers and phones—we don’t do anything special (like “wiping”).

In reality the Snaps get stored in /data/user/0/com.snapchat.android/files/file_manager/chat_snap/ until you logout from the app. Once you logout, Snapchat deletes all of those files.

Towards the very end of the blog post, they have mentioned that jailbreaking/rooting a device can allow us to access the unopened Snap. This is understandable as they need to store the file somewhere on the device so that it can be viewed by the user.

While an unopened snap is being stored on the device, it’s not impossible to circumvent the Snapchat app and access the files directly. This isn’t something we support or encourage and in most cases it would involve jailbreaking or “rooting” the phone and voiding its warranty. If you’re trying to save a snap, it would be easier (and safer) to just take a screenshot or take a picture with another camera.

It is also mentioned that deleted Snaps can be recovered using the right forensics tools.

Also, if you’ve ever tried to recover lost data after accidentally deleting a drive or maybe watched an episode of CSI, you might know that with the right forensic tools, it’s sometimes possible to retrieve data after it has been deleted

We don't need any forensics tools. We can simply use adb pull to fetch the files because they are never deleted. But once you logout from the app and after Snapchat deletes the Snaps, you will need the right forensics tools to recover the files.

Since they are stored on the device, we can easily "recover" them by simply copying them from the Android device to our computer. The only issue with doing this is that the files do not have the proper file extension which prevents us from opening the file in the correct program. snaprecovery automates this whole proccess by fetching the files and then appending the correct file extension depending on the file's mime type.

More Repositories

1

tmpmail

A temporary email right from your terminal written in POSIX sh
Shell
3,841
star
2

wifi-password

Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Python
2,905
star
3

tmpsms

A temporary SMS utility right from your terminal written in POSIX sh
Shell
1,039
star
4

qr-filetransfer

Transfer files over WiFi between your computer and your smartphone from the terminal
Python
969
star
5

fontpreview

Highly customizable and minimal font previewer written in bash
Shell
912
star
6

farge

Click on a pixel on your screen and show its color value
Shell
480
star
7

recycle-bin-themes

Silly icons for the Windows Recycle Bin
PowerShell
476
star
8

soundcloud-dl

🎵 Download SoundCloud music at 128kbps with album art and tags
Python
320
star
9

kunst

Download and display album art or display embedded album art
Shell
309
star
10

dora

Find exposed API keys based on RegEx and get exploitation methods for some of keys that are found
Python
307
star
11

facebook-dl

📼 Very minimal Facebook downloader written in 28 lines of Python code (not including comments and blank spaces)
Python
237
star
12

gitdir

Download a single directory/folder from a GitHub repo
Python
224
star
13

dotfiles

my dotfiles
Lua
223
star
14

svart

Change between dark/light mode depending on the ambient light intensity
Python
167
star
15

fileinfo

📄Get information on over 10,000 file extensions right from the terminal
Python
111
star
16

meobrute

Automate the process of brute forcing the My Eyes Only pin code on Snapchat
Shell
93
star
17

insta-dl

📷 Download Instagram images from a public user.
Python
93
star
18

ff-pdf

Turn a Firefox profile into a standalone PDF reader app
Shell
87
star
19

pyradio

📻 Play your favorite radio station from the terminal
Python
74
star
20

snapchat

Messing around with Snapchat's web APIs
Python
68
star
21

pine

📷 A simple image to text OCR scanner for macOS
Python
55
star
22

down

☑️ A CLI tool to check if a site or a list of sites are down or up
Python
54
star
23

vsco-dl

📷 Download all of the images and videos from a VSCO user
Python
39
star
24

getroot

🛠️ Tool to bypass my school's security system to get sudo privileges on MacOS
Shell
38
star
25

bed

🧩 A very simple command line Browser Extension Downloader
Python
34
star
26

macbook-keyboard-visualizer

🔆 Audio visualizer using the MacBook keyboard lights
Python
31
star
27

dark-mode

🌗 Control the macOS dark mode from the terminal
Python
22
star
28

awesome-bounty-rewards

A curated list of BBPs and VDPs that offer awesome/unique rewards
7
star
29

datainnbrudd.no

Overivew of all cyber incidients in Norway
MDX
7
star
30

top-secret

highly confiential top secret repository
Shell
6
star
31

sdushantha.github.io

HTML
4
star
32

bacit-php

PHP work for uni
PHP
1
star
33

bacit

IT og informasjonssystemer
Java
1
star
34

w

w
HTML
1
star
35

myquote

En teste modul 1, del 2 for is-105 faget
Go
1
star