mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-30 20:34:15 +01:00
Fixed search command
This commit is contained in:
parent
44069b34ef
commit
de70dd04b6
@ -21,14 +21,14 @@ class Command(CommandDefinition):
|
|||||||
def run(self, args):
|
def run(self, args):
|
||||||
|
|
||||||
table = Table(
|
table = Table(
|
||||||
Column(0, header="Name", ratio=0.2),
|
Column(header="Name", ratio=0.2),
|
||||||
Column(1, header="Description", no_wrap=True, ratio=0.8),
|
Column(header="Description", no_wrap=True, ratio=0.8),
|
||||||
title="Results",
|
title="Results",
|
||||||
box=box.MINIMAL_DOUBLE_HEAD,
|
box=box.MINIMAL_DOUBLE_HEAD,
|
||||||
expand=True,
|
expand=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
for module in pwncat.modules.match(args.module):
|
for module in pwncat.modules.match(f"*{args.module}*"):
|
||||||
# Rich will ellipsize the column, but we need to squeze
|
# Rich will ellipsize the column, but we need to squeze
|
||||||
# white space and remove newlines. `textwrap.shorten` is
|
# white space and remove newlines. `textwrap.shorten` is
|
||||||
# the easiest way to do that, so we use a large size for
|
# the easiest way to do that, so we use a large size for
|
||||||
|
Loading…
Reference in New Issue
Block a user