byt3bl33d3r / CrackMapExec

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

--continue-on-success Gets "ACCESS_DENIED" After First Success #321

Closed sctf2020 closed 4 years ago

sctf2020 commented 4 years ago

Steps to reproduce

cme smb dc01.storm.ctf -u users.txt -p welcome1 --continue-on-success I'd post the output but it's of a client's network. --continue-on-success has never worked for me but I could really use it!

n00py commented 4 years ago

Yep, I've had the same issue also.

squid22 commented 4 years ago

I have the same issue... can you confirm if within the password file welcome1, you have a password with characters like !#$@%$(? It get errors on the smb and winrm module. I been testing it on a hackTheBox machine that I know the username and password is 100% accurate and it fails because the contents of the file has special characters... when I surround the password with single quotes or double quotes on the file, the errors are gone but of course the password doesn't match ...

mpgn commented 4 years ago

Working on Windows 10 - 1607 but not on Windows server 2016. I will look into it but it's probably related to impacket

image

mpgn commented 4 years ago

It's linked to smb signing, here is an example if smb signing is disabled

image

mpgn commented 4 years ago

Ok I push a fix

image