~nighthawk/bw_brute

41416d4b6d05c49cf90b3e975b5279cef9d0a115 — Frank Brodbeck 4 months ago 5515379 master
f is already iterable
1 files changed, 4 insertions(+), 5 deletions(-)

M bw_brute.py
M bw_brute.py => bw_brute.py +4 -5
@@ 1,9 1,9 @@
# Copyright (c) 2020 Frank Brodbeck <fab@clacks.xyz>
# 
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
# 
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR


@@ 48,10 48,9 @@ def main(args):
    # ingest wordlist
    inwordlist = args.wordlist
    with open(inwordlist) as f:
        content = f.readlines()
        word1 = [x.strip() for x in content] 
        word1 = [x.strip() for x in f] 
    wordlist = word1
    

    print('\n[*] Starting bruteforce attack with {ncpu} workers'.format(ncpu = workers))

    with concurrent.futures.ProcessPoolExecutor(max_workers = workers) as executor: