-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new detection script for ConfigServer (issue #682)
- Loading branch information
Ekultek
committed
Feb 1, 2020
1 parent
f612f80
commit 8d3486b
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import re | ||
|
||
|
||
__product__ = "CSF (ConfigServer Security & Firewall)" | ||
|
||
|
||
def detect(content, **kwargs): | ||
content = str(content) | ||
detection_schema = ( | ||
re.compile(r".>the.firewall.on.this.server.is.blocking.your.connection.<+", re.I), | ||
) | ||
for detection in detection_schema: | ||
if detection.search(content) is not None: | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters