One Hat Cyber Team
Your IP :
3.148.145.200
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
sharedrads
/
View File Name :
check_size
#!/usr/bin/bash ### calculate account size ### if [[ $1 != "" ]]; then acct=$1 echo "Quota check shows the following: `quota $acct | awk '{ print ($2*1024)/1048576 }' | grep -v -P '^0$'`" echo "Cpanel's Cache Data for $acct `cat /var/cpanel/repquota.cache|grep $acct |awk '{print $3/(1048576/1000)"M"}'`" echo "Database Information:" diff -y <(ls -d /var/lib/mysql/`echo -n $acct`_*/ | cut -d'/' -f5) <(du -h /var/lib/mysql/`echo -n $acct`_*/) else echo "Usage is: check_size accountname" fi