Fix edge case when returning invalid input in EG exploiter

This commit is contained in:
Daniel Goldberg 2018-04-02 18:28:44 +03:00
parent 7f89cc753d
commit 2365f4db42
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class ElasticGroovyExploiter(HostExploiter):
""" """
result = self.attack_query(payload) result = self.attack_query(payload)
if not result: # not vulnerable if not result: # not vulnerable
return False return ""
return result[0] return result[0]
def attack_query(self, payload): def attack_query(self, payload):