Skip to content

Commit

Permalink
keys
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Nov 24, 2023
1 parent ef4fa86 commit 845dbce
Showing 1 changed file with 54 additions and 57 deletions.
111 changes: 54 additions & 57 deletions upysweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,64 +16,61 @@
import sys
import argparse


keystore = {\
0x00: "5C52D91CF382ACA489D88178EC16297B",\
0x01: "9D4F50FCE1B68E1209307DDBA6A5B5AA",\
0x02: "0975988864ACF7621BC0909DF0FCABFF",\
0x03: "C9115CE2064A2686D8D6D9D08CDE3059",\
0x04: "667539D2FB4273B2903FD7A39ED2C60C",\
0x05: "F4FAEF20F4DBAB31D18674FD8F990566",\
0x06: "EA0C811363D7E930F961135A4F352DDC",\
0x08: "0A2E73305C382D4F310D0AED84A41800",\
0x09: "D20474308FE269046ED7BB07CF1CFF43",\
0x0A: "AC00C0E3E80AF0683FDD1745194543BD",\
0x0B: "0177D750BDFD2BC1A0493A134A4C6ACF",\
0x0C: "05349170939345EE951A14843334A0DE",\
0x0D: "DFF3FCD608B05597CF09A23BD17D3FD2",\
0x2F: "4AA7C7B01134466FAC82163E4BB51BF9",\
0x97: "cac8b87acd9ec49690abe0813920b110",\
0xB3: "03BEB65499140483BA187A64EF90261D",\
0xD9: "C7AC1306DEFE39EC83A1483B0EE2EC89",\
0xEB: "418499BE9D35A3B9FC6AD0D6F041BB26"}

challenge1_secret = {\
0x00: "D2072253A4F27468",\
0x01: "B37A16EF557BD089",\
0x02: "A04E32BBA7139E46",\
0x03: "B0B809833989FAE2",\
0x04: "FE7D7899BFEC47C5",\
0x05: "306F3A03D86CBEE4",\
0x06: "8422DFEAE21B63C2",\
0x08: "AD4043B256EB458B",\
0x0A: "C2377E8A74096C5F",\
0x0D: "581C7F1944F96262",\
0x2F: "F1BC562BD55BB077",\
0x97: "af6010a846f741f3",\
0xB3: "DBD3AEA4DB046410",\
0xD9: "90E1F0C00178E3FF",\
0xEB: "0BD9027E851FA123"}

challenge2_secret = {\
0x00: "F5D7D4B575F08E4E",\
0x01: "CC699581FD89126C",\
0x02: "495E034794931D7B",\
0x03: "F4E04313AD2EB4DB",\
0x04: "865E3EEF9DFBB1FD",\
0x05: "FF72BD2B83B89D2F",\
0x06: "58B95AAEF399DBD0",\
0x08: "67C07215D96B39A1",\
0x0A: "093EC519AF0F502D",\
0x0D: "318053875C203E24",\
0x2F: "1BDF2433EB29155B",\
0x97: "9deec01144b66f41",\
0xB3: "E32B8F56B2641298",\
0xD9: "C34A6A7B205FE8F9",\
0xEB: "F791ED0B3F49A448"}
challenge1_secret = {
0x00: "D2072253A4F27468",
0x01: "F5D7D4B575F08E4E",
0x0A: "C2377E8A74096C5F",
0x0D: "581C7F1944F96262",
0x97: "AF6010A846F741F3",
0xB3: "DBD3AEA4DB046410",
0x02: "B37A16EF557BD089",
0xD9: "90E1F0C00178E3FF",
0xEB: "0BD9027E851FA123",
0x03: "CC699581FD89126C",
0x04: "A04E32BBA7139E46",
0x2F: "F1BC562BD55BB077",
0x05: "495E034794931D7B",
0x06: "B0B809833989FAE2",
0x08: "AD4043B256EB458B",
}
challenge2_secret = {
0x00: "F4E04313AD2EB4DB",
0x01: "FE7D7899BFEC47C5",
0x0A: "093EC519AF0F502D",
0x0D: "318053875C203E24",
0x97: "9DEEC01144B66F41",
0xB3: "E32B8F56B2641298",
0x02: "865E3EEF9DFBB1FD",
0xD9: "C34A6A7B205FE8F9",
0xEB: "F791ED0B3F49A448",
0x03: "306F3A03D86CBEE4",
0x04: "FF72BD2B83B89D2F",
0x2F: "1BDF2433EB29155B",
0x05: "8422DFEAE21B63C2",
0x06: "58B95AAEF399DBD0",
0x08: "67C07215D96B39A1",
}
keystore = {
0x00: "5C52D91CF382ACA489D88178EC16297B",
0x01: "9D4F50FCE1B68E1209307DDBA6A5B5AA",
0x0A: "AC00C0E3E80AF0683FDD1745194543BD",
0x0D: "DFF3FCD608B05597CF09A23BD17D3FD2",
0x97: "CAC8B87ACD9EC49690ABE0813920B110",
0xB3: "03BEB65499140483BA187A64EF90261D",
0x02: "0975988864ACF7621BC0909DF0FCABFF",
0xD9: "C7AC1306DEFE39EC83A1483B0EE2EC89",
0xEB: "418499BE9D35A3B9FC6AD0D6F041BB26",
0x03: "C9115CE2064A2686D8D6D9D08CDE3059",
0x04: "667539D2FB4273B2903FD7A39ED2C60C",
0x2F: "4AA7C7B01134466FAC82163E4BB51BF9",
0x05: "F4FAEF20F4DBAB31D18674FD8F990566",
0x06: "EA0C811363D7E930F961135A4F352DDC",
0x08: "0A2E73305C382D4F310D0AED84A41800",
}

go_key1 = bytes.fromhex("C66E9ED6ECBCB121B7465D25037D6646")
go_key2 = bytes.fromhex("da24dab43a61cbdf61fd255d0aea7957")
go_secret = bytes.fromhex("880e2a94110926b20e53e22ae648ae9d")
go_key2 = bytes.fromhex("DA24DAB43A61CBDF61FD255D0AEA7957")
go_secret = bytes.fromhex("880E2A94110926B20E53E22AE648AE9D")

ser = serial.Serial()
running = False;
Expand Down Expand Up @@ -356,7 +353,7 @@ def MatrixSwap(key):
temp[i] = key[newmap[i]]
return temp[0:len(key)]


if __name__ == '__main__':
startsv()

0 comments on commit 845dbce

Please sign in to comment.