0

Related to the highly critical security issue PSA-2018-001 I would like to find out who of our customers are using Drupal based on accessing the fileshare they are using. Something like using a specific "find" statement to locate Drupal 7 and 8 installations would be handy.

Cie6ohpa
  • 243
  • 3
  • 6

1 Answers1

1

You could do something like this:

find / -name "bootstrap.inc" -exec grep "VERSION" {} \;

According to this question this should be the file containing the version of Drupal. This command will search for every bootstrap.inc file in / and search for the line containing the keyword VERSION

By the way, I think your question belong to the Drupal StackExchange.

Kiwy
  • 9,415
  • 13
  • 49
  • 79
  • Based on your answer I started looking for other drupal version specific files and I found this very helpful: https://github.com/droope/droopescan/blob/master/dscan/plugins/drupal/versions.xml By calculating a md5sum on certain files one can guess which version is installed. – Cie6ohpa Mar 31 '18 at 09:19