mirror of
https://github.com/trustedsec/hate_crack.git
synced 2025-12-12 15:49:19 -08:00
Update wordlist_optimizer.py
Updated copy command to allow correct execution outside of the /tmp/splitlen/ folder
This commit is contained in:
@@ -66,7 +66,7 @@ def main():
|
|||||||
# Copy unique passwords into "optimized" <output directory>
|
# Copy unique passwords into "optimized" <output directory>
|
||||||
for file in os.listdir("/tmp/splitlen"):
|
for file in os.listdir("/tmp/splitlen"):
|
||||||
if not os.path.isfile(destination + "/" + file):
|
if not os.path.isfile(destination + "/" + file):
|
||||||
shutil.copyfile(file, destination)
|
shutil.copyfile("/tmp/splitlen/" + file, destination + "/" + file)
|
||||||
else:
|
else:
|
||||||
rliProcess = subprocess.Popen("%s /tmp/splitlen/%s /tmp/splitlen.out %s/%s" % (rli_bin, file, destination, file), shell=True).wait()
|
rliProcess = subprocess.Popen("%s /tmp/splitlen/%s /tmp/splitlen.out %s/%s" % (rli_bin, file, destination, file), shell=True).wait()
|
||||||
if lineCount("/tmp/splitlen.out") > 0:
|
if lineCount("/tmp/splitlen.out") > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user