handle Python 3.5/3.6 differences so we always have a UTF-8 string

MS-2855/keylogger-mettle-extension
Brent Cook 2018-02-21 21:54:27 -06:00
parent 78822fd799
commit 3f88e59516
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def report_vuln(ip, name, **opts):
def run(metadata, module_callback):
req = json.loads(os.read(0, 10000))
req = json.loads(os.read(0, 10000).decode("utf-8"))
if req['method'] == 'describe':
rpc_send({'jsonrpc': '2.0', 'id': req['id'], 'response': metadata})
elif req['method'] == 'run':