PortScanner icon indicating copy to clipboard operation
PortScanner copied to clipboard

Added the feature that get input through flags

Open lazy8055 opened this issue 3 years ago • 1 comments

Description

In feature/python3.8 branch, ipscanner.py in src folder is modified

Instead of getting the input from user and access the config.json file for inputs, getting the input from the user through flags is easy.So i add a feature that get the inputs through flags if any flag is not used , it get the input in the formal way.

For the user, it easy to use flags than each time changing the config.json file

Here, the range is from 0 to 255, number of thread is 8 and the ip address is 194.165.43.2

Here the '-i' flag is not used , so it get input from the user in the formal way

Flags:

  • '-i' or '--ip' flag is used to get the ip address
  • '-r' or '--range' flag is used to get range for ip (i.e: 0-255)
  • '-t' or '--thread' flag is used to get the number of threads to be used

lazy8055 avatar Oct 03 '21 15:10 lazy8055

Thanks for opening this pull request! 🤗 Are you looking for more beginner-friendly issues? Check out this repo.

Hacktoberfest2020

Open Source Love

Check out few other repos below 🚀

inspirational-quotes SimpleBio HBD Map Of India

PS: Please add @vinitshahdeo / @kashish121 / @ishika1727 as a reviewer if you haven't added.

welcome[bot] avatar Oct 03 '21 15:10 welcome[bot]