One Hat Cyber Team
Your IP :
216.73.216.58
Server IP :
50.6.197.111
Server :
Linux server-631610.officedataghana.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
Server Software :
Apache
PHP Version :
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
scripts
/
Edit File:
cleanupmysqlprivs
#!/bin/bash BINARY=$(which mysql 2>/dev/null) [[ -h $BINARY || -z $BINARY ]] && BINARY=$(which mariadb) echo -n "Cleaning up mysql privs. Please ignore errors about non-existent columns as you may have an older version of mysql....." $BINARY -v -f mysql <<EOM UPDATE user SET Create_priv='N' WHERE Create_priv='Y' AND User != 'root'; UPDATE user SET Create_tmp_table_priv='N' WHERE Create_tmp_table_priv='Y' AND User != 'root'; UPDATE user SET Lock_tables_priv='N' WHERE Lock_tables_priv='Y' AND User != 'root'; UPDATE user SET Execute_priv='N' WHERE Execute_priv='Y' AND User != 'root'; EOM ADMIN=$(which mysqladmin 2>/dev/null) [[ -h $ADMIN || -z $ADMIN ]] && ADMIN=$(which mariadb-admin) $ADMIN reload echo "Done."
Simpan