Skip to content

Commit

Permalink
Fix random failure for WafFuncGen
Browse files Browse the repository at this point in the history
  • Loading branch information
Marven11 committed Aug 25, 2024
1 parent c8c0d76 commit 2deb07d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fenjing/waf_func_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ def generate(self) -> WafFunc:
"".join(random.choices(string.ascii_lowercase, k=4)),
False,
)
while any(w in extra_content for w in replaced_keyword):
extra_content = "".join(random.choices(string.ascii_lowercase, k=4))

# WAF函数,只有在payload一定可以通过WAF时才返回True
@lru_cache(10000)
Expand Down

0 comments on commit 2deb07d

Please sign in to comment.