| 1 | |
| 2 | local _keys = { |
| 3 | --[[ |
| 4 | These keys are from the pm3 c-codebase. |
| 5 | --]] |
| 6 | 'ffffffffffff', -- Default key (first key used by program if no user defined key) |
| 7 | '000000000000', -- Blank key |
| 8 | 'a0a1a2a3a4a5', -- NFCForum MAD key |
| 9 | 'b0b1b2b3b4b5', |
| 10 | 'aabbccddeeff', |
| 11 | '4d3a99c351dd', |
| 12 | '1a982c7e459a', |
| 13 | 'd3f7d3f7d3f7', |
| 14 | '714c5c886e97', |
| 15 | '587ee5f9350f', |
| 16 | 'a0478cc39091', |
| 17 | '533cb6c723f6', |
| 18 | '8fd0a4f256e9', |
| 19 | |
| 20 | --[[ |
| 21 | The Slurp project, |
| 22 | Data from: https://github.com/4ZM/slurp/blob/master/res/xml/mifare_default_keys.xml |
| 23 | --]] |
| 24 | '000000000000', -- Default key |
| 25 | 'ffffffffffff', -- Default key |
| 26 | 'b0b1b2b3b4b5', -- Key from mfoc |
| 27 | '4d3a99c351dd', -- Key from mfoc |
| 28 | '1a982c7e459a', -- Key from mfoc |
| 29 | 'aabbccddeeff', -- Key from mfoc |
| 30 | '714c5c886e97', -- Key from mfoc |
| 31 | '587ee5f9350f', -- Key from mfoc |
| 32 | 'a0478cc39091', -- Key from mfoc |
| 33 | '533cb6c723f6', -- Key from mfoc |
| 34 | '8fd0a4f256e9', -- Key from mfoc |
| 35 | |
| 36 | --[[ |
| 37 | Data from: http://pastebin.com/wcTHXLZZ |
| 38 | --]] |
| 39 | 'a64598a77478', -- RKF SL Key A |
| 40 | '26940b21ff5d', -- RKF SL Key A |
| 41 | 'fc00018778f7', -- RKF SL Key A |
| 42 | '00000ffe2488', -- RKF SL Key B |
| 43 | '5c598c9c58b5', -- RKF SL Key B |
| 44 | 'e4d2770a89be', -- RKF SL Key B |
| 45 | |
| 46 | --[[ |
| 47 | Data from: http://pastebin.com/svGjN30Q |
| 48 | --]] |
| 49 | '434f4d4d4f41', -- RKF JOJO GROUP Key A |
| 50 | '434f4d4d4f42', -- RKF JOJO GROUP Key B |
| 51 | '47524f555041', -- RKF JOJO GROUP Key A |
| 52 | '47524f555042', -- RKF JOJO GROUP Key B |
| 53 | '505249564141', -- RKF JOJO PRIVA Key A |
| 54 | '505249564142', -- RKF JOJO PRIVA Key B |
| 55 | |
| 56 | --[[ |
| 57 | Data from: http://pastebin.com/d7sSetef |
| 58 | --]] |
| 59 | 'fc00018778f7', -- RKF Rejskort Danmark Key A |
| 60 | '00000ffe2488', -- RKF Rejskort Danmark Key B |
| 61 | '0297927c0f77', -- RKF Rejskort Danmark Key A |
| 62 | 'ee0042f88840', -- RKF Rejskort Danmark Key B |
| 63 | '722bfcc5375f', -- RKF Rejskort Danmark Key A |
| 64 | 'f1d83f964314', -- RKF Rejskort Danmark Key B |
| 65 | |
| 66 | --[[ |
| 67 | Data from: http://pastebin.com/pvJX0xVS |
| 68 | --]] |
| 69 | '54726176656C', -- Transport Key A |
| 70 | '776974687573', -- Transport Key B |
| 71 | '4AF9D7ADEBE4', -- Directory and event log Key A |
| 72 | '2BA9621E0A36', -- Directory and event log Key B |
| 73 | |
| 74 | --[[ |
| 75 | Data from: http://pastebin.com/AK9Bftpw |
| 76 | --]] |
| 77 | '48ffe71294a0', -- Länstrafiken i Västerbotten |
| 78 | 'e3429281efc1', -- Länstrafiken i Västerbotten |
| 79 | '16f21a82ec84', -- Länstrafiken i Västerbotten |
| 80 | '460722122510', -- Länstrafiken i Västerbotten |
| 81 | |
| 82 | --[[ |
| 83 | Data from: http://pastebin.com/Dnnc5dFC |
| 84 | --]] |
| 85 | 'fc00018778f7', -- Västtrafiken Key A |
| 86 | '00000ffe2488', -- Västtrafiken Key B |
| 87 | '0297927c0f77', -- Västtrafiken Key A |
| 88 | 'ee0042f88840', -- Västtrafiken Key B |
| 89 | '54726176656c', -- Västtrafiken Key A |
| 90 | '776974687573', -- Västtrafiken Key B |
| 91 | |
| 92 | --[[ |
| 93 | Data from: http://pastebin.com/y3PDBWR1 |
| 94 | --]] |
| 95 | '000000000001', |
| 96 | 'a0a1a2a3a4a5', |
| 97 | '123456789abc', |
| 98 | 'b127c6f41436', |
| 99 | '12f2ee3478c1', |
| 100 | '34d1df9934c5', |
| 101 | '55f5a5dd38c9', |
| 102 | 'f1a97341a9fc', |
| 103 | '33f974b42769', |
| 104 | '14d446e33363', |
| 105 | 'c934fe34d934', |
| 106 | '1999a3554a55', |
| 107 | '27dd91f1fcf1', |
| 108 | 'a94133013401', |
| 109 | '99c636334433', |
| 110 | '43ab19ef5c31', |
| 111 | 'a053a292a4af', |
| 112 | '434f4d4d4f41', |
| 113 | '434f4d4d4f42', |
| 114 | '505249565441', |
| 115 | '505249565442', |
| 116 | |
| 117 | --[[ |
| 118 | Data from: http://pastebin.com/TUXj17K3 |
| 119 | --]] |
| 120 | 'fc0001877bf7', -- RKF ÖstgötaTrafiken Key A |
| 121 | '00000ffe2488', -- RKF ÖstgötaTrafiken Key B |
| 122 | '0297927c0f77', -- RKF ÖstgötaTrafiken Key A |
| 123 | 'ee0042f88840', -- RKF ÖstgötaTrafiken Key B |
| 124 | '54726176656c', -- RKF ÖstgötaTrafiken Key A |
| 125 | '776974687573', -- RKF ÖstgötaTrafiken Key B |
| 126 | |
| 127 | --[[ |
| 128 | Data from: https://code.google.com/p/mifare-key-cracker/downloads/list |
| 129 | --]] |
| 130 | 'bd493a3962b6', |
| 131 | '010203040506', |
| 132 | '111111111111', |
| 133 | '222222222222', |
| 134 | '333333333333', |
| 135 | '444444444444', |
| 136 | '555555555555', |
| 137 | '666666666666', |
| 138 | '777777777777', |
| 139 | '888888888888', |
| 140 | '999999999999', |
| 141 | 'aaaaaaaaaaaa', |
| 142 | 'bbbbbbbbbbbb', |
| 143 | 'cccccccccccc', |
| 144 | 'dddddddddddd', |
| 145 | 'eeeeeeeeeeee', |
| 146 | '0123456789ab', |
| 147 | '123456789abc', |
| 148 | |
| 149 | --[[ |
| 150 | Data from: https://github.com/4ZM/mfterm/blob/master/dictionary.txt |
| 151 | --]] |
| 152 | 'abcdef123456', -- Key from ladyada.net |
| 153 | '000000000001', |
| 154 | '000000000002', |
| 155 | '00000000000a', |
| 156 | '00000000000b', |
| 157 | '100000000000', |
| 158 | '200000000000', |
| 159 | 'a00000000000', |
| 160 | 'b00000000000', |
| 161 | |
| 162 | --[[ |
| 163 | Mifare TNP3xxx tags key A |
| 164 | --]] |
| 165 | '4b0b20107ccb', |
| 166 | |
| 167 | --[[ |
| 168 | Kiev metro cards |
| 169 | --]] |
| 170 | '8fe644038790', |
| 171 | 'f14ee7cae863', |
| 172 | '632193be1c3c', |
| 173 | '569369c5a0e5', |
| 174 | '9de89e070277', |
| 175 | 'eff603e1efe9', |
| 176 | '644672bd4afe', |
| 177 | 'b5ff67cba951', |
| 178 | |
| 179 | --[[ |
| 180 | hotel system cards, |
| 181 | http://www.proxmark.org/forum/viewtopic.php?id=2430 |
| 182 | --]] |
| 183 | '44ab09010845', |
| 184 | '85fed980ea5a', |
| 185 | |
| 186 | --[[ |
| 187 | VIGIK1 |
| 188 | --]] |
| 189 | '314B49474956', |
| 190 | '564c505f4d41', |
| 191 | |
| 192 | --[[ |
| 193 | BCARD keyB |
| 194 | --]] |
| 195 | 'f4a9ef2afc6d', |
| 196 | |
| 197 | --[[ |
| 198 | --]] |
| 199 | 'a9f953def0a3', |
| 200 | |
| 201 | --[[ |
| 202 | mystery Key A and B for Mifare 1k EV1 (S50) Sector 17! |
| 203 | --]] |
| 204 | '75ccb59c9bed', |
| 205 | '4b791bea7bcc', |
| 206 | |
| 207 | --[[ |
| 208 | Here be BIP keys |
| 209 | Data from: http://pastebin.com/QjUc66Zg |
| 210 | --]] |
| 211 | '3A42F33AF429', |
| 212 | '1FC235AC1309', |
| 213 | '6338A371C0ED', |
| 214 | '243F160918D1', |
| 215 | 'F124C2578AD0', |
| 216 | '9AFC42372AF1', |
| 217 | '32AC3B90AC13', |
| 218 | '682D401ABB09', |
| 219 | '4AD1E273EAF1', |
| 220 | '067DB45454A9', |
| 221 | 'E2C42591368A', |
| 222 | '15FC4C7613FE', |
| 223 | '2A3C347A1200', |
| 224 | '68D30288910A', |
| 225 | '16F3D5AB1139', |
| 226 | 'F59A36A2546D', |
| 227 | '937A4FFF3011', |
| 228 | '64E3C10394C2', |
| 229 | '35C3D2CAEE88', |
| 230 | 'B736412614AF', |
| 231 | '693143F10368', |
| 232 | '324F5DF65310', |
| 233 | 'A3F97428DD01', |
| 234 | '643FB6DE2217', |
| 235 | '63F17A449AF0', |
| 236 | '82F435DEDF01', |
| 237 | 'C4652C54261C', |
| 238 | '0263DE1278F3', |
| 239 | 'D49E2826664F', |
| 240 | '51284C3686A6', |
| 241 | '3DF14C8000A1', |
| 242 | '6A470D54127C', |
| 243 | |
| 244 | --[[ |
| 245 | 3dprinter |
| 246 | EPI Envisionte |
| 247 | --]] |
| 248 | 'AAFB06045877', |
| 249 | |
| 250 | --[[ |
| 251 | Fysiken |
| 252 | --]] |
| 253 | '3E65E4FB65B3', |
| 254 | '25094DF6F148', |
| 255 | |
| 256 | --[[ |
| 257 | key A |
| 258 | --]] |
| 259 | '454841585443', |
| 260 | |
| 261 | --[[ |
| 262 | Data from: http://pastebin.com/gQ6nk38G |
| 263 | --]] |
| 264 | 'A0A1A2A3A4A5', |
| 265 | 'D39BB83F5297', |
| 266 | 'A27D3804C259', |
| 267 | '85675B200017', |
| 268 | '528C9DFFE28C', |
| 269 | 'C82EC29E3235', |
| 270 | '3E3554AF0E12', |
| 271 | '491CDCFB7752', |
| 272 | '22C1BAE1AACD', |
| 273 | '5F146716E373', |
| 274 | '740E9A4F9AAF', |
| 275 | 'AC0E24C75527', |
| 276 | '97184D136233', |
| 277 | 'E444D53D359F', |
| 278 | '17758856B182', |
| 279 | 'A8966C7CC54B', |
| 280 | 'C6AD00254562', |
| 281 | 'AE3FF4EEA0DB', |
| 282 | '5EB8F884C8D1', |
| 283 | 'FEE470A4CB58', |
| 284 | '75D8690F21B6', |
| 285 | '871B8C085997', |
| 286 | '97D1101F18B0', |
| 287 | '75EDE6A84460', |
| 288 | 'DF27A8F1CB8E', |
| 289 | 'B0C9DD55DD4D', |
| 290 | |
| 291 | --[[ |
| 292 | Data from: http://pastebin.com/AK9Bftpw |
| 293 | --]] |
| 294 | '48ffe71294a0', |
| 295 | 'e3429281efc1', |
| 296 | '16f21a82ec84', |
| 297 | '460722122510', |
| 298 | |
| 299 | --[[ |
| 300 | Data from: http://bit.ly/1bdSbJl |
| 301 | --]] |
| 302 | 'A0B0C0D0E0F0', |
| 303 | 'A1B1C1D1E1F1', |
| 304 | |
| 305 | --[[ |
| 306 | Data from: msk three |
| 307 | Thanks to A. |
| 308 | --]] |
| 309 | 'ae3d65a3dad4', |
| 310 | 'a73f5dc1d333', |
| 311 | '73068F118C13', |
| 312 | |
| 313 | --[[ |
| 314 | Data from: msk social |
| 315 | Thanks to A. |
| 316 | --]] |
| 317 | 'a0a1a2a3a4a5', |
| 318 | '2735fc181807', |
| 319 | '2aba9519f574', |
| 320 | '84fd7f7a12b6', |
| 321 | '73068f118c13', |
| 322 | '186d8c4b93f9', |
| 323 | '3a4bba8adaf0', |
| 324 | '8765b17968a2', |
| 325 | '40ead80721ce', |
| 326 | '0db5e6523f7c', |
| 327 | '51119dae5216', |
| 328 | '83e3549ce42d', |
| 329 | '136bdb246cac', |
| 330 | '7de02a7f6025', |
| 331 | 'bf23a53c1f63', |
| 332 | 'cb9a1f2d7368', |
| 333 | 'c7c0adb3284f', |
| 334 | '2b7f3253fac5', |
| 335 | '9f131d8c2057', |
| 336 | '67362d90f973', |
| 337 | '6202a38f69e2', |
| 338 | '100533b89331', |
| 339 | '653a87594079', |
| 340 | 'd8a274b2e026', |
| 341 | 'b20b83cb145c', |
| 342 | '9afa6cb4fc3d', |
| 343 | } |
| 344 | |
| 345 | --- |
| 346 | -- The keys above have just been pasted in, for completeness sake. They contain duplicates. |
| 347 | -- We need to weed the duplicates out before we expose the list to someone who actually wants to use them |
| 348 | -- @param list a list to do 'uniq' on |
| 349 | |
| 350 | local function uniq(list) |
| 351 | |
| 352 | local foobar = {} |
| 353 | --print("list length ", #list) |
| 354 | for _, value in pairs(list) do |
| 355 | value = value:lower() |
| 356 | if not foobar[value] then |
| 357 | foobar[value] = true |
| 358 | table.insert(foobar, value); |
| 359 | end |
| 360 | end |
| 361 | --print("final list length length ", #foobar) |
| 362 | return foobar |
| 363 | end |
| 364 | |
| 365 | return uniq(_keys) |