G2A Many GEOs
SHARE
TWEET

decode_keystore.py

hg658c Dec 4th, 2017 687 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /usr/bin/env python
  2. from binascii import hexlify, unhexlify
  3. from Crypto.Cipher import AES
  4.  
  5. GetInfo1="B909AEE82462697B9981B0E4C4CE5D27C23C784CBC84BD346433F0F91CB75684E58D1427529A93D6C0B818CACBF7402FE906D103D3E42FBCA2822A3852BC28C6FA848E1264DFB1EB0C3392AE7DFD014AA0DF57496DFD38B64C0D0EC620B0153F7F781E8C71C8A897CEF330F07EBAFDB8462FA29BA80ED84ACE93A25F6C0BA82668B441C45809B9E0A105998775733E9F425A84CC4130CFDC9FC33688444A50E9B422B5DF9B567A9315D16885BCF3008C5FEA0D66F41D6A6DF673EE8A4F2F9BBE9626F53469DDFB780B5E303A1FE201CF1DE4E094C03288039A62BD6C81F6DA812FF1030C1D1EBE767EF83071496C5E3762ADF215F1CC857EEDEA743CBAFB2EE2F1BB0A1BC2D0B78A48F3100EA8D458B8EB60EECF187233BAA1F9B1D13D8DE24D0A800CB35E8D7E8B2F7296002BFCF8C0A6422F95C00193D784EC8359237B8D71EDABDFEE8325DECDEEE920227A96E6A9B01D9D584D7BF4ECAC57BFD86076D4BA276B903899D1C6C8FC0A3343500BCCF767B01748E73EC3A342C110793A0F7579B6965771AAE056ECE516690A701DDA3E1163AD9CA62B335BC02AA5CAE44508265200E79E8181AD29FF2E0F55EB3831F885D1E8D500D5F42D11BA75E02CAA57BA70C321A40D77083F3AC59F858C2C508A2407A46AC7BB4ECF236550523E232C11E579F45DE6F335E6967C028B59E19CD0BC7029D4A53219599A6535F6401403271D7F829C44A9FD324BC204B487F9D14B345695977FF7DDABB578BFEE0805076FD7EF3BF2AC108A2150A76C95F67E7A657DA1B191E3BB87651AE24A5643FFB97409D74BE90F786F430A4E68A8D9996E0D4980591E03E8DFA3C5857035A03BEC19994979C62E1EDCA89459D0A73AC0B9B535128F3A7D021EB1C4516A6C2A833A6845F6955951D451A178AF91E5A927E35A444613DC1C584190FF658706"
  6. GetInfo2="ECDB9B11526E044AF4BC652A424FD98927FDA6E63412036C2346F7F0170B19FCAFAD01FB6D9F0FEA527A59C0341D3AE2FEF1DFACFFA0D065DC21325DE78BC349C95D87810C611CE23B0CF481D56B6C634976AA7AF4A0D92185C4F717E69C7EBC812052ADABBBA28F92577044F7A51066191C183D9B26929717C92DF9F45A68212E68D70C127F747BA8279D20B116D50A752C2A3E185C9783680BE67A7101133C49930369FA6511586E127F2576480DF5A89D95A635444E02D896CDC614D27C2CA17530C2327F0AE276C418154B23342470D46C3D1407FA2E9A428F99A39BEAA6C5B0C422B8E98C8F2C34A04D1E9150DD758114BDF2702B9F67D58D28444906399EAB139F35B42A1BBCC9481713F695D5632E49F53B07AB3BF2DF09548C0DEF0A228D9C1078EF005CA69B8D44225301E54E008F8176D83955CE04CC071255700C7B6B4361A8F4E5851CF37C1947C12D241FAC1782A988F5F06FF25B4A6E14388A5759D60A040E52EF2577ED86D4C5EAC783226BB9DE8859B3314A5B5FE1A9B8D47F8FAF7730027890668BB6C60C9DD8DB0938FA0EDC46758BB0E59206532E83861A420B24D962786D669C69D4D823B30B67F28CD35729D92551181387EA9F1FCD4A912893BBF6A32D96D7997653CB99B93AEF3C29E0B859484B867BC2CA2F9183D135C1AD2CBD96DD415A07FAAAE72877B90034472E43EB918EBCD9E2560E6D51F9C1AC7EC70E1FB64C2590C5777BCBA1EDAC3FF26F9D62E7E1A86A2628AF747B888D0B5BD35B7FEA7E96B5C5BD736F8465384A73C10FAA920082C43DC9BD7EA726D33C833A92C9825C5A9EA5F3D8B667D909305A23F1728446B81288395F888897BB1FB72CB83E99BC16D618344F736AAC6D5318B2B8C5C958DDD7B6C8C34AC507BC70DE23577A3873FDEC75B05567D5DB763E20718DD20BAA97566E"
  7. GetInfo3="B5FCB1409950BBAD7B9E2311614B3B2BAB7C5B374F84E00F8E0A690EE3055D1835DCDCD27FB095DF5DE061BC859F8BE51B15F6AA32C7D0FC72F317E066F4BE092B4C897C17586777082B66CCBFB50787FEC81B1F1DB64D1819FBBC37992FC61E92FB0ADDA736B2A9B280038EF18ABBEC127F6F293B0F9D33D71AA249A0B17011BD1B852D5388E98F6B4571EA59253A0A26C8EA1ED4B9D48A6FCFE31705323AD07813E3FB71E619A916CF923AA8DBD1152B66FFBA56D328FDCACE7B583E04C075611037B5FBE4EBEF9E39D6187C1E3C291DC6BEA8D966067195DE2CF9FA6C233A5E4AD106EB277F1DFB53AC05DCDC32306478BC8E9304DF208FB7B111E85C13591018C201D29008F780B290D96DA07248D602A1B95DE90B6F5F5428416459B607F23C7CDD2F27A6C6084B2220F211F108A996F059F70BB304041172EACCE07B0DDB9726529AAD58F8FFF9E909BB3CD84F6E539F71538D12EC6BF6EABECEEF36221426C03F6AA8E25768BCFD886B06D6665661A2EC349C2F15F30596D29B87E4141976810D0EEF5500E7A77C7B7BFED7909FE381081A619D66974F0A3F2B8308E0883EF599B539FE22F16859BAF0FD72ADC50530084DBA0AB951731524833853E4A0D940E7BFB526DB62D1C989FD2831BC380F8CE99F941C36D0B5789FFDF88E2D7E5BE19BBECBD529E1F79F00708AB9603B6DEA196DBB643277F591FDA059EB56DACFB8C6135A5C500AF02565AB191DF58348D682380197E961E303F87E87B398BE9C5696556E0122E1340923AADCA0B5416BD52EAAB954B45353F7611170B9A73041988424D1D7E52489DF75368D2626064AD04F7C2ADA700E369598E04DFD2523245F2BCFD445CE9EA716EA014E00DC076AA7C745E383CEF4165289297F43B3DFFE27E5F838ECDE0206578ECF9E54F71656EA07DC2937AAE1A7D211"
  8. GetInfo4="B88D12774CFA4D9F80DD752D9FC5BB23EA21C6AD8F151FED61D8B58615A033F30D5BA23D1697FA0DE2730D5D446EE9E6CFE82955DD1AD6970B80C5543540798CFD1C9778DAD66682309895CB0FDC351735916C1AC9504A6AD87CDECE9450E0F9772AD103565F67A9DCA41464E157C0E20E352404EB83CBA803FE4AA7245E1043AB2CC1020469FAC7648CD06A8C04C479608F6AE1AAD1F13C4C85E750A7556F2F03839523F43477E68F80D0793EA18027C4815DCB83126E5DAB8C4578764A9043AFC78D3302346B0425BD7D35E3404F968F84768BA6166A662F9C4943D2785B34E7858F621E066F4DE3D2B2AF2C1514487E03895931E04737886691D1EF8EC6170D5E791C2C59DB866E35557DA442954D7CC04F4742960003CEAD585711FD78225D7B5F1EB5FA198A1050C0BE167583616CBA10E079868017EE214DEB2EAE83619F848757E9973370C3C7A132B48EBEB4AC17DEEE81CB5B86607C044D9B76AE5E7795B836E1C7A6FF0FE112D32575E6CF957A7CC6303B8E314A9D88905470B0B0C30FB2986CFCA1BB1E4A1C57AC7B503D78FD401C7911043E0865DFA5D7EB69E9B5AAFD0193E297066B3FB89FEFA291CE3ADA1D74E9DB9489844895CDE30995C03D94E2A06A19E286F9343F02B4B7BC9DC777E7BB2D848CD4A50C8DE21E6014EC84D7E96BCA40B5FAD34F40A95EC00A0B483A622E03E001129018F9AC55C835225F181404B6E77E582DF5A81D9D316CA0114A5F53B5049AB9108E757293629578839D2C8ABAEE5E18E615650CFCE7E685D940B3BCDC708BFEF5ED58281CB53F58BC2889E5AB24BD4BCB9592BCF207C0A7B79418E821BB5F0C580AE04584A543FF2F0F15C7AF051D339D800E8C2105D4DCC77A5C02843EC9A72416464C7688A8B03B15172E529651F0367A90101767E1915B7FD08A6FC4840129351D48"
  9.  
  10. def main():
  11.     result=""
  12.     for x in range(0, len(GetInfo1),2):
  13.         result += (GetInfo1[x:x+2]  + GetInfo2[x:x+2]  + GetInfo3[x:x+2]  + GetInfo4[x:x+2] )
  14.      
  15.     raw=unhexlify(result)
  16.    
  17.     key=raw[-64:-32]
  18.     iv=raw[-32:-16]
  19.     data=raw[:-64]
  20.  
  21.     cipher = AES.new(key, AES.MODE_CBC, iv)
  22.     decrypted_data = cipher.decrypt(data)
  23.     decrypted_data = decrypted_data.decode().rstrip('\0')
  24.     print(str(decrypted_data))
  25.  
  26. if __name__ == "__main__":
  27.     main()
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top