forked from p15670423/monkey
Merge remote-tracking branch 'origin/develop' into feature/report-backend
# Conflicts: # monkey_island/cc/resources/monkey.py
This commit is contained in:
commit
3b30cb9f2d
|
@ -38,8 +38,10 @@ class ShellShockExploiter(HostExploiter):
|
||||||
|
|
||||||
def exploit_host(self):
|
def exploit_host(self):
|
||||||
# start by picking ports
|
# start by picking ports
|
||||||
candidate_services = {service: self.host.services[service] for service in self.host.services if
|
candidate_services = {
|
||||||
self.host.services[service]['name'] == 'http'}
|
service: self.host.services[service] for service in self.host.services if
|
||||||
|
('name' in self.host.services[service]) and (self.host.services[service]['name'] == 'http')
|
||||||
|
}
|
||||||
|
|
||||||
valid_ports = [(port, candidate_services['tcp-' + str(port)]['data'][1]) for port in self.HTTP if
|
valid_ports = [(port, candidate_services['tcp-' + str(port)]['data'][1]) for port in self.HTTP if
|
||||||
'tcp-' + str(port) in candidate_services]
|
'tcp-' + str(port) in candidate_services]
|
||||||
|
|
|
@ -54,6 +54,7 @@ class Monkey(flask_restful.Resource):
|
||||||
def post(self, **kw):
|
def post(self, **kw):
|
||||||
monkey_json = json.loads(request.data)
|
monkey_json = json.loads(request.data)
|
||||||
monkey_json['creds'] = []
|
monkey_json['creds'] = []
|
||||||
|
monkey_json['dead'] = False
|
||||||
if 'keepalive' in monkey_json:
|
if 'keepalive' in monkey_json:
|
||||||
monkey_json['keepalive'] = dateutil.parser.parse(monkey_json['keepalive'])
|
monkey_json['keepalive'] = dateutil.parser.parse(monkey_json['keepalive'])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue