Coder Social home page Coder Social logo

listkeys's Introduction

listkeys

This program can be useful for recovering a key that is partially obfuscated. I originally designed this to recover a Windows product key. This was done by enumerating all possible keys and feeding them into a key checker (e.g., The Ultimate PID Checker). The applicability of listkeys is very limited and highly depends on the readability of the key you want to recover and speed of verifying each possible key.

Installation

$ go get github.com/tvdburgt/listkeys

Or download the binary directly, if you don't have Go installed.

Usage

listkeys works with globbing. The wildcard metacharacter ? can be used to substitute unidentified characters in the key:

$ listkeys HM7DF-G8XWM-J2VRG-4M3C4-GR27?
HM7DF-G8XWM-J2VRG-4M3C4-GR27A
HM7DF-G8XWM-J2VRG-4M3C4-GR27B
HM7DF-G8XWM-J2VRG-4M3C4-GR27C
...
HM7DF-G8XWM-J2VRG-4M3C4-GR278
HM7DF-G8XWM-J2VRG-4M3C4-GR279
HM7DF-G8XWM-J2VRG-4M3C4-GR270

By default, wildcards are expanded to [A-Z0-9]. This can be narrowed down by using the global charset flag -c. For example:

$ listkeys -c ASDF HM7DF-G8XWM-J2VRG-4M3C4-GR27?
HM7DF-G8XWM-J2VRG-4M3C4-GR27A
HM7DF-G8XWM-J2VRG-4M3C4-GR27S
HM7DF-G8XWM-J2VRG-4M3C4-GR27D
HM7DF-G8XWM-J2VRG-4M3C4-GR27F

The charset space can also be narrowed down for individual characters. This is done with Bash-like brace expansion:

$ listkeys HM7DF-G8XWM-J2VRG-{4HML}M3C4-GR27{POQ}
HM7DF-G8XWM-J2VRG-4M3C4-GR27P
HM7DF-G8XWM-J2VRG-4M3C4-GR27O
HM7DF-G8XWM-J2VRG-4M3C4-GR27Q
HM7DF-G8XWM-J2VRG-HM3C4-GR27P
HM7DF-G8XWM-J2VRG-HM3C4-GR27O
HM7DF-G8XWM-J2VRG-HM3C4-GR27Q
HM7DF-G8XWM-J2VRG-MM3C4-GR27P
HM7DF-G8XWM-J2VRG-MM3C4-GR27O
HM7DF-G8XWM-J2VRG-MM3C4-GR27Q
HM7DF-G8XWM-J2VRG-LM3C4-GR27P
HM7DF-G8XWM-J2VRG-LM3C4-GR27O
HM7DF-G8XWM-J2VRG-LM3C4-GR27Q

Obviously, this last method is preferred, as it greatly reduces the number of possible keys, making it much more feasible for a reduced brute-force search.

listkeys's People

Watchers

Tijmen van der Burgt avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.