#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : stats # 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" apacheDirLog="/srv/httpd/var/log/apache2"; mount="Aug" for day in 10 11 12;do toFound="grep \"\[${day}/${mount}/2025\"|${ipFilter}" # echo sh -c "cat $apacheDirLog/*/* | $toFound | cut -d' ' -f 1 | wc -l" # sh -c "cat $apacheDirLog/*/* | $toFound | cut -d' ' -f 1 | wc -l" # continue echo "Total $day visistes/ips:$( sh -c "cat $apacheDirLog/*/* | $toFound | cut -d' ' -f 1 | wc -l" )/$( sh -c "cat $apacheDirLog/*/* | $toFound | cut -d' ' -f 1 | sort | uniq | wc -l" ) =========================================================================" for domain in $(ls $apacheDirLog);do echo "domain:$domain visites/ips: $( sh -c "cat $apacheDirLog/$domain/* | $toFound | cut -d' ' -f 1 | wc -l" )/$( sh -c "cat $apacheDirLog/$domain/* | $toFound | cut -d' ' -f 1 | sort | uniq | wc -l" )" done done