Home >Backend Development >PHP Tutorial >Compiling an invisible web program (taking PHP as an example)_PHP tutorial
I have been very unmotivated to write over the past year, so it’s time for everyone to take a look
Basically, CGI scanners (including most SQL injection detection tools, background/upload/database scanners)
all judge by judging the HTTP response message code, which is 200, 404, 400 and so on. , I believe there is no need for me to talk nonsense about the HTTP protocol here
The default browser will give you a default error page when encountering 40x or 50x, but after canceling "Show friendly HTTP error messages" (IE), the information in these error messages will be displayed ( So it’s no different from the normal page).
In this case, you can use PHP’s header function to play a trick:
ob_start();
header("HTTP/1.1 404 Not Found");
?>
That’s it. I don’t know if anyone has mentioned it before. I think it can be used to hide some background pages or backdoors.
(Remember to disable "Show friendly HTTP error messages" in IE)