Code Monkey home page Code Monkey logo

remap-omen's Introduction

Remap Omen Key for Windows

This is not something I actually use so there will be no support. I may accept pull requests if they are reasonable.

Build Instruction (from linux)

I don’t actually use windows, but it’s probably simpler on Windows anyway.

Install Windows cross-compiling toolchain

rustup target add x86_64-pc-windows-gnu

You may also need to install the mingw-w64-gcc package on your system.

Compile

cargo build --target x86_64-pc-windows-gnu --release

Now you should have a remap-omen.exe binary in target/x86_64-pc-windows-gnu/release or a similar directory.

Codesigning

Create a san.cnf file

The contents should be filled in with your own information.

[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = COUNTRY
ST = STATE
L = CITY
O = ORG NAME
OU = ORG_UNIT
CN = example.com
[v3_req]
keyUsage = critical, digitalSignature, keyAgreement
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = omen.example.com
DNS.2 = example.com
Generate a self-signed certificate

The prevous configuration file is used to generate a self-signed rsa key and certificate.

openssl req -x509 -newkey rsa:4096 -sha256 -keyout omen.key -out omen.crt -days 600 -config san.cnf
Sign the binary using osslsigncode
osslsigncode sign -certs omen.crt -key omen.key -in remap-omen.exe -out remap-omen-signed.exe

Usage

Prerequisites

  • HPMSGSVC.exe must be running
  • The executable must be placed in elevated directories (Program Files) to work over elevated processes
  • Add the certificate to the trusted people certificate store by going the properties of the executable and finding the certificate in the certificate tab.

Running

Run the exe or add a shortcut to the exe to the startup folder to make it run on startup.

Credits

This is a reimplementation of prevous work listed below.

License

Public Domain/CC0

remap-omen's People

Contributors

kab1r 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.