print key command.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2020-04-19 20:26:05 +03:00
parent e086a2cdcc
commit 23b421ee1f
Signed by: Hesham
GPG Key ID: 74876157D199B09E

3
rsa.py
View File

@ -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)