recon-ng
recon-ng copied to clipboard
Trim whitespace to make a valid IP
I kept getting the error when running modules on a netblock:
[!] '1.2.3.4/29 ' does not appear to be an IPv4 or IPv6 network.
Note the trailing space. This would happen even when I manually inserted the CIDR and made sure there was no space. Not sure where/why the space was being added, so this PR removes trailing spaces.
Please submit all pull requests to the staging branch.
Also, what techniques did you use to manually insert the CIDR? I'd rather find the cause of the problem and fix it vs. patch.
Thanks!