Skip to content

Gared/ether-scan

Repository files navigation

Etherscan (an etherpad scanner)

Use this tool to scan your etherpad instance to get some insights and test if there is any misconfiguration.

What is this tool doing?

  • Check the "Server" header to see if the revision of etherpad is returned
  • Check the API version (pad.example.com/api)
  • Check the etherpad version
  • Check if the pads are publicly accessible
  • Check if the server is healthy (pad.example.com/health)
  • Check if the admin area is accessible with default credentials (pad.example.com/admin)
  • Check if any (frontend) plugins are installed
  • Check if the server is running since a long time (pad.example.com/stats)

Try it out

You can try this tool out on the https://scanner.etherpad.org which is using this library.

Requirements

You need PHP 8.1 or higher to run this tool.

Usage

Docker

Directly download and run this docker image to scan your instance

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

Clone

Clone this repository and install dependencies

composer install

Next run this command to scan your instance

bin/console.php ether:scan http://localhost: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

You can also install this tool with composer

composer require gared/ether-scan