BlackArch / blackarch

An ArchLinux based distribution for penetration testers and security researchers.
https://www.blackarch.org
Other
2.79k stars 554 forks source link

CrackMapExec: dependency issue wuth zerologon module #3343

Closed noraj closed 2 years ago

noraj commented 2 years ago

Bug description

We have python-pylnk3 > 0.4 when it requires to be < 0.4.

$ cme smb 10.0.0.1 -u user -p pass -d domain.local -M zerologon
[-] Failed loading module at /usr/lib/python3.10/site-packages/cme/modules/spooler.py: The 'pylnk3<0.4.0,>=0.3.0' distribution was not found and is required by crackmapexec
[-] Module not found
$ pacman -Ss pylnk3                               
blackarch/python-pylnk3 0.4.2-3 [installed]
    Windows LNK File Parser and Creator.

The question is, is it an upstream issue or can we patch it.

noptrix commented 2 years ago

@noraj can you retry and let me know please?

noraj commented 2 years ago

@noptrix

$ cme smb 10.10.185.2 -u '' -p '' -M zerologon 
[-] Failed loading module at /usr/lib/python3.10/site-packages/cme/modules/spooler.py: The 'pypsrp<0.8.0,>=0.7.0' distribution was not found and is required by crackmapexec

$ pacman -Ss pypsrp                                                                                                                   
blackarch/python-pypsrp v0.5.0.r5.gc704874-2 [installed]
    PowerShell Remoting Protocol for Python.
noptrix commented 2 years ago

@noraj damn... ok let me fix this :/

noptrix commented 2 years ago

@noraj ok fixed. feel free to re-open if not...