(self, context)
| 91 | yield from self._gen_hit(context, name=k, secret=v, type="url") |
| 92 | |
| 93 | def node_Compare(self, context): |
| 94 | if not len(context.node.ops) == 1: |
| 95 | return |
| 96 | elif not context.node.ops[0]["_type"] == "Eq": |
| 97 | return |
| 98 | |
| 99 | if type(context.node.left) == str: |
| 100 | var = context.node.left |
| 101 | |
| 102 | if not isinstance(context.node.comparators[0], (str, String)): |
| 103 | return |
| 104 | |
| 105 | value = str(context.node.comparators[0]) |
| 106 | if SECRET_REGEX.match(var): |
| 107 | yield from self._gen_hit(context, name=var, secret=value) |