Describe the bug
CME 5.1.7dev attempts to resolve a CIDR range (ex. 192.168.0.0/24) as a hostname and fails to perform any action. The issue is not present in 5.1.1dev.
To Reproduce
Steps to reproduce the behavior:
cme --verbose smb 192.168.0.0/24
See error DEBUG Error resolving hostname 192.168.0.0/24: [Errno -2] Name or service not known
Expected behavior
CME should parse the CIDR notation as a range and enumerate SMB hosts within the range.
Screenshots
Crackmapexec info
OS: Kali
Version: 5.1.7dev
Using latest release from pip.
Additional context
Ranges in dash notation (192.168.0.0-255) work as expected.
Describe the bug CME 5.1.7dev attempts to resolve a CIDR range (ex. 192.168.0.0/24) as a hostname and fails to perform any action. The issue is not present in 5.1.1dev.
To Reproduce Steps to reproduce the behavior:
cme --verbose smb 192.168.0.0/24
DEBUG Error resolving hostname 192.168.0.0/24: [Errno -2] Name or service not known
Expected behavior CME should parse the CIDR notation as a range and enumerate SMB hosts within the range.
Screenshots
Crackmapexec info
Additional context Ranges in dash notation (192.168.0.0-255) work as expected.