Skip to content

Instantly share code, notes, and snippets.

@arturboyun
Created November 17, 2022 17:08
Show Gist options
  • Save arturboyun/da811b5a5bce581e25a9f6d680aa65ea to your computer and use it in GitHub Desktop.
Save arturboyun/da811b5a5bce581e25a9f6d680aa65ea to your computer and use it in GitHub Desktop.
try:
if not pIface.IsPrivateKeyReaded():
pIface.ReadPrivateKeyFile(b"Key-6.dat", b"12345677", None)
except Exception as e:
dError = eval(str(e))
print(
"Key reading failed. Error code: " + str(dError['ErrorCode']) + ". Description: " + dError['ErrorDesc'].decode(
"utf-8"))
pIface.Finalize()
EUUnload()
exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment