Skip to content

Commit

Permalink
Merge 3544203 into eb0043a
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Feb 20, 2024
2 parents eb0043a + 3544203 commit 88092be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pwnlib/commandline/template.py
Expand Up @@ -47,10 +47,11 @@ def detect_missing_binaries(args):
else:
if os.access(filename, os.X_OK):
other_files.append(filename)
if len(other_files) == 1:
exe = other_files[0]
elif len(other_files) > 1:
log.warning("Failed to find challenge binary. There are multiple binaries in the current directory: %s", other_files)
if not exe:
if len(other_files) == 1:
exe = other_files[0]
elif len(other_files) > 1:
log.warning("Failed to find challenge binary. There are multiple binaries in the current directory: %s", other_files)

if exe != args.exe:
log.success("Found challenge binary %r", exe)
Expand Down

0 comments on commit 88092be

Please sign in to comment.