Skip to content

Issues with some types of keys #4

@xiopt

Description

@xiopt

First of all, really nice collection of scripts.
I was messing around with some old keys, and I seems the to_5x5 fails with Windows 7 and Office 2010 keys.

Traceback (most recent call last):
  File "/keycheck.py", line 255, in <module>
    response, message, success = query_key(pkey, PUB_LICENSE, pkc)
                                 ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/keycheck.py", line 148, in query_key
    pkey_data = ProductKeyDecoder(pkey)
  File "/licensing_stuff/keycutter.py", line 43, in __init__
    self.key = self.decode_5x5(key, self.ALPHABET)
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/licensing_stuff/keycutter.py", line 30, in decode_5x5
    dec = [key.index("N")]
           ~~~~~~~~~^^^^^
ValueError: substring not found


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions