Home >Backend Development >PHP Tutorial >Solution to prevent PHP from forging local files in Linux_PHP Tutorial
We only talk about the Linux system as an example, but the prevention method is effective in any system. Let’s take a look at the following operations.
You can use it like this
The code is as follows
|
Copy code
|
||||||||
http://www.xxx.com/index.php?page=../etc/passwd http://www.xxx.com/index.php?page=../../../etc/passwd http://www.xxx.com/index.php?page=..../../etc/passwd
Get more data: etc/profileetc/services /etc/passwd/etc/shadow /etc/group
/etc/security/passwd /etc/security/user |
/etc/security/environ