byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.45k stars 1.64k forks source link

crackmapexec produces no output #701

Closed Ourithi closed 1 year ago

Ourithi commented 1 year ago

Steps to reproduce

  1. run crackmapexec for the smb protocol

Command string used

crackmapexec --verbose smb 10.129.244.119 -u 'htb-student' -p 'HTB_@cademy_stdnt!' --pass-pol

CME verbose output (using the --verbose flag)

DEBUG:root:Passed args: {'aesKey': None, 'amsi_bypass': None, 'clear_obfscripts': False, 'codec': 'utf-8', 'computers': None, 'connectback_host': None, 'content': False, 'continue_on_success': False, 'cred_id': [], 'darrell': False, 'depth': None, 'disks': False, 'domain': None, 'enabled': False, 'exclude_dirs': '', 'exec_method': None, 'execute': None, 'export': None, 'fail_limit': None, 'force_ps32': False, 'gen_relay_list': None, 'get_file': None, 'gfail_limit': None, 'groups': None, 'hash': [], 'jitter': None, 'kdcHost': None, 'kerberos': False, 'laps': None, 'list_modules': False, 'local_auth': False, 'local_groups': None, 'loggedon_users': False, 'loggedon_users_filter': None, 'lsa': False, 'module': None, 'module_options': [], 'no_bruteforce': False, 'no_output': False, 'ntds': None, 'obfs': False, 'only_files': False, 'pass_pol': True, 'password': ['HTB_@cademy_stdnt!'], 'pattern': None, 'port': 445, 'protocol': 'smb', 'ps_execute': None, 'put_file': None, 'regex': None, 'rid_brute': None, 'sam': False, 'server': 'https', 'server_host': '0.0.0.0', 'server_port': None, 'sessions': False, 'share': 'C$', 'shares': False, 'show_module_options': False, 'smb_server_port': 445, 'smb_timeout': 2, 'spider': None, 'spider_folder': '.', 'target': ['10.129.244.119'], 'threads': 100, 'timeout': None, 'ufail_limit': None, 'use_kcache': False, 'username': ['htb-student'], 'userntds': None, 'users': None, 'verbose': True, 'wmi': None, 'wmi_namespace': 'root\\cimv2'} DEBUG Passed args: {'aesKey': None, 'amsi_bypass': None, 'clear_obfscripts': False, 'codec': 'utf-8', 'computers': None, 'connectback_host': None, 'content': False, 'continue_on_success': False, 'cred_id': [], 'darrell': False, 'depth': None, 'disks': False, 'domain': None, 'enabled': False, 'exclude_dirs': '', 'exec_method': None, 'execute': None, 'export': None, 'fail_limit': None, 'force_ps32': False, 'gen_relay_list': None, 'get_file': None, 'gfail_limit': None, 'groups': None, 'hash': [], 'jitter': None, 'kdcHost': None, 'kerberos': False, 'laps': None, 'list_modules': False, 'local_auth': False, 'local_groups': None, 'loggedon_users': False, 'loggedon_users_filter': None, 'lsa': False, 'module': None, 'module_options': [], 'no_bruteforce': False, 'no_output': False, 'ntds': None, 'obfs': False, 'only_files': False, 'pass_pol': True, 'password': ['HTB_@cademy_stdnt!'], 'pattern': None, 'port': 445, 'protocol': 'smb', 'ps_execute': None, 'put_file': None, 'regex': None, 'rid_brute': None, 'sam': False, 'server': 'https', 'server_host': '0.0.0.0', 'server_port': None, 'sessions': False, 'share': 'C$', 'shares': False, 'show_module_options': False, 'smb_server_port': 445, 'smb_timeout': 2, 'spider': None, 'spider_folder': '.', 'target': ['10.129.244.119'], 'threads': 100, 'timeout': None, 'ufail_limit': None, 'use_kcache': False, 'username': ['htb-student'], 'userntds': None, 'users': None, 'verbose': True, 'wmi': None, 'wmi_namespace': 'root\\cimv2'} DEBUG:asyncio:Using selector: EpollSelector DEBUG Using selector: EpollSelector DEBUG:root:Running DEBUG Running DEBUG:root:Started thread poller DEBUG Started thread poller DEBUG:root:Stopped thread poller DEBUG Stopped thread poller

CME Version (cme --version)

5.4.0

OS

kali 2022.4

Target OS

Detailed issue explanation

After running the command, crackmapexec just terminates without producing any output or error

mpgn commented 1 year ago

Verify that you can ping 10.129.244.119 and port 445 is open :)