Stevessr 在 超级蠢事:干掉了sshd服务…… 中发帖
机器刚好不在身边 🤡
刚好安装了一个面板&owu(有sudo权限的用户),来记录一下救的步骤
允许sudo不使用密码
编辑 - /etc/sudoers
%sudo ALL=(ALL:ALL) ALL →
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
添加owu函数
"""
title: Command Executor Example (dangerous)
description: This script takes a command from user input and executes it using subprocess.
**WARNING:** Executing arbitrary commands is highly insecure. Use with extreme caution.
version: ...