From 10b215b79781c4cb319da689a9f2c3040c170432 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 3 May 2017 13:51:09 -0400 Subject: [PATCH] Rest API fix --- empire | 2 +- setup/bomutils | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 160000 setup/bomutils diff --git a/empire b/empire index 40ead78..a24a607 100755 --- a/empire +++ b/empire @@ -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) diff --git a/setup/bomutils b/setup/bomutils new file mode 160000 index 0000000..3f7dc2d --- /dev/null +++ b/setup/bomutils @@ -0,0 +1 @@ +Subproject commit 3f7dc2dbbc36ca1c957ec629970026f45594a52c