Compiling stealth Web programs (taking PHP as an example) _ PHP Tutorial

Source: Internet
Author: User
Compile a stealth Web program (taking PHP as an example ). This year, I have been writing a lot of things without motivation. you can see it. Basically, the CGI scanner (this includes the vast majority of SQL injection detection tools and the background Upload database scanner) it's been hard to write things over the past year. you can see it.

Basically, CGI scanners (this includes the vast majority of SQL injection detection tools, background/upload/database scanners)
All of them are determined by judging the HTTP response message code, that is, 200,404,400, and I believe I don't need to talk about HTTP here.

When the default browser encounters 40x or 50x, it will give you a default error page, but after "show Friendly HTTP error message" (IE) is canceled, the information in these error messages will be displayed (so there is no difference with the normal page ).

In this way, you can use the PHP header function to perform a trick:


Ob_start ();
Header ("HTTP/1.1 404 Not Found ");
?>




Sample


This is just a sample, created by fragment er!


I don't know if anyone has mentioned this before. I think it can be used to hide some background pages or backdoors.

(Remember to cancel "show Friendly HTTP error message", in IE)

Hey, cool, let's take a look at this stuff. basically, CGI scanners (this includes the vast majority of SQL injection detection tools, background/upload/database scanners) all...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.