From 23b421ee1f954402d0b97d5429ebac986a7be0ac Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sun, 19 Apr 2020 20:26:05 +0300 Subject: [PATCH] print key command. Signed-off-by: HeshamTB --- rsa.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rsa.py b/rsa.py index d592290..d22032b 100755 --- a/rsa.py +++ b/rsa.py @@ -89,6 +89,9 @@ def main(): keyName = sys.argv[2] cracked_key = crackKey2(keyName) printKey(cracked_key) + if sys.argv[1] == "print": #rsa print + printKey(readKeyFile(sys.argv[2])) + #No command exit code exit(127)