Skip to content

Commit 3f88e59

Browse files
committed
handle Python 3.5/3.6 differences so we always have a UTF-8 string
1 parent 78822fd commit 3f88e59

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/core/modules/external/python/metasploit

1 file changed

+1
-1
lines changed

lib/msf/core/modules/external/python/metasploit/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def report_vuln(ip, name, **opts):
2929

3030

3131
def run(metadata, module_callback):
32-
req = json.loads(os.read(0, 10000))
32+
req = json.loads(os.read(0, 10000).decode("utf-8"))
3333
if req['method'] == 'describe':
3434
rpc_send({'jsonrpc': '2.0', 'id': req['id'], 'response': metadata})
3535
elif req['method'] == 'run':

0 commit comments

Comments
 (0)