-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_room_4.py
46 lines (34 loc) · 908 Bytes
/
test_room_4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from itertools import product
from Crypto.Hash import keccak
from web3 import Web3
kript = keccak.new(digest_bits=256)
kript.update(b'Mogwai')
print(kript.hexdigest())
MOTIF = {
1: bytes.fromhex('2E582F5C2e'),
2: bytes.fromhex('2E2B2D7C2e'),
3: bytes.fromhex('2E2F5C2E2e'),
4: bytes.fromhex('2E5C7C2D2F'),
5: bytes.fromhex('2E4F7C2D2e'),
6: bytes.fromhex('2E5C5C2E2e'),
7: bytes.fromhex('2E237C2D2B'),
8: bytes.fromhex('2E4F4F2E2e'),
9: bytes.fromhex('2E232E2E2e'),
10:bytes.fromhex('2E234F2E2e'),
}
for i in MOTIF:
print(MOTIF[i].decode(encoding='utf-8', errors='strict'))
#
#
# allo = b".X/<.+-|."
# print(allo.decode(encoding='utf-8', errors='strict'))
#
# hallo = {1 : bytes.fromhex('2E234F2E2e'),
# 2 : bytes.fromhex('2E2B2D7C2e')}
#
#
# print(hallo[2].decode(encoding='utf-8', errors='strict'))
#
# print(product('ABCD',repeat= 1))
#
#