Rm558
Rm558

Reputation: 4994

Where is the temporary file generated by chrome extension?

A chrome extension generated a image file, then opened in a chrome tab, the url of that tab is

filesystem:chrome-extension://fdpohaocaechififmbbbbbknoalclacl/temporary/screencapture-www-google-com-webhp-1436884653249.png

Is it possible to locate the temporary file in the OS?

FYI. here is the code that generate the file

 window.webkitRequestFileSystem(window.TEMPORARY, size, function(fs){
    fs.root.getFile(name, {create: true}, function(fileEntry) {
        fileEntry.createWriter(function(fileWriter) {
            fileWriter.onwriteend = onwriteend;
            fileWriter.write(blob);
        }, errorHandler);
    }, errorHandler);
}, errorHandler);

The chrome extension is installed on my win7 PC at:

C:\Users\{myName}\AppData\Local\Google\Chrome\User Data\Profile 1\Extensions\fdpohaocaechififmbbbbbknoalclacl\0.0.15_0

but cannot find any temporary file/folder.

Upvotes: 2

Views: 5261

Answers (2)

sherb
sherb

Reputation: 6095

For Mac users, the location is based on the active user's Library folder (as of Chrome 56 anyway). Here's an example:

/Users/tester1/Library/Application Support/Google/Chrome/Default/File System/027/t/00

Where 00 is a file that contained the JSON blob I had previously stored with the webkitRequestFileSystem API.

@nemenem has the right approach for penetrating Chrome's obfuscation:

  1. Open ~/Library/Application Support/Google/Chrome/Default/File System/
  2. Sort by date in descending order
  3. Navigate down the folder structure to find the data that you've written out.

Upvotes: 0

nemenem
nemenem

Reputation: 74

For Windows OS ,please follow below steps:

1-go to C:\Users{username}\AppData\Local\Google\Chrome\User Data\Default\File System

2-Sort the folders according to date modified. find the correct folder and open it.

3-Go further down through that folder (1 or 2 steps).There you will find your captured files without any extension (there may be File written on Type bar).Change their extensions to *.png (or another picture format you want)

4-Enjoy

Upvotes: 5

Related Questions