-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read target address(es) from file #398
base: master
Are you sure you want to change the base?
Conversation
example_ip_list.txt
Outdated
@@ -0,0 +1,3 @@ | |||
192.168.0.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I believe that this file is unnecessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this file
kickthemout.py
Outdated
|
||
def target_files(option, opt, value, parser): | ||
with open(value) as file: | ||
addr_list = file.readlines() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressFile
instead ofaddr_list
(camel case)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I update all names to camel case
kickthemout.py
Outdated
|
||
parser.add_option('-f', '--file', action='callback', | ||
callback=target_files, type='string',metavar='FILE', | ||
dest='targets', help='read target IP address(es), one per line, from given file and perform attack') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I believe
read target IP address(es) from line-separated file and perform attack
sounds better
Hi there. Thank you for this. Please have a look at my review. Also, it would be nice if you could change your commit messages to imperative - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix maybe
added -f option, that let the user specify target addresses from a file.