Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agentx

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentx - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

lib/orders/version.js

11

lib/agent.js

@@ -260,3 +260,3 @@ 'use strict';

// TODO: 太暴力了,需要个简单的词法分析来精确判断
if (command.indexOf("|") !== -1 || command.indexOf("&") !== -1) {
if (command.indexOf("|") !== -1 || command.indexOf(">") !== -1 || command.indexOf("&") !== -1) {
that.sendResultMessage(id, new Error("命令行包含非法字符"));

@@ -290,11 +290,4 @@ return;

}
var latestReport = new Date().getTime();
setInterval(function () {
var current = new Date().getTime();
if (current - latestReport < 60 * 1000) {
// ignore
return;
}
if (that.state === AgentState.WORK) { // 未连接时忽略执行
latestReport = new Date();
order.run(function (err, params) {

@@ -317,3 +310,3 @@ if (err) {

}
}, that.reportInterval);
}, order.reportInterval || that.reportInterval);
});

@@ -320,0 +313,0 @@ };

{
"name": "agentx",
"version": "1.2.3",
"version": "1.2.4",
"description": "agentx is powered by alinode",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc