Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 870 Bytes

plugin.rst

File metadata and controls

28 lines (18 loc) · 870 Bytes

插件实现

实现您自己的 hand 插件并不难,您可以参考GitHub上 mohand-plugin-expect 的实现。 您需要做的事情如下:

  1. 实现一个 mohand.hands.HandBase 的子类,用于注册您的 hand 装饰器、提供版本信息
  2. 实现一个 hand ,如 mohand-plugin-expect 中的 hand.expect
  3. setup.py 中添加一个 mohand.plugin.handentry_points

插件列表

您可以直接通过名称进行 pip 安装

mohand-plugin-expect

可用于自动化登录堡垒机完成跳转选择、账户密码输入等操作

mohand-plugin-otp

可用于提供定制化的一次性密码生成服务