From 8db17b965bb2cc42d2154a86b86b06b1f714b949 Mon Sep 17 00:00:00 2001 From: Matthieu Patout Date: Mon, 14 Sep 2026 08:17:32 +0200 Subject: [PATCH] Only search in httpdocs --- stats-cms.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stats-cms.sh b/stats-cms.sh index 2a55614..b04d08f 100644 --- a/stats-cms.sh +++ b/stats-cms.sh @@ -1,13 +1,13 @@ #!/bin/sh # Plus besoin de ce script → https://octoforge.fr/octopuce/cmsscanner <3 # Compte le nombre de fichiers spécifiques à divers CMS pour établir grosso-modo le nombre de CMS hébergés -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name wp-config.php | wc -l | sed 's/.*/Wordpress : &/' > stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name spip.png | wc -l | sed 's/.*/SPIP : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name association.sqlite | wc -l | sed 's/.*/Garradin : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name joomla.php | wc -l | sed 's/.*/Joomla : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name drupal | wc -l | sed 's/.*/Drupal : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name popuphelp.php | wc -l | sed 's/.*/Piwigo : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name occ | wc -l | sed 's/.*/Nextcloud : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name now.json | wc -l | sed 's/.*/Guppy : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name renfilesantispam.inc | wc -l | sed 's/.*/Grav : &/' >> stats-cms.txt -/usr/bin/find /var/www/vhosts/ -maxdepth 4 -name doku.php | wc -l | sed 's/.*/Dokuwiki : &/' >> stats-cms.txt \ No newline at end of file +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name wp-config.php | wc -l | sed 's/.*/Wordpress : &/' > stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name spip.png | wc -l | sed 's/.*/SPIP : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name association.sqlite | wc -l | sed 's/.*/Garradin : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name joomla.php | wc -l | sed 's/.*/Joomla : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name drupal | wc -l | sed 's/.*/Drupal : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name popuphelp.php | wc -l | sed 's/.*/Piwigo : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name occ | wc -l | sed 's/.*/Nextcloud : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name now.json | wc -l | sed 's/.*/Guppy : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name renfilesantispam.inc | wc -l | sed 's/.*/Grav : &/' >> stats-cms.txt +/usr/bin/find /var/www/vhosts/ -maxdepth 4 -path '*/httpdocs/*' -name doku.php | wc -l | sed 's/.*/Dokuwiki : &/' >> stats-cms.txt \ No newline at end of file