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" "; ?> |