We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb0043a commit c17f835Copy full SHA for c17f835
pwnlib/commandline/template.py
@@ -47,10 +47,11 @@ def detect_missing_binaries(args):
47
else:
48
if os.access(filename, os.X_OK):
49
other_files.append(filename)
50
- if len(other_files) == 1:
51
- exe = other_files[0]
52
- elif len(other_files) > 1:
53
- 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:
54
+ log.warning("Failed to find challenge binary. There are multiple binaries in the current directory: %s", other_files)
55
56
if exe != args.exe:
57
log.success("Found challenge binary %r", exe)
0 commit comments