mirror of
https://github.com/e9x/electron-injector.git
synced 2025-12-15 15:07:41 +01:00
use base64 encryption
to bypass scanning the asar for strings
This commit is contained in:
@@ -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();" +
|
||||
|
||||
Reference in New Issue
Block a user