The-Viper-One / PsMapExec

A PowerShell tool that takes strong inspiration from CrackMapExec / NetExec
https://viperone.gitbook.io/pentest-everything/psmapexec
BSD 2-Clause "Simplified" License
785 stars 92 forks source link

Incorrect Username and Password Error #4

Closed raghavmishra closed 8 months ago

raghavmishra commented 8 months ago

Running into an issue when I provide Username and password from commandline. It uses local auth even though the creds are provided using commandline. PsMapExec -Method SMB -Username <user> -Password <pass> -Domain avengershq.local -Targets All Since, it is taking local creds that's the reason I am getting invalid auth error. Please have a look at traces screenshot. Also, my computer is not part of the domain. invalid

The-Viper-One commented 8 months ago

Thanks for raising this. We have not really tested PsMapExec from the perspective of a non-domain joined system. Essentially it is using your current credentials to attempt a bind to LDAP which of course are not valid for the domain when using a local account.

I will replicate this issue in my lab and update you.

The-Viper-One commented 8 months ago

@raghavmishra please try the latest commit in the main branch. This should now (hopefully) address the issue.

raghavmishra commented 8 months ago

Sure, I will try it.

raghavmishra commented 8 months ago

It is working. Thank you.