mirror of
https://git.soft.fish/val/MicroCorruption.git
synced 2024-11-23 00:35:57 +00:00
46 lines
1.6 KiB
Python
46 lines
1.6 KiB
Python
|
#!/usr/bin/env python3
|
||
|
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
||
|
|
||
|
keys = [
|
||
|
"7F7875E0C977D30CE85ECA19D02211F7", # 48ae
|
||
|
"4B530B31B5CD58D3F59DC5A9C583C4F3", # 48be
|
||
|
"6F1AF5BBFE9E53E240509D7A301E015A", # 48ce
|
||
|
"6259A7399184A659BECECE98704E9C20", # 48de
|
||
|
"539345A8F3DD01602F4A68C1CE8052B8", # 48ee
|
||
|
"70076C8BA04E44C8DC9769A1E1CA3A79", # 48fe
|
||
|
"FF47B02ED04928437CD92D693D5D53D8", # 490e
|
||
|
"D980482F2F0E986DAC90052A41847EB1", # 491e
|
||
|
"7DCD0F8EF68ED042839E9D47ED147B9B", # 492e
|
||
|
"F2138F148B43DFCC75104D056E8AE6DC", # 493e
|
||
|
"7B2F0D188AF1FA20493CD251F10BBCB5" #! 494e
|
||
|
]
|
||
|
# It's sbox!!!
|
||
|
inv_sbox = [
|
||
|
"52096AD53036A538BF40A39E81F3D7FB", # 495e
|
||
|
"7CE339829B2FFF87348E4344C4DEE9CB", # 496e
|
||
|
"547B9432A6C2233DEE4C950B42FAC34E", # 497e
|
||
|
"082EA16628D924B2765BA2496D8BD125", # 498e
|
||
|
"72F8F66486689816D4A45CCC5D65B692", # 499e
|
||
|
"6C704850FDEDB9DA5E154657A78D9D84", # 49ae
|
||
|
"90D8AB008CBCD30AF7E45805B8B34506", # 49be
|
||
|
"D02C1E8FCA3F0F02C1AFBD0301138A6B", # 49ce
|
||
|
"3A9111414F67DCEA97F2CFCEF0B4E673", # 49de
|
||
|
"96AC7422E7AD3585E2F937E81C75DF6E", # 49ee
|
||
|
"47F11A711D29C5896FB7620EAA18BE1B", # 49fe
|
||
|
"FC563E4BC6D279209ADBC0FE78CD5AF4", # 4a0e
|
||
|
"1FDDA8338807C731B11210592780EC5F", # 4a1e
|
||
|
"60517FA919B54A0D2DE57A9F93C99CEF", # 4a2e
|
||
|
"A0E03B4DAE2AF5B0C8EBBB3C83539961", # 4a3e
|
||
|
"172B047EBA77D626E169146355210C7D" # 4a4e
|
||
|
]
|
||
|
|
||
|
for key in keys:
|
||
|
|
||
|
key = bytes.fromhex(key)
|
||
|
cipher = Cipher(algorithms.AES128(key), modes.ECB());
|
||
|
enc = cipher.encryptor()
|
||
|
|
||
|
ciphertext = enc.update(b'ACCESS GRANTED!\x00') + enc.finalize()
|
||
|
|
||
|
print(key.hex(), ciphertext.hex(), "\n");
|