Files
rmm-backend/commands.json

63 lines
2.6 KiB
JSON

{
"nt": {
"whoami": ["whoami"],
"ls": ["cmd.exe", "/c", "dir"],
"echo": ["cmd.exe", "/c", "echo", "The prototype executed the echo command successfully on Windows!"],
"reboot": ["cmd.exe", "/c", "echo", "SIMULATED WINDOWS REBOOT"],
"systeminfo": ["systeminfo"],
"ipconfig": ["ipconfig"],
"date": ["cmd.exe", "/c", "date", "/t"],
"check_space": ["powershell.exe", "-Command", "Get-PSDrive -PSProvider FileSystem"],
"check_takeleap": ["python", "client_agent_prototype.py", "--check-takeleap"],
"list_takeleap": ["python", "client_agent_prototype.py", "--list-takeleap"],
"list_takeleap_shift": ["python", "client_agent_prototype.py", "--list-takeleap-sub", "SHIFT"],
"list_takeleap_errors": ["python", "client_agent_prototype.py", "--list-takeleap-sub", "Error_Videos"],
"list_takeleap_upload": ["python", "client_agent_prototype.py", "--list-takeleap-sub", "UPLOAD_FOLDER"]
},
"posix": {
"whoami": ["whoami"],
"ls": ["ls", "-la"],
"echo": ["echo", "The prototype executed the echo command successfully on POSIX/WSL!"],
"pwd": ["pwd"],
"date": ["date"],
"time": ["date", "+%T"],
"systeminfo": ["uname", "-a"],
"ipconfig": ["ip", "addr"],
"check_space": ["df", "-h"],
"memory": ["free", "-h"],
"ps": ["ps", "aux"],
"kill_python": ["pkill", "-9", "python"],
"ping_google": ["ping", "-c", "4", "google.com"],
"env": ["env"],
"hostname": ["hostname"],
"reboot": ["sudo", "reboot"],
"restart_mysql": ["sudo", "systemctl", "restart", "mysql"],
"mysql_status": ["sudo", "systemctl", "status", "mysql"],
"repair_mysql": [
"sudo",
"mysqlcheck",
"--defaults-file=/root/.my.cnf",
"--auto-repair",
"--optimize",
"Test_seekright",
"tbl_site_anomaly"
],
"repair_mysql_db": [
"sudo",
"mysqlcheck",
"--defaults-file=/root/.my.cnf",
"--auto-repair",
"--optimize",
"Test_seekright"
],
"storage_devices": ["lsblk"],
"mounted_disks": ["df", "-hT"],
"netstat": ["ss", "-tulnp"],
"check_takeleap": ["python3", "/opt/seekright-agent/client_agent_prototype.py", "--check-takeleap"],
"list_takeleap": ["python3", "/opt/seekright-agent/client_agent_prototype.py", "--list-takeleap"],
"list_takeleap_shift": ["python3", "/opt/seekright-agent/client_agent_prototype.py", "--list-takeleap-sub", "SHIFT"],
"list_takeleap_errors": ["python3", "/opt/seekright-agent/client_agent_prototype.py", "--list-takeleap-sub", "Error_Videos"],
"list_takeleap_upload": ["python3", "/opt/seekright-agent/client_agent_prototype.py", "--list-takeleap-sub", "UPLOAD_FOLDER"]
}
}