print key command.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
e086a2cdcc
commit
23b421ee1f
3
rsa.py
3
rsa.py
@ -89,6 +89,9 @@ def main():
|
|||||||
keyName = sys.argv[2]
|
keyName = sys.argv[2]
|
||||||
cracked_key = crackKey2(keyName)
|
cracked_key = crackKey2(keyName)
|
||||||
printKey(cracked_key)
|
printKey(cracked_key)
|
||||||
|
if sys.argv[1] == "print": #rsa print <key>
|
||||||
|
printKey(readKeyFile(sys.argv[2]))
|
||||||
|
|
||||||
#No command exit code
|
#No command exit code
|
||||||
exit(127)
|
exit(127)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user