Dump Discord's cache and identify files
A cross-platform command line Discord cache collection tool
Discord Cache Dump is a tool that gathers the cache of all known Electron Discord client builds, copies into their corresponding build directories, and gives the files their appropriate file extensions.
--build
(or -b
) flag (i.e. ./dcd --build stable
)--noninteractive
(or -n
) flag (i.e. ./dcd --noninteractive
)The following files are known to be used constantly by Discord and so cannot be copied while that Discord client is running.
File | Contents |
---|---|
index | Cache index |
data_0 | Unknown |
data_1 | Full URLs to friendly URLs, API, avatars, emojis, embeds, attachments, uploads (self and others) |
data_2 | Code, assets (png, svg) |
data_3 | Certificates, hostnames, IP addresses, image EXIF, references to javascript assets (webpack) |
In order to compile the tool, there are a few things required to get it set up.
go get github.com/h2non/filetype
go get github.com/ricochet2200/go-disk-usage/du
go get github.com/jessevdk/go-flags
Platform | Command |
---|---|
Windows | dcd_windows.exe |
GNU/Linux | ./dcd_linux (run chmod +x ./dcd_linux initially) |
macOS | ./dcd_darwin_arm64 (run chmod +x ./dcd_darwin_arm64 initially) |
User | Contribution |
---|---|
uintdev | Research & analysis, development, Windows, GNU/Linux and macOS platform testing |
NotZoeyDev | macOS platform testing |
utf-4096 | GNU/Linux platform testing |