From b42c17f0933e9c30f89605a080fdecdcc5413a5c Mon Sep 17 00:00:00 2001 From: "Remi GASCOU (Podalirius)" <79218792+p0dalirius@users.noreply.github.com> Date: Mon, 18 Dec 2023 18:00:46 +0100 Subject: [PATCH] Fixed missing api endpoint in console.py --- console.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/console.py b/console.py index 8db5efc..c248e85 100755 --- a/console.py +++ b/console.py @@ -154,10 +154,13 @@ def show_help(): except AttributeError: pass - api_endpoint = detect_api_endpoint(target=options.target, verbose=options.verbose) + api_endpoint = detect_api_endpoint( + target=options.target, + verbose=options.verbose + ) if api_endpoint is not None: - print("[+] Using API endpoint '%s'" % api_endpoint) + print("[+] Using API endpoint '%s'\n" % api_endpoint) running = True while running: @@ -176,6 +179,6 @@ def show_help(): elif len(args) == 3: remote_download(api_endpoint, remote_path=args[1], local_path=args[2]) else: - remote_exec(options.target, cmd, verbose=options.verbose) + remote_exec(api_endpoint, cmd, verbose=options.verbose) else: print("\n[!] No valid API endpoint detected, exitting...") \ No newline at end of file