Update RockyouMask.py

This commit is contained in:
Surferlul 2020-08-04 14:10:35 +02:00 committed by GitHub
parent e0f18a17e7
commit 12a2e9e471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
from os import system from os import system
from os import chdir from os import chdir
from os import name
rule = open("mask.txt", "rt", encoding="Latin-1").read().split() rule = open("mask.txt", "rt", encoding="Latin-1").read().split()
@ -10,11 +11,12 @@ def convert(inp):
inp = inp.replace("!", "?s") inp = inp.replace("!", "?s")
return (inp) return (inp)
input_ = input("directory of hashcat64.exe (empty if current directory): ") if name != "posix":
input_ = input("directory of hashcat64.exe (empty if current directory): ")
if input_ == "": if input_ == "":
pass pass
else: else:
chdir(input_) chdir(input_)
while True: while True:
@ -308,7 +310,10 @@ while True:
hashmode = input("Hash mode: ") hashmode = input("Hash mode: ")
hashfile = input("Hash file: ") hashfile = input("Hash file: ")
syntax = ".\\hashcat64.exe -m " + hashmode + " -a 3 " + hashfile + " " if name == "posix":
syntax = "hashcat64.exe -m " + hashmode + " -a 3 " + hashfile + " "
else:
syntax = ".\\hashcat64.exe -m " + hashmode + " -a 3 " + hashfile + " "
system(syntax + convert("0000000000") + " --increment") system(syntax + convert("0000000000") + " --increment")
system(syntax + convert("aaaaaaa") + " --increment") system(syntax + convert("aaaaaaa") + " --increment")
system(syntax + "?a?a?a?a?a --increment") system(syntax + "?a?a?a?a?a --increment")