From 12a2e9e4718529c026bc53d3593590b126629e99 Mon Sep 17 00:00:00 2001 From: Surferlul <66851546+Surferlul@users.noreply.github.com> Date: Tue, 4 Aug 2020 14:10:35 +0200 Subject: [PATCH] Update RockyouMask.py --- RockyouMask.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/RockyouMask.py b/RockyouMask.py index 246b0e8..797c2b9 100644 --- a/RockyouMask.py +++ b/RockyouMask.py @@ -1,5 +1,6 @@ from os import system from os import chdir +from os import name rule = open("mask.txt", "rt", encoding="Latin-1").read().split() @@ -10,12 +11,13 @@ def convert(inp): inp = inp.replace("!", "?s") 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_ == "": - pass -else: - chdir(input_) + if input_ == "": + pass + else: + chdir(input_) while True: input_ = input("s - start / h - help: ") @@ -308,7 +310,10 @@ while True: hashmode = input("Hash mode: ") 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("aaaaaaa") + " --increment") system(syntax + "?a?a?a?a?a --increment")