Giter Club home page Giter Club logo

pintool's Introduction

PinTool

PinTool is a PIN Input Typing Assistant™ (PITA), that automates typing your PIN when code-signing a Windows binary using a Hardware Security Module (HSM), e.g. a YubiKey.

How to build

  1. Open the Command Prompt for VS (Visual Studio).

  2. Run the Program Maintenance Utility (NMAKE) to build PinTool:

    nmake

  3. Done! There wasn't even time to get a coffee or a tea...

How to use

When code-signing a binary add PinTool just before SignTool, e.g.:

start pintool.exe 123456
signtool sign /v /n "My Company" /a /fd sha256 /tr "http://ts.ssl.com" /td sha256 my_binary.exe

Replace 123456 with your PIN, or maybe with an environment variable holding your PIN.

This will start PinTool in the background, and then immediately return and run SignTool. As soon as the Windows Security dialog is detected by PinTool, it will start "typing" your PIN and then hit the enter key, after which PinTool will terminate.

If your automated build script calls SignTool multiple times, then you should add PinTool before each SignTool call.

License

Copyright © 2023 Theo Niessink <[email protected]>
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

pintool's People

Contributors

taletn avatar

Stargazers

 avatar

Watchers

 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.