For details about the local inclusion of PHP-Linux Enterprise Application-Linux server application, refer to the following. Author: Ryat
When local inclusion is used, % 00 is often used to truncate the subsequent string, but % 00 is escaped when GPC is ON. Is there any other method?
In fact, it has been mentioned before that a certain number of/break through the operating system's limit on the length of the file name is used to cut off the subsequent strings.
It is mentioned in this article that it can only be used in windows. In fact, it can be used in some Linux Hosts, but the number of "/" is more (to make the file path name length greater than 4096 bytes ), take a look at the following code snippet:
CODE: $ A = '';
For ($ I = 0; $ I <= 4071; $ I ++ ){
$ A. = '/';
}
$ A = 'test.txt '. $ a; // The complete path is/var/www/test/test.txt.
Require_once ($ a. '. php ');
?> |