diff --git a/app/lib.js b/app/lib.js index b319453..9bc2630 100644 --- a/app/lib.js +++ b/app/lib.js @@ -91,7 +91,7 @@ function extractVaultFromFile (data) { { // attempt 5: chromium 0000056.log on MacOS // This variant is very similar to attempt 4 but there is the addition of a new metadata field, keyringsMetadata, in the vault. - const matches = data.match(/"KeyringController":\{.*?"vault":"({.*})"},/); + const matches = data.match(/"KeyringController":(\{.*?"vault":".*?=\\"\}"\})/); if (matches && matches.length) { try { const keyringControllerStateFragment = matches[1]; diff --git a/app/lib.test.js b/app/lib.test.js index e9f1ee3..4ef47e2 100644 --- a/app/lib.test.js +++ b/app/lib.test.js @@ -44,6 +44,12 @@ const FIXTURES = [ 'slight escape bracket joy globe bring teach exact mango mansion injury category', passphrase: 'password', }, + { + path: 'chromium-134-ubuntu/000003.log', + mnemonic: + 'live pupil slab senior boy release lyrics shaft lazy renew potato simple', + passphrase: 'correct horse battery staple', + }, ] const VAULTS = [ diff --git a/bundle.js b/bundle.js index a044e44..dde8269 100644 --- a/bundle.js +++ b/bundle.js @@ -98,7 +98,7 @@ function extractVaultFromFile(data) { { // attempt 5: chromium 0000056.log on MacOS // This variant is very similar to attempt 4 but there is the addition of a new metadata field, keyringsMetadata, in the vault. - var _matches3 = data.match(/"KeyringController":\{.*?"vault":"({.*})"},/); + var _matches3 = data.match(/"KeyringController":(\{.*?"vault":".*?=\\"\}"\})/); if (_matches3 && _matches3.length) { try { var _keyringControllerStateFragment = _matches3[1]; diff --git a/test/fixtures/chromium-134-ubuntu/000003.log b/test/fixtures/chromium-134-ubuntu/000003.log new file mode 100644 index 0000000..c702afa Binary files /dev/null and b/test/fixtures/chromium-134-ubuntu/000003.log differ