Exemple #1
0
def menu():
    try:
        print("""\033[96mWhat do you want to check?
    1. Password Hashes      3. About Author
    2. Hash Leaked          4. Exit""")
        print()

        choice = input('Enter your choice (1-4): ')
        if choice == '1':
            password = input('\nEnter or paste a password you want to check: ')
            hashes = leakz.hashes_from_password(password)
            print("""\n\033[93mIT LEAKED!!! The Hash codes of the Password is:
   MD5: """ + hashes['md5'] + """
  SHA1: """ + hashes['sha1'] + """
SHA224: """ + hashes['sha224'] + """
SHA256: """ + hashes['sha256'] + """
SHA384: """ + hashes['sha384'] + """
SHA512: """ + hashes['sha512'] + """""")
            back()

        elif choice == '2':
            hash = input('\nEnter or paste a hash code you want to check: ')
            password = leakz.password_from_hash(hash)
            print('\n\033[93mTHAT HASH CODE HAS BEEN LEAKED! It means: ' +
                  password)
            back()

        elif choice == '3':
            print(
                """\033[93mLeaked? 1.2 - A Checking tool for Hash codes and Passwords leaked

    AUTHOR: https://GitHackTools.blogspot.com
            https://twitter.com/SecureGF
            https://fb.com/TVT618
            https://plus.google.com/+TVT618""")
            back()

        elif choice == '4':
            print('\033[93mRemember https://GitHackTools.blogspot.com')
            exit(0)

        else:
            print('Invalid choice\n')
            menu()

    except KeyboardInterrupt:
        print("\nExiting...")
        exit(0)
    except leakz.exceptions.LeakzRequestException:
        print('\033[91mYour Internet Offline!!!')
        exit(1)
    except leakz.exceptions.LeakzJSONDecodeException:
        print('\033[93mCongratulations! It was not leaked!!!')
        print()
        menu()
Exemple #2
0
def test_hashes_from_password() -> None:
    response = leakz.hashes_from_password(password)
    assert response.get("md5") == hashlib.md5(password.encode()).hexdigest()
    assert response.get("sha1") == hashlib.sha1(password.encode()).hexdigest()
    assert response.get("sha224") == hashlib.sha224(
        password.encode()).hexdigest()
    assert response.get("sha256") == hashlib.sha256(
        password.encode()).hexdigest()
    assert response.get("sha384") == hashlib.sha384(
        password.encode()).hexdigest()
    assert response.get("sha512") == hashlib.sha512(
        password.encode()).hexdigest()
Exemple #3
0
def menu():
    try:
        print("""\033[96mWhat do you want to check?
    1. Password Hashes      4. Update Leaked?
    2. Hash Leaked          5. About Author
    3, Email Leaked         6, Exit (or just need Crtl+C)
    """)

        choice = input('Enter your choice (1-6): ')
        if choice == '1':
            password = input('\nEnter or paste a password you want to check: ')
            hashs = leakz.hashes_from_password(password)
            print("""\n\033[93mIT LEAKED!!! The Hash codes of the Password is:
[-] MD5: """ + hashs['md5'] + """
[-] SHA1: """ + hashs['sha1'] + """
[-] SHA224: """ + hashs['sha224'] + """
[-] SHA256: """ + hashs['sha256'] + """
[-] SHA384: """ + hashs['sha384'] + """
[-] SHA512: """ + hashs['sha512'] + """""")
            back()

        elif choice == '2':
            hashcode = input(
                '\nEnter or paste a hash code you want to check: ')
            passwd = leakz.password_from_hash(hashcode)
            print('\n\033[93m[-] THAT HASH CODE HAS BEEN LEAKED! It means:',
                  passwd)
            back()

        elif choice == '3':
            email = input('\nEnter or paste a email you want to check: ')
            info = leakz.leaked_mail(email)
            print(
                """\n\033[93m[-] THAT EMAIL HAS BEEN LEAKED!
    It was used for:""", info)
            back()

        elif choice == '4':
            os.system('git pull')
            print('\n\033[93m[+] Leaked updated!')
            back()

        elif choice == '5':
            print(
                """\033[93mLeaked? 3.0 - A Checking tool for Hash codes and Passwords leaked

    AUTHOR: https://GitHackTools.blogspot.com
            https://twitter.com/SecureGF
            https://fb.com/githacktools
            https://plus.google.com/+TVT618
            
  MODIFIER: Technical Dada
            https://technicaldada.in
            https://facebook.com/technicaldada.in/
            https://github.com/TechnicalDada""")
            back()

        elif choice == '6':
            print("\033[93m[+] Don't forget https://TechnicalDada.in")
            exit(0)

        else:
            print('?\n')
            menu()

    except KeyboardInterrupt:
        back()
    except leakz.exceptions.LeakzRequestException:
        print('\033[91m[!] Your Internet Offline!!!')
        exit(1)
    except leakz.exceptions.LeakzNotLeaked:
        print('\033[93m[+] Congratulations! It was not leaked!!!')
        print()
        menu()
    except leakz.exceptions.LeakzJSONDecodeException:
        print('\033[93m[+] Congratulations! It was not leaked!!!')
        print()
        menu()
    except AttributeError:
        print('\033[93m[+] Congratulations! It was not leaked!!!')
        print()
        menu()