byt3bl33d3r / CrackMapExec

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

--use-kcache doesn't work properly with smb #667

Closed embargod closed 2 years ago

embargod commented 2 years ago

Describe the bug Issue with fully updated cme from source code I have trouble with using --use-kcache along with the smb (yeah, i know about updated -k option and i could inetarct with kerberos without asktgt by third party tool)

When using smb + --use-kcache can't see this structure $DOMAIN\$USER like with ldap protocol

To Reproduce

  1. update source code and poetry
  2. get ticket with third party tool
  3. import ccache ticket
  4. trying access to smb with ticket ->get strange output
  5. trying access to ldap -> all works fine
  6. when trying to manipulate with any options and modules via smb i get errors
  7. comparison with older version (when -k option was working with import ticket only) and newest version with fully updated source code

Expected behavior See in smb same structure like in ldap - $DOMAIN\$USER

Screenshots image

image

image

Crackmapexec info

mpgn commented 2 years ago

Confirmed, thanks for the report :)

image