From 5f35fcee6180ddf9d15cff62860218871452f5ae Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 9 Apr 2015 22:56:39 -0500 Subject: [PATCH] send --verify: tell user to include --verify on receiver too In the long run, this needs to be included in the second PAKE message, and the MitM consequences thought through. --- src/wormhole/scripts/cmd_send_file.py | 5 ++++- src/wormhole/scripts/cmd_send_text.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wormhole/scripts/cmd_send_file.py b/src/wormhole/scripts/cmd_send_file.py index 24007db..fb15c68 100644 --- a/src/wormhole/scripts/cmd_send_file.py +++ b/src/wormhole/scripts/cmd_send_file.py @@ -21,7 +21,10 @@ def send_file(args): code = args.code else: code = i.get_code(args.code_length) - print("On the other computer, please run: wormhole receive-file") + other_cmd = "wormhole receive-file" + if args.verify: + other_cmd = "wormhole --verify receive-file" + print("On the other computer, please run: %s" % other_cmd) print("Wormhole code is '%s'" % code) print() diff --git a/src/wormhole/scripts/cmd_send_text.py b/src/wormhole/scripts/cmd_send_text.py index 3617027..b10ce56 100644 --- a/src/wormhole/scripts/cmd_send_text.py +++ b/src/wormhole/scripts/cmd_send_text.py @@ -15,7 +15,10 @@ def send_text(args): code = args.code else: code = i.get_code(args.code_length) - print("On the other computer, please run: wormhole receive-text") + other_cmd = "wormhole receive-text" + if args.verify: + other_cmd = "wormhole --verify receive-text" + print("On the other computer, please run: %s" % other_cmd) print("Wormhole code is: %s" % code) print("")