Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

FilippoRanza
Copy link

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

@@ -0,0 +1,3 @@
192.168.0.2
Copy link
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
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

kickthemout.py Outdated Show resolved Hide resolved
kickthemout.py Outdated

def target_files(option, opt, value, parser):
with open(value) as file:
addr_list = file.readlines()
Copy link
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
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

kickthemout.py Outdated Show resolved Hide resolved
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
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
Copy link
Owner

k4m4 commented May 18, 2019

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!

Copy link

@MajiOSx MajiOSx left a comment

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.

None yet

3 participants