AuthMod
如果你正在寻找 AuthModClient,它可以在 BukkitDev 或 GitHub 上找到
这个插件的基本原理听起来可能有点傻,但在某些情况下是有效的。
人们一直在尝试并成功窃取 Minecraft 密码——足以影响你服务器的工作人员。恶意用户(即脚本小子或“l33t h4x0rs”)喜欢进入服务器,尝试暴力破解管理员密码,并利用管理员账号进行破坏。
在这种情况下,该插件变得有用。
AuthMod 使用存储在用户 .minecraft 文件夹中的证书文件,以验证任何给定玩家是否真的是他们声称的那个人。AuthMod 由两部分组成:服务端插件和客户端模组。
服务端插件确保需要安装 AuthMod 的人已正确安装,并确保证书有效。客户端模组将发送加密密钥供服务端解密。
如果标记为 AuthMod 用户的玩家未安装该插件或拥有无效证书,他们将在五秒后被踢出。在这五秒内,他们无法移动、聊天、执行命令、破坏方块,也无法与任何物体交互(右键点击)。
设置 AuthMod
唯一需要设置的权限节点是“auth.required”。如果设置了该权限且具有该权限节点的玩家连接进来,他们将需要已安装带有正确证书的 AuthMod,否则将被踢出。由于使用了新的 Plugin Channels,无论客户端还是服务端缺少 Mod/Plugin,都不会导致崩溃。
使用方法
首次加载 AuthMod 时,它会生成私钥和公钥,分别存储为 private.key 和 public.key,位于服务器的根目录中。密钥生成后,将 public.key 复制一份并重命名为 authmod.key,然后发给你的 AuthMod 用户,让他们直接放入自己的 .minecraft 文件夹中。
如果任何时候密钥泄露,只需删除 private.key 和 public.key 即可。下次插件加载时将生成新的密钥对。
源码
源代码和编译后的二进制文件可在 GitHub 上找到
AuthMod
If you're looking for AuthModClient, it can be found on BukkitDev or GitHub
The basis of this plugin may sound a little bit silly, but it is valid in some cases.
People try and succeed at stealing Minecraft passwords all the time--enough that a staff member on your server may be affected. Malicious people (i.e. script kiddies or "l33t h4x0rs") like to go to a server, try to bruteforce admin passwords, and use admin accounts to be destructive.
In this situation the plugin becomes useful.
AuthMod uses a certificate file that is stored in a user's .minecraft folder as a way to verify that any given player is really who they appear to be. There are two parts to AuthMod; the server plugin and the client mod.
The server plugin makes sure that people required to have AuthMod installed have it installed, and that the certificate is valid. The client mod sends over the encrypted key for decryption by the server.
If a player that is marked as an AuthMod user doesn't have it installed or has an invalid certificate, they will be kicked after five seconds. During these five seconds, they can't move, they can't chat, they can't do commands, they can't break blocks, and they can't interact (right-click) on anything.
Setting up AuthMod
The only permission node to set up is "auth.required". If that permission is set and a player with that permission node connects, they will be expected to have AuthMod installed with the correct certificate, else they'll be kicked. Because this uses the new Plugin Channels, there is no crashing of the client or the server if either doesn't have the Mod/Plugin.
Usage
The first time AuthMod is loaded, it will generate a private and public key, stored as private.key and public.key in the root directory of the server, respectively. After the key is generated, make a copy of public.key named authmod.key, and give this to your AuthMod users to put directly in their .minecraft folder.
If at any point the key is compromised, simply delete both private.key and public.key. New ones will be generated the next time the plugin loads.
Source
Source code and a compiled binary can be found on GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧