Rest API fix

mdns
chris 2017-05-03 13:51:09 -04:00
parent e581551424
commit 10b215b797
2 changed files with 2 additions and 1 deletions

2
empire
View File

@ -441,7 +441,7 @@ def start_restful_api(startEmpire=False, suppress=False, username=None, password
return make_response(jsonify({'error': 'invalid agent name'}), 400)
modulePSVersion = int(module.info['MinPSVersion'])
agentPSVersion = int(main.agents.get_language_version(sessionID))
agentPSVersion = int(main.agents.get_language_version_db(sessionID))
# check if the agent/module PowerShell versions are compatible
if modulePSVersion > agentPSVersion:
return make_response(jsonify({'error': "module requires PS version "+str(modulePSVersion)+" but agent running PS version "+str(agentPSVersion)}), 400)

1
setup/bomutils Submodule

@ -0,0 +1 @@
Subproject commit 3f7dc2dbbc36ca1c957ec629970026f45594a52c