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

target needs to be first but program output says last #812

Open
muelli opened this issue Sep 30, 2023 · 0 comments
Open

target needs to be first but program output says last #812

muelli opened this issue Sep 30, 2023 · 0 comments

Comments

@muelli
Copy link

muelli commented Sep 30, 2023

Describe the bug
The program's usage says usage: crackmapexec smb [-h] [-id CRED_ID [CRED_ID ...]] ... target, i.e. with the targets mentioned last, but it seems that it is not accepting the target at last positional argument.

To Reproduce

└─$ poetry run crackmapexec smb -u Administrator -H b2c03054c306ac8fc5f9d188710b0168   192.168.225.121         
usage: crackmapexec smb [-h] [-id CRED_ID [CRED_ID ...]]
                        [-u USERNAME [USERNAME ...]] [-p PASSWORD [PASSWORD ...]]
                        [-k] [--no-bruteforce] [--continue-on-success]
                        [--use-kcache] [--log LOG] [--aesKey AESKEY [AESKEY ...]]
                        [--kdcHost KDCHOST]
                        [--gfail-limit LIMIT | --ufail-limit LIMIT | --fail-limit LIMIT]
                        [-M MODULE] [-o MODULE_OPTION [MODULE_OPTION ...]] [-L]
                        [--options] [--server {https,http}] [--server-host HOST]
                        [--server-port PORT] [--connectback-host CHOST]
                        [-H HASH [HASH ...]] [-d DOMAIN | --local-auth]
                        [--port {139,445}] [--share SHARE]
                        [--smb-server-port SMB_SERVER_PORT]
                        [--gen-relay-list OUTPUT_FILE]
                        [--smb-timeout SMB_TIMEOUT] [--laps [LAPS]] [--sam]
                        [--lsa] [--ntds [{vss,drsuapi}]]
                        [--dpapi [{nosystem,cookies} ...]] [--mkfile MKFILE]
                        [--pvk PVK] [--enabled] [--user USERNTDS] [--shares]
                        [--no-write-check]
                        [--filter-shares FILTER_SHARES [FILTER_SHARES ...]]
                        [--sessions] [--disks]
                        [--loggedon-users-filter LOGGEDON_USERS_FILTER]
                        [--loggedon-users] [--users [USER]] [--groups [GROUP]]
                        [--computers [COMPUTER]] [--local-groups [GROUP]]
                        [--pass-pol] [--rid-brute [MAX_RID]] [--wmi QUERY]
                        [--wmi-namespace NAMESPACE] [--spider SHARE]
                        [--spider-folder FOLDER] [--content]
                        [--exclude-dirs DIR_LIST]
                        [--pattern PATTERN [PATTERN ...] | --regex REGEX
                        [REGEX ...]] [--depth DEPTH] [--only-files]
                        [--put-file FILE FILE] [--get-file FILE FILE]
                        [--append-host]
                        [--exec-method {mmcexec,smbexec,wmiexec,atexec}]
                        [--dcom-timeout DCOM_TIMEOUT]
                        [--get-output-tries GET_OUTPUT_TRIES] [--codec CODEC]
                        [--force-ps32] [--no-output] [-x COMMAND | -X PS_COMMAND]
                        [--obfs] [--amsi-bypass FILE] [--clear-obfscripts]
                        target [target ...]
crackmapexec smb: error: the following arguments are required: target

But running crackmapexec smb 192.168.225.121 -u Administrator -H b2c03054c306ac8fc5f9d188710b0168 works better.

Clearly, the program's usage is misleading.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant