ftp: update moved proto args

main
Marshall Hallenbeck 2023-05-31 09:52:15 -04:00
parent 82ffe72528
commit 464d3e8fed
1 changed files with 12 additions and 3 deletions

View File

@ -1,8 +1,17 @@
def proto_args(parser, std_parser, module_parser):
ftp_parser = parser.add_parser("ftp", help="own stuff using FTP", parents=[std_parser, module_parser])
ftp_parser.add_argument(
"--no-bruteforce",
action="store_true",
help="No spray when using file for username and password (user1 => password1, user2 => password2",
)
ftp_parser.add_argument("--port", type=int, default=21, help="FTP port (default: 21)")
ftp_parser.add_argument(
"--continue-on-success",
action="store_true",
help="continues authentication attempts even after successes",
)
# TODO: Create more options for the protocol
# cgroup = ftp_parser.add_argument_group("FTP Access", "Options for enumerating your access")
# cgroup.add_argument('--ls', metavar="COMMAND", dest='list_directory', help='List files in the directory')
cgroup = ftp_parser.add_argument_group("FTP Access", "Options for enumerating your access")
cgroup.add_argument("--ls", action="store_true", help="List files in the directory")
return parser