From 2554afc31d9e0ef9fc5ccce0e9888adaf015965a Mon Sep 17 00:00:00 2001 From: be1807v Date: Mon, 9 Nov 2020 12:10:33 +0100 Subject: [PATCH] v2.5.5 --- README.md | 4 ++-- cth.py | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) mode change 100644 => 100755 cth.py diff --git a/README.md b/README.md index 9d8e2c1..0d586d8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Crack The Hash Ultra fast hashcracking tool written in Python3 -# Update [v2.5.2] -- Moved the update location and fixed a little issue +# Update [v2.5.5] +- Fixed a some little issues # Description A powerfull hash cracker that is written in python3! The cracker currently supports only a limited amount of hash types (more hash types will eventually follow!). The cracking speed depends on your hardware or on the wordlist, you can choose. I hope you enjoy it! Feedback on the tool is appreciated! Also, feel free to contribute and make a pull request! That's why I choosed for Open Source :)! diff --git a/cth.py b/cth.py old mode 100644 new mode 100755 index f763ec1..43c1511 --- a/cth.py +++ b/cth.py @@ -2,9 +2,9 @@ #################################################### # # -# Code made by @BE1807 # +# Code made by @BE1807V # # (40e219a80dfa2239c096e18bca46fd15) :) # -# # +# # #################################################### from concurrent.futures import wait, FIRST_COMPLETED from pebble import ProcessPool @@ -23,7 +23,8 @@ import sys import os -version = "2.5.2" +version = "2.5.5" +rows, columns = os.popen("stty size", "r").read().split() parser = argparse.ArgumentParser(prog="cth.py", usage="./%(prog)s -H [OPTIONS] -T -w ", description="Ultra fast hashcracking tool written in Python3", epilog="Thank you for using this tool! Please take a moment and give some feedback on the tool: @BE1807V or be1807v@pm.me") parser.add_argument("-H", "-hash", metavar="hash", default="", help="Your hash that you want to crack") @@ -47,7 +48,7 @@ list_types = args.L update = args.u interactive = args.I -line = "-" * 110 +line = "-" * int(columns) startTime = time.time() class color: @@ -86,7 +87,7 @@ def typeText(text, delay): if update == True: file = os.path.abspath("cth.py") - url = "https://raw.githubusercontent.com/be1807v/cth/master/cth.py" + url = "https://github.com/be1807v/cth/releases/download/v" + version + "/cth.py" if os.path.isfile(file) == False: print(color.RED + "[-] Error! I could not find the script to update! Please provide the installation path:" + color.END) @@ -412,3 +413,4 @@ def readNormal(): sys.exit() except TypeError: print(color.RED + "\n[-] Wrong value type given! Please kindly check what values you gave in." + color.END) + sys.exit()