ritiksahni / ASN-Eagle

A tool to discover ASN of any host and fetch IP ranges.
GNU General Public License v3.0
25 stars 7 forks source link

changed Prompt1 for IP ranges #1

Closed inveteck closed 4 years ago

inveteck commented 4 years ago

original script accepts only Y or N for prompt1. y or n or yes or no, breaks the program

ritiksahni commented 4 years ago

Thanks, I needed a fix for this :)

ritiksahni commented 4 years ago

Buddy, I just tested your changed code, there is a problem with that. Even if I select N or n (for direct exit.) it's proceeding to ask for discovered ASN and continues to save IP ranges.

inveteck commented 4 years ago

ask = input(colored("\n\nDo you want to scan for IP ranges from discovered ASN? (Y or N)\n", 'green')) # Prompt for IP ranges prompt1 = ask.lower()

if prompt1 == "y" or prompt1 == "yes": # If-elif for saving IP ranges functionality.

elif prompt1 == "n" or prompt1 == "no":

this should work perfectly