From f3e50a2f9f8dbea7352d0a013acf36540166ed36 Mon Sep 17 00:00:00 2001 From: Vincent Rose Date: Wed, 15 Apr 2020 20:16:08 -0700 Subject: [PATCH 1/2] hash the file name for electron store (#17) --- src/store/electron-store.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/store/electron-store.js b/src/store/electron-store.js index 3feaffc..c58c3cd 100644 --- a/src/store/electron-store.js +++ b/src/store/electron-store.js @@ -9,6 +9,11 @@ export let namespacedElectronStore = null; export default store; +/** + * create an electron store namespaced to the current url. + * The url is hashed since windows is more picky and doesn't allow : + * @param {string} url empire url + */ export function initNamespacedStore(url) { - namespacedElectronStore = new Store({ name: url }); + namespacedElectronStore = new Store({ name: btoa(url) }); } From 9775ff75b4485fcf94d67d424230f8a1e79467a7 Mon Sep 17 00:00:00 2001 From: Vince Rose Date: Wed, 15 Apr 2020 20:19:20 -0700 Subject: [PATCH 2/2] package.json and changelog --- package.json | 2 +- src/views/CHANGELOG.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 80ec628..3f67c62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starkiller", - "version": "1.1.0", + "version": "1.1.1", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/src/views/CHANGELOG.md b/src/views/CHANGELOG.md index 8f5fe63..523cf0c 100644 --- a/src/views/CHANGELOG.md +++ b/src/views/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] - 2020-04-15 +- Corrected an issue with writing to electron-store in Windows [@vinnybod](https://github.com/vinnybod) [#17](https://github.com/BC-SECURITY/Starkiller/pull/17) + ## [1.1.0] - 2020-04-13 - Added Module Descriptions to the Modules tab [@logicsec](https://github.com/logicsec) [#13](https://github.com/BC-SECURITY/Starkiller/pull/13) - Added a reporting tab based on Empire's 3.1.5 reporting endpoint [@vinnybod](https://github.com/vinnybod) [#14](https://github.com/BC-SECURITY/Starkiller/pull/14)