Sync all scripts from website downloads — 352 scripts total

Includes updated JS challenge scripts with Claude-User whitelist,
same-site referer bypass, Blackbox-Exporter allowed bot, and all
new exporters, cheat sheets, and automation scripts.
This commit is contained in:
2026-05-25 03:31:08 +02:00
parent dbd6bf0324
commit a1a17e81a1
332 changed files with 174509 additions and 1106 deletions
+5 -5
View File
@@ -7,7 +7,7 @@
#### Author: Phil Connor ####
#### Contact: contact@mylinux.work ####
#### License: MIT ####
#### Version: 1.1 ####
#### Version: 1.11 ####
#### ####
#### Usage: ./nginx-metrics-exporter.sh [OPTIONS] ####
#############################################################
@@ -440,7 +440,7 @@ collect_process_metrics() {
# Threads
local threads
threads=$(grep -c '^Threads:' "/proc/$pid/status" 2>/dev/null || echo "0")
threads=$(grep -c '^Threads:' "/proc/$pid/status" 2>/dev/null || true)
if [[ "$threads" -eq 0 ]]; then
threads=$(grep 'Threads:' "/proc/$pid/status" 2>/dev/null | awk '{print $2}' || echo "1")
fi
@@ -631,7 +631,7 @@ collect_access_log_metrics() {
# Count by status code
local status_counts
status_counts=$(echo "$log_data" | awk '{print $9}' | grep -E '^[0-9]{3}$' | sort | uniq -c | sort -rn)
status_counts=$(echo "$log_data" | awk '{print $9}' | { grep -E '^[0-9]{3}$' || true; } | sort | uniq -c | sort -rn)
metrics_output+="# HELP nginx_http_requests_by_status_total HTTP requests by status code (from last $LOG_TAIL_LINES log lines)
# TYPE nginx_http_requests_by_status_total gauge
@@ -677,7 +677,7 @@ nginx_http_response_bytes_total $total_bytes
# Count requests by method
local method_counts
method_counts=$(echo "$log_data" | awk -F'"' '{print $2}' | awk '{print $1}' | grep -E '^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)$' | sort | uniq -c)
method_counts=$(echo "$log_data" | awk -F'"' '{print $2}' | awk '{print $1}' | { grep -E '^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)$' || true; } | sort | uniq -c)
metrics_output+="
# HELP nginx_http_requests_by_method_total HTTP requests by method (from last $LOG_TAIL_LINES log lines)
@@ -703,7 +703,7 @@ nginx_http_unique_clients $unique_ips
# Top URIs (for potential abuse detection)
local top_uris
top_uris=$(echo "$log_data" | awk -F'"' '{print $2}' | awk '{print $2}' | grep -v '^-$' | sort | uniq -c | sort -rn | head -5)
top_uris=$(echo "$log_data" | awk -F'"' '{print $2}' | awk '{print $2}' | { grep -v '^-$' || true; } | sort | uniq -c | sort -rn | head -5)
metrics_output+="
# HELP nginx_http_top_uri_requests_total Top requested URIs (from last $LOG_TAIL_LINES log lines)