Skip to content

Read target address(es) from file#398

Open
FilippoRanza wants to merge 5 commits into
k4m4:masterfrom
FilippoRanza:master
Open

Read target address(es) from file#398
FilippoRanza wants to merge 5 commits into
k4m4:masterfrom
FilippoRanza:master

Conversation

@FilippoRanza

Copy link
Copy Markdown

added -f option, that let the user specify target addresses from a file.

Comment thread example_ip_list.txt Outdated
@@ -0,0 +1,3 @@
192.168.0.2

Copy link
Copy Markdown
Owner

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this file

Comment thread kickthemout.py Outdated
Comment thread kickthemout.py Outdated

def target_files(option, opt, value, parser):
with open(value) as file:
addr_list = file.readlines()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • addressFile instead of addr_list (camel case)

Copy link
Copy Markdown
Author

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

Comment thread kickthemout.py Outdated
Comment thread 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')

Copy link
Copy Markdown
Owner

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

@k4m4

k4m4 commented May 18, 2019

Copy link
Copy Markdown
Owner

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 - add instead of added. Thanks!

@MajiOSx MajiOSx left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants