From c9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:08:27 +0200 Subject: add: graphs et rushs --- graphs/sql/file_archaeology/req04.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 graphs/sql/file_archaeology/req04.sql (limited to 'graphs/sql/file_archaeology/req04.sql') diff --git a/graphs/sql/file_archaeology/req04.sql b/graphs/sql/file_archaeology/req04.sql new file mode 100644 index 0000000..57d86d3 --- /dev/null +++ b/graphs/sql/file_archaeology/req04.sql @@ -0,0 +1,7 @@ +SELECT + parent_id AS folder_id, + COUNT(filename) FILTER (WHERE permissions LIKE '%__x%') AS nb_executables +FROM dtf.madelines_files +GROUP BY parent_id +HAVING COUNT(filename) FILTER (WHERE permissions LIKE '%__x%') >= 3 +ORDER BY parent_id ASC NULLS FIRST -- cgit v1.2.3