Skip to content

chamewin/SHA1Crack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SHA1Crack

SHA1Crack is a Python 2.7 program for brute forcing a SHA1 hash.

Made by James Nguyen for CSC 4980/6980 Blockchains and Applications course.

Installation

OS X & Linux:

Download the latest Python 2.7 here.

If you are running other versions of Python, you need to create a virtual environment for Python 2.7.

cd ~/PATH-TO-PROJECT-FOLDER
pip install virtualenv
virutalenv -p /usr/bin/python.2.7 venv
source venv/bin/activate

Windows:

Go here for Windows instructions because Windows is inferior to OSX and Linux and I can't be bothered to write instructions.

Usage

OS X & Linux:

cd ~/PATH-TO-PROJECT-FOLDER
python hashcrack.py ARG1 ARG2
  • ARG1 is the hash you are trying to crack.

  • ARG2 is the salt in a salted hash. Leave this blank if you know the hash is not salted.

Example

alt text

Windows:

>cd C:\PATH-TO-PROJECT-FOLDER
>python hashcrack.py ARG1 ARG2
>cd C:\PATH-TO-PROJECT-FOLDER
>python improvedcrack.py ARG1 ARG2
  • ARG1 is the hash you are trying to crack.

  • ARG2 is the salt in a salted hash. Leave this blank if you know the hash is not salted.

Example

alt text

Example for improved program (improvedcrack.py) vs old (hashcrack.py)

alt text

Hash Problems

  • Testing program hash: b7a875fc1ea228b9061041b7cec4bd3c52ab3ce3

  • Medium hacker hash: 801cdea58224c921c21fd2b183ff28ffa910ce31

  • Leet hacker hash: ece4bb07f2580ed8b39aa52b7f7f918e43033ea1

    Hint (Salt term): f0744d60dd500c92c0d37c16174cc58d3c4bdd8e

Answer to Hash Problems

  • Testing program hash: letmein
  • Medium hacker hash: vjhtrhsvdctcegth
  • Leet hacker hash: harib

Improved Solution Example

alt text

About

A brute force method of cracking a SHA1 hash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages