Skip to content

Commit

Permalink
Fixed missing api endpoint in console.py
Browse files Browse the repository at this point in the history
  • Loading branch information
p0dalirius committed Dec 18, 2023
1 parent 7417266 commit b42c17f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions console.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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...")

0 comments on commit b42c17f

Please sign in to comment.