Updated: 2022-11-18
NOTE: I DON'T GUARANTEE THE KEYS WORK, DON'T CONTACT ME IF ONE IS NOT WORKING, JUST TRY ANOTHER ONE OR QUIT THE PAGE
ZHDH1-UR90N-W844G-4PTN6
G1NP0-T88AL-M016F-4P8N2
ZC14J-4U16A-0A04G-4MEZP
#!/bin/bash | |
# Launches socat+npiperelay to relay the gpg-agent socket file for use in WSL | |
# See https://justyn.io/blog/using-a-yubikey-for-gpg-in-windows-10-wsl-windows-subsystem-for-linux/ for details | |
GPGDIR="${HOME}/.gnupg" | |
USERNAME=Vincent | |
# I use the same username for wsl and windows, but feel free to modify the paths below if that isn't the case | |
WIN_GPGDIR="C:/Users/${USERNAME}/AppData/Roaming/gnupg" | |
NPIPERELAY="${HOME}/npiperelay.exe" |
# The following is adapted from https://github.com/reswitched/loaders/blob/master/nxo64.py | |
# | |
# =========================================================================================== | |
# | |
# Copyright 2017 Reswitched Team | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any purpose with or | |
# without fee is hereby granted, provided that the above copyright notice and this permission | |
# notice appear in all copies. | |
# |
############################################### | |
# TX SX OS unpacker - by hexkyz and naehrwert # | |
############################################### | |
from Crypto.Cipher import AES | |
from Crypto.Util import Counter | |
import os | |
import struct | |
""" |