#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : superviseWatch # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # [https://www.perplexity.ai](https://www.perplexity.ai) # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== # intra ipFilter="grep -v 10.90.6 " # MkChapuis ipv4 ipFilter="${ipFilter}|grep -v 92.135.152.249" # AjOffice ipv4/ipv6 ipFilter="${ipFilter}|grep -v 37.67.208.111 | grep -v 2a02:842a:285a:9201" # DrChapuis ipv6 ipFilter="${ipFilter}|grep -v 2001:861:2d31:4120:aef1:dfff:fe79:24fe" # Jocelyne ipFilter="${ipFilter}|grep -v 217.67.149.15" # Quentin ipFilter="${ipFilter}|grep -v 2a01:cb11:8078:9768:f0d6:e66d:56ca:9374" # AbdelKdr ipFilter="${ipFilter}|grep -v 2a01:e0a:cac:8990:45b6:4cd:7741:1901" ipFilter="${ipFilter}|grep -v 2a02:842b:6720:6b01:d0b3:4b72:fc1f:5d9c" #ipFilter="${ipFilter}|grep -v ' - - '" sortCmd="cut -f2- -d'['|LC_ALL=C sort -t'/' -k 3,4n -k 2,3M -k 1,2n -k 3.6,2n " #sortCmd="LC_ALL=C sort " for domain in $(ls /srv/httpd/var/log/apache2);do ( [ "adri1debarras.fr" = "${domain}" ] || [ "quinox.fr" = "${domain}" ] ) && continue; # echo ==================== domain:$domain / /srv/httpd/var/log/apache2/${domain}/www_https-access.log echo ==================== domain:$domain ====== # cat /srv/httpd/var/log/apache2/${domain}/www_https-access.log | ${ipFilter} | grep -v ' - - ' | sort | uniq | tail # /bin/sh -c "cat /srv/httpd/var/log/apache2/${domain}/www_https-access.log | ${ipFilter} | sort | uniq | tail -n 1" # /bin/sh -c "cat /srv/httpd/var/log/apache2/${domain}/www_https-access.log | ${ipFilter} | ${sortCmd} | head | tail -n 1" /bin/sh -c "cat /srv/httpd/var/log/apache2/${domain}/www_https-access.log | ${ipFilter} | ${sortCmd} | tail -n 1" done