-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/HassiumTeam/Hassium.git
- Loading branch information
Showing
5 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Imports the Math module. Allows you to use the Math class | ||
use Math; | ||
|
||
func main () { | ||
# Array that holds all possible values | ||
dict = ["computer", "laptop"]; | ||
|
||
# The hashed password to crack | ||
passwd = "312f91285e048e09bb4aefef23627994"; | ||
|
||
# The algo that we are trying to break | ||
algo = "md5"; | ||
|
||
# Sort through the dictionary and determine if the hash matches | ||
for (x = 0; x < dict.length; x++) { | ||
line = dict[Convert.toNumber(Convert.toString(x))]; | ||
|
||
if (Math.hash(algo, line) == passwd) { | ||
println("The password is: " + line); | ||
exit(0); | ||
} | ||
} | ||
|
||
println("The hash could not be found in the dictionary."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters