From 7c7d904de2fff6908a313cd5a9e71d94cd283b85 Mon Sep 17 00:00:00 2001 From: Justin Bollinger Date: Fri, 26 Jan 2018 15:23:55 -0500 Subject: [PATCH] updated EOL characters and removed tabs --- wordlist_optimizer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wordlist_optimizer.py b/wordlist_optimizer.py index 3cd17d0..768e0e0 100755 --- a/wordlist_optimizer.py +++ b/wordlist_optimizer.py @@ -10,7 +10,7 @@ rli_bin = "hashcat-utils/bin/rli.app" # Help def usage(): - print "usage: python %s " % sys.argv[0] + print("usage: python %s " % sys.argv[0]) def lineCount(file): try: @@ -35,7 +35,7 @@ def main(): # Get list of wordlists from argument for wordlist in input_list: - print wordlist.strip() + print(wordlist.strip()) # Parse wordlists by password length into "optimized" if len(os.listdir(destination)) == 0: @@ -45,7 +45,7 @@ def main(): os.mkdir("/tmp/splitlen") splitlenProcess = subprocess.Popen("%s /tmp/splitlen < %s" % (splitlen_bin, wordlist), shell=True).wait() - # Copy unique passwords into "optimized" + # Copy unique passwords into "optimized" for file in os.listdir("/tmp/splitlen"): if not os.path.isfile(destination + "/" + file): shutil.copyfile(file, destination)