recon-ng icon indicating copy to clipboard operation
recon-ng copied to clipboard

Trim whitespace to make a valid IP

Open kafkaesqu3 opened this issue 4 years ago • 1 comments

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.

kafkaesqu3 avatar May 21 '20 15:05 kafkaesqu3

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!

lanmaster53 avatar Jun 08 '20 03:06 lanmaster53