gared/ether-scan

用于Etherpad实例的简单扫描器


README

使用此工具扫描您的etherpad实例,以获得一些见解并测试是否存在任何配置错误。

此工具在做什么?

  • 检查"服务器"标题,看是否返回了etherpad的版本
  • 检查API版本(pad.example.com/api)
  • 检查etherpad版本
  • 检查垫是否公开可访问
  • 检查服务器是否健康(pad.example.com/health)
  • 检查是否可以使用默认凭据访问管理区域(pad.example.com/admin)
  • 检查是否安装了任何(前端)插件
  • 检查服务器是否长时间运行(pad.example.com/stats)

试试看

您可以在https://scanner.etherpad.org上试用此工具,它使用此库。

需求

您需要PHP 8.1或更高版本来运行此工具。

用法

Docker

直接下载并运行此Docker镜像以扫描您的实例

docker run --rm gared/ether-scan:main bin/console.php ether:scan https://:9001

克隆

克隆此存储库并安装依赖项

composer install

然后运行此命令以扫描您的实例

bin/console.php ether:scan https://:9001
Starting scan of api...
=======================

 [INFO] No revision in server header                                                                                    

 [INFO] api version: 1.3.0                                                                                              

Starting scan of a pad...
=========================

 [INFO] Package version: 1.9.7                                                                                          

 [OK] Pads are publicly accessible                                                                                      

 [OK] Server is healthy                                                                                                 

 [INFO] Version is 1.9.7                                                                                                

 [INFO] Server running since: 2024-03-08T21:38:56+00:00                                                                 

Starting scan of admin area...
==============================

 [OK] Admin area is not accessible with admin / admin                                                                   

 [OK] Admin area is not accessible with admin / changeme1                                                               

 [OK] Admin area is not accessible with user / changeme1                                                                

Starting scan of plugins...
===========================

 [INFO] No plugins found                                                                                                

Composer

您也可以使用Composer安装此工具

composer require gared/ether-scan