mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 04:54:26 +01:00
fixed style issues
This commit is contained in:
parent
4a084a9cac
commit
e636ba5fc9
@ -1,3 +0,0 @@
|
||||
192.168.0.2
|
||||
192.168.0.3
|
||||
192.168.1.2
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user