Skip to content

Commit

Permalink
Rename _pattern_cypher
Browse files Browse the repository at this point in the history
  • Loading branch information
beatro0t committed Aug 24, 2021
1 parent 5531a37 commit df6e6ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/aws/attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,14 +673,13 @@ def __init__(self, skip_attacks=[], only_attacks=[],
else only_attacks)
if k not in skip_attacks
}
self.queries = {k: self._pattern_cypher(k, v, max_search_depth)
self.queries = {k: self.translate(k, max_search_depth)
for k, v in self.definitions.items()
}

def _pattern_cypher(self, name, definition,
max_search_depth=""
):
def translate(self, name, max_search_depth=""):

definition = self.definitions[name]
attack = definition["Attack"]
cypher = str()

Expand Down

0 comments on commit df6e6ab

Please sign in to comment.