Skip to content

Commit

Permalink
Require a path for 'pwn template' (#947)
Browse files Browse the repository at this point in the history
Closes #943
  • Loading branch information
zachriggle committed Apr 13, 2017
1 parent 310f186 commit 80219df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pwnlib/commandline/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def main(args):
# For the SSH scenario, check that the binary is at the
# same path on the remote host.
if args.user:
if not args.path or args.exe:
log.error("Must specify --path or a exe")

s = ssh(args.user, args.host, args.port or 22, args.password or None)
s.download(args.path or args.exe)

Expand Down

0 comments on commit 80219df

Please sign in to comment.