forked from fportantier/vulpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a58f64
commit 9e33700
Showing
2 changed files
with
17 additions
and
151,672 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 |
---|---|---|
@@ -1,13 +1,22 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import hashlib | ||
|
||
algorithm = sys.argv[1] | ||
h = sys.argv[2] | ||
import click | ||
|
||
@click.command() | ||
@click.argument('algorithm', type=click.Choice(sorted(hashlib.algorithms_available))) | ||
@click.argument('digest') | ||
def crack_cvv(algorithm, digest): | ||
|
||
for number in range(0, 1000): | ||
cvv = "{:03}".format(number).encode() | ||
result = hashlib.new(algorithm, cvv).hexdigest() | ||
if digest == result: | ||
print('Cracked! CVV:', cvv.decode()) | ||
break | ||
|
||
for number in range(0, 1000): | ||
cvv = "{:03}".format(number).encode() | ||
result = hashlib.new(algorithm, cvv).hexdigest() | ||
if h == result: | ||
print('Cracked! CVV:', cvv.decode()) | ||
break | ||
|
||
if __name__ == '__main__': | ||
crack_cvv() |
Oops, something went wrong.