Skip to content

Commit

Permalink
Add autocomplete to "cat" command in smbclient.py
Browse files Browse the repository at this point in the history
A small contribution to add autocomplete functionality to the `cat command, similar to `cd`.
  • Loading branch information
pedroflor authored Dec 11, 2024
1 parent 0fd9f28 commit 82576a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions impacket/examples/smbclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,9 @@ def do_get(self, filename):
raise
fh.close()

def complete_cat(self, text, line, begidx, endidx):
return self.complete_get(text, line, begidx, endidx, include=1)

def do_cat(self, filename):
if self.tid is None:
LOG.error("No share selected")
Expand Down

0 comments on commit 82576a4

Please sign in to comment.