From 474a1ddc464b50aeb2c4dd6875661f16d5417da7 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 13 Oct 2023 08:55:13 +0200 Subject: [PATCH] v2.4.7 Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/google/cmd.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/google/cmd.py b/pwnagotchi/google/cmd.py index cd16ee9b..09d07a24 100644 --- a/pwnagotchi/google/cmd.py +++ b/pwnagotchi/google/cmd.py @@ -46,16 +46,18 @@ def auth(): user_input = input("By completing these steps you give pwnagotchi access to your personal Google Drive!\n" "Personal credentials will be stored only locally for automated verification in the future.\n" "No one else but you have access to these.\n" - "Do you agree? \n\n[y(es)/n(o)]") + "Do you agree? \n\n[y(es)/n(o)]\n" + "Answer: ") if user_input.lower() in ('y', 'yes'): if not os.path.exists("/root/client_secrets.json"): logging.error("client_secrets.json not found in /root. Please RTFM!") return 0 try: - gauth = GoogleAuth(settings_file="/root/settings.yaml") + gauth = GoogleAuth(settings_file="settings.yaml") print(gauth.GetAuthUrl()) user_input = input("Please copy this URL into a browser, " - "complete the verification and then copy/paste the code from addressbar.") + "complete the verification and then copy/paste the code from addressbar.\n\n" + "Code: ") gauth.Auth(user_input) gauth.SaveCredentialsFile("credentials.json") except Exception as e: