diff --git a/example_ip_list.txt b/example_ip_list.txt deleted file mode 100644 index d95fe99..0000000 --- a/example_ip_list.txt +++ /dev/null @@ -1,3 +0,0 @@ -192.168.0.2 -192.168.0.3 -192.168.1.2 \ No newline at end of file diff --git a/kickthemout.py b/kickthemout.py index 8c9391a..8d7db31 100644 --- a/kickthemout.py +++ b/kickthemout.py @@ -716,8 +716,7 @@ if __name__ == '__main__': ' sudo python3 kickthemout.py --target 192.168.1.10 \n'+ ' sudo python3 kickthemout.py -t 192.168.1.5,192.168.1.10 -p 30\n'+ ' sudo python3 kickthemout.py -s\n'+ - ' sudo python3 kickthemout.py -f ip_list.txt\n'+ - ' sudo python3 kickthemout.py --file ip_list.txt\n' + ' sudo python3 kickthemout.py -f IPs.txt\n'+ ' sudo python3 kickthemout.py (interactive mode)\n') parser = optparse.OptionParser(epilog=examples, @@ -740,14 +739,14 @@ if __name__ == '__main__': dest='targets', help='specify target IP address(es) and perform attack') - def target_files(option, opt, value, parser): + def targetFiles(option, opt, value, parser): with open(value) as file: - addr_list = file.readlines() - setattr(parser.values, option.dest, addr_list) + addrList = file.readlines() + setattr(parser.values, option.dest, addrList) 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') + callback=targetFiles, type='string', metavar='FILE', + dest='targets', help='read target IP address(es) from line-separated file and perform attack') (options, argv) = parser.parse_args()