-
Notifications
You must be signed in to change notification settings - Fork 23.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1030 from Sevada797/master
Added file SecLists/Fuzzing/0-999999-hashgen.py
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 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,55 @@ | ||
import hashlib | ||
|
||
# Made by Sevada797 | ||
|
||
# Open the output file in write mode | ||
with open("0_999999_hashes.txt", "w") as output_file: | ||
# Loop from 0 to 999999 | ||
for i in range(1000000): | ||
# Convert the number to a string | ||
number_str = str(i) | ||
|
||
# Generate MD5 hash | ||
md5_hash = hashlib.md5() | ||
md5_hash.update(number_str.encode('utf-8')) | ||
md5_hex = md5_hash.hexdigest() | ||
|
||
# Generate SHA-1 hash | ||
sha1_hash = hashlib.sha1() | ||
sha1_hash.update(number_str.encode('utf-8')) | ||
sha1_hex = sha1_hash.hexdigest() | ||
|
||
# Generate SHA-224 hash | ||
sha224_hash = hashlib.sha224() | ||
sha224_hash.update(number_str.encode('utf-8')) | ||
sha224_hex = sha224_hash.hexdigest() | ||
|
||
# Generate SHA-256 hash | ||
sha256_hash = hashlib.sha256() | ||
sha256_hash.update(number_str.encode('utf-8')) | ||
sha256_hex = sha256_hash.hexdigest() | ||
|
||
# Generate SHA-384 hash | ||
sha384_hash = hashlib.sha384() | ||
sha384_hash.update(number_str.encode('utf-8')) | ||
sha384_hex = sha384_hash.hexdigest() | ||
|
||
# Generate SHA-512 hash | ||
sha512_hash = hashlib.sha512() | ||
sha512_hash.update(number_str.encode('utf-8')) | ||
sha512_hex = sha512_hash.hexdigest() | ||
|
||
# Generate SHA-3-256 hash | ||
sha3_256_hash = hashlib.sha3_256() | ||
sha3_256_hash.update(number_str.encode('utf-8')) | ||
sha3_256_hex = sha3_256_hash.hexdigest() | ||
|
||
# Generate BLAKE2b hash | ||
blake2b_hash = hashlib.blake2b() | ||
blake2b_hash.update(number_str.encode('utf-8')) | ||
blake2b_hex = blake2b_hash.hexdigest() | ||
|
||
# Write the number and its hashes to the file | ||
output_file.write(f"{number_str}: MD5={md5_hex}, SHA-1={sha1_hex}, SHA-224={sha224_hex}, SHA-256={sha256_hex}, SHA-384={sha384_hex}, SHA-512={sha512_hex}, SHA3-256={sha3_256_hex}, BLAKE2b={blake2b_hex}\n") | ||
|
||
print("Hashes generated and written to 0_999999_hashes.txt") |
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,14 @@ | ||
## 0-999999-hashgen.py | ||
|
||
```This tool generates a list of hashes for all numbers from 0 to 999999, and stores them in 0_999999_hashes.txt. The resulting file is aproximately 600MB in size.``` | ||
|
||
#### The hashes it generates are: | ||
|
||
* MD5 | ||
* SHA-1 | ||
* SHA-224 | ||
* SHA-256 | ||
* SHA-384 | ||
* SHA-512 | ||
* SHA-3-256 | ||
* BLAKE2b |