root@xuanji:/# mysql -uroot -p334cc35b3c704593 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 4 Server version: 5.5.64-MariaDB-1ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show variables like "%secure_file_priv%"; +------------------+-------+ | Variable_name | Value | +------------------+-------+ | secure_file_priv | | +------------------+-------+ 1 row in set (0.00 sec)
MariaDB [(none)]>
更加确定了,就是的,查一直udf提权后的自建函数
1 2 3 4 5 6 7
MariaDB [(none)]> select * from mysql.func; +----------+-----+-------------+----------+ | name | ret | dl | type | +----------+-----+-------------+----------+ | sys_eval | 0 | mysqludf.so | function | +----------+-----+-------------+----------+ 1 row in set (0.00 sec)
1 2 3 4 5 6 7 8
MariaDB [(none)]> select sys_eval("whoami"); +--------------------+ | sys_eval("whoami") | +--------------------+ | mysql | +--------------------+ 1 row in set (0.01 sec)