Stupid, stupid casting bug.

This commit is contained in:
Daniel Goldberg 2017-10-01 11:35:17 +03:00
parent 2d83657bd9
commit b910baf1d0
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ class ElasticGroovyExploiter(HostExploiter):
LOG.info("Host: %s doesn't have ES open" % host.ip_addr)
return False
major, minor, build = host.services[ES_SERVICE]['version'].split('.')
major = int(major)
minor = int(minor)
build = int(build)
if major > 1:
return False
if major == 1 and minor > 4: