#!/usr/bin/env python ''' Copyright (C) 2020, WAFW00F Developers. See the LICENSE file for copying permission. ''' NAME = 'AnYu (AnYu Technologies)' def is_waf(self): # 定义检测 Web 应用防火墙(WAF)的方案列表。 schemes = [ # 检查响应内容中是否包含特定字符串,可能是特定 WAF 的提示信息。 self.matchContent(r'anyu.{0,10}?the green channel'), self.matchContent(r'your access has been intercepted by anyu') ] # 如果方案列表中有任何一个方案为真,则认为检测到了 WAF。 if any(i for i in schemes): return True else: return False