Space Engineers

Space Engineers

评价数不足
Anti-Clangware (Anti-Virus)
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
399.426 KB
2019 年 8 月 5 日 下午 5:49
2021 年 2 月 19 日 下午 6:25
4 项改动说明 ( 查看 )

订阅以下载
Anti-Clangware (Anti-Virus)

描述
This script functions as an anti-virus and was developed specifically to counter the Clangware Script I developed here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1825479496

However this script should also prevent other malicious code such as mine from running on your grid.


HOW IT WORKS:
This script simply checks for programmable blocks on the current grid, or any connected grids, for programmable blocks, that you own, and aren't whitelisted. Scripts will only work on blocks of the same owner, therefore you must "donate" your malicious programmable block to your enemy in order to infect them. When a programmable block appears that isn't whitelisted, it'll be shut off, shown on HUD, and reported on the programmable block's display. It should be noted that this script is without any settings you can (intentionally) tweak.


HOW TO WHITELIST:
Whitelisting is simple, when an untrusted programmable block is disabled, it also reports the block's ID. To mark that block as trusted simply run the script manually with the block's ID as the argument.


COMMANDS
Commands are run by running the script manually with one of the following arguments:
  • RESET: Clears the whitelist.
  • ALL: Trusts all currently untrusted programmable blocks.


It should also be noted that this will save Whitelisted IDs when the world/server shuts down, and loaded upon world start.


As I said it's very simple but effective, in my opinion. I don't know how much Clangware is out there, but this should protect you from most of it. If not please let me know.
3 条留言
Acephelos  [作者] 2021 年 2 月 19 日 下午 6:31 
Script updated:

- Added the ALL command to add all untrusted programmable blocks to be whitelisted at once.
- Commands (arguments) are no longer case sensitive.
- Updated ReadMe.

Everything worked in my tests, but let me know if you run into any issues with this update.
Acephelos  [作者] 2021 年 2 月 18 日 上午 10:02 
Yeah, it's something I had thought would be nice, but hadn't implemented yet.I'll look at it this weekend and update the comments when I'm done.
William07142 2021 年 2 月 17 日 下午 8:50 
Any chance you could make a "Trust All" command?