You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when attempting to lookup a netblock with cidr notation, an error is generated if the host bit is set.
ex. xx.xx.xx.67/24 -> will raise ValueError('%s has host bits set' % self)
to fix it, in the recon-ng/recon/core/module.py add "False" when passing the netblock string to the ipaddress.ip_network(string) function.
def cidr_to_list(self, string): import ipaddress return [str(ip) for ip in ipaddress.ip_network(string, False)]
The text was updated successfully, but these errors were encountered:
when attempting to lookup a netblock with cidr notation, an error is generated if the host bit is set.
ex. xx.xx.xx.67/24 -> will raise ValueError('%s has host bits set' % self)
to fix it, in the recon-ng/recon/core/module.py add "False" when passing the netblock string to the ipaddress.ip_network(string) function.
def cidr_to_list(self, string): import ipaddress return [str(ip) for ip in ipaddress.ip_network(string, False)]
The text was updated successfully, but these errors were encountered: