Closed Biepa closed 2 years ago
Also seeing similar behaviors, runnning latest kali updated.
sudo crackmapexec smb 10.x.x.xxx --shares -u ''
SMB 10.X.X.XXX 445 TARGET [*] Windows Server 2012 R2 Standard 9600 x64 (name:TARGET) (domain:TARGET) (signing:False) (SMBv1:True) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cme/protocols/smb.py", line 599, in shares for share in self.conn.listShares(): File "/usr/lib/python3/dist-packages/impacket/smbconnection.py", line 382, in listShares dce.connect() File "/usr/lib/python3/dist-packages/impacket/dcerpc/v5/rpcrt.py", line 803, in connect return self._transport.connect() File "/usr/lib/python3/dist-packages/impacket/dcerpc/v5/transport.py", line 517, in connect self.tid = self.smb_connection.connectTree('IPC$') File "/usr/lib/python3/dist-packages/impacket/smbconnection.py", line 358, in connectTree return self._SMBConnection.connect_tree(share) File "/usr/lib/python3/dist-packages/impacket/smb.py", line 2831, in tree_connect_andx self.sendSMB(smb) File "/usr/lib/python3/dist-packages/impacket/smb.py", line 2662, in sendSMB self._sess.send_packet(smb.getData()) File "/usr/lib/python3/dist-packages/impacket/nmb.py", line 912, in send_packet self._sock.sendall(p.rawData()) BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/crackmapexec", line 8, in
as a data point I tried changing the min protocol from SMB2 to LANMAN1 and restarting smbd, it made no difference, same error
Fixed by #560
Describe the bug Had a "BrokenPipError" with the default, apt installed crackmapexec in Kali. Tried to reinstall via pipx and installed the apt version. Still the same error. I guess its a problem with the setup? Otherwise other users would have brought this up. But I can't see where the problem is.
To Reproduce Steps to reproduce the behavior:
cme smb <ip> --shares
Expected behavior Not throwing exceptions?!
Crackmapexec info
Additional context