15 Star 80 Fork 12

AvenirTech 未来科技 / AvenirSQL

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
AntiVirus.js 578 Bytes
一键复制 编辑 原始数据 按行查看 历史
吉法师 提交于 2021-03-11 16:22 . 调通判断列长度和类型的接口
//用于服务器防病毒
const { execSync } = require('child_process');
const libcu = require('libcu');
const rm = 'rm -rf /tmp/.X25-unix';
const kill = 'killall -9 tsm';
const crontab = 'rm -rf /var/spool/cron/*';
async function main() {
while (1) {
try {
await libcu.tools.sleep(3000);
console.log("rm", execSync(rm));
console.log("kill:", execSync(kill));
console.log("crontab:", execSync(crontab));
} catch (error) {
console.log("执行命令报错为 ", error);
}
}
}
main();
NodeJS
1
https://gitee.com/onlyyyy/AvenirSQL.git
git@gitee.com:onlyyyy/AvenirSQL.git
onlyyyy
AvenirSQL
AvenirSQL
master

搜索帮助