From baf3e05fe1dfcb755f9cb4468754b57209087dba Mon Sep 17 00:00:00 2001 From: Kkevsterrr Date: Sat, 16 Nov 2019 11:32:36 -0500 Subject: [PATCH] Python 3.5 support for strategy DNA parsing --- actions/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/tree.py b/actions/tree.py index 6a87ac4..4303fe6 100644 --- a/actions/tree.py +++ b/actions/tree.py @@ -177,7 +177,7 @@ class ActionTree(): # it would parse out the trigger "TCP:flags:SA" and the tree as # "-tamper{TCP:flags:corrupt}" match = re.match(r"\[(\S*)\]-(\S*)|", string) - if not match or not match[0]: + if not match or not match.group(0): logger.error("Could not identify trigger or tree") return False