Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 4dc2625

Browse files
author
byt3bl33d3r
committed
Ok so for some wierd af reason the -m flag doesn't autocomplete module paths in
bash (wtf), this is only the case for the letter m (even more wtf). if you do -p for example it autocompletes (omfg wtf) so since bash is being a bitch for no reason, I've added the --module flag as an alternative so it autocompletes module paths (bash go home you're drunk)
1 parent 6a8ab5e commit 4dc2625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crackmapexec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
msgroup = parser.add_mutually_exclusive_group()
6565
msgroup.add_argument("-p", metavar="PASSWORD", dest='password', nargs= '*', default=[], help="Password(s) or file(s) containing passwords")
6666
msgroup.add_argument("-H", metavar="HASH", dest='hash', nargs='*', default=[], help='NTLM hash(es) or file(s) containing NTLM hashes')
67-
parser.add_argument("-m", metavar='MODULE', dest='module', help='Payload module to use')
67+
parser.add_argument("-m", "--module", metavar='MODULE', dest='module', help='Payload module to use')
6868
parser.add_argument('-o', metavar='MODULE_OPTION', nargs='*', default=[], dest='module_options', help='Payload module options')
6969
parser.add_argument('--module-info', action='store_true', dest='module_info', help='Display module info')
7070
parser.add_argument("--share", metavar="SHARE", dest='share', default="C$", help="Specify a share (default: C$)")

0 commit comments

Comments
 (0)