mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-27 19:04:15 +01:00
Added 'verbose' in argument parser
This will set the config variable 'verbose' to True, so we can run 'pwncat ... --verbose/-V' and have verbose output without the need to 'set vebrose True'. Because we do not have access to pwncat's local prompt if we run it as 'pwncat ...'
This commit is contained in:
parent
6738fd27a4
commit
61cf46214f
@ -80,6 +80,12 @@ def main():
|
||||
metavar="port",
|
||||
help="Alternative port number to support netcat-style syntax",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--verbose",
|
||||
"-V",
|
||||
action="store_true",
|
||||
help="Enable verbose output for the remote commands executed by `pwncat`"
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# Print the version number and exit.
|
||||
@ -90,6 +96,12 @@ def main():
|
||||
# Create the session manager
|
||||
with pwncat.manager.Manager(args.config) as manager:
|
||||
|
||||
if args.verbose:
|
||||
# set the config variable `verbose` to `True` (globally)
|
||||
manager.config.set(
|
||||
'verbose', True, True
|
||||
)
|
||||
|
||||
if args.download_plugins:
|
||||
for plugin_info in pwncat.platform.Windows.PLUGIN_INFO:
|
||||
with pwncat.platform.Windows.open_plugin(
|
||||
|
Loading…
Reference in New Issue
Block a user