lanmaster53 / recon-ng

Open Source Intelligence gathering tool aimed at reducing the time spent harvesting information from open sources.
GNU General Public License v3.0
4.1k stars 646 forks source link

Trim whitespace to make a valid IP #96

Open kafkaesqu3 opened 4 years ago

kafkaesqu3 commented 4 years ago

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.

lanmaster53 commented 4 years ago

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!