summaryrefslogtreecommitdiffstats
path: root/.bin/yubikey-reset
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-08 12:40:19 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-08 12:40:19 +0200
commitce6be946d024aa55a15d576388d05f90be671cf2 (patch)
treefa1053446a3fb06daee8438c1ff664cb36c0abcb /.bin/yubikey-reset
parent703ed1915c69911a95cab6e1fb6524629c976800 (diff)
downloaddots-ce6be946d024aa55a15d576388d05f90be671cf2.tar.gz
Sat Oct 8 12:40:19 PM CEST 2022
Diffstat (limited to '.bin/yubikey-reset')
-rwxr-xr-x.bin/yubikey-reset20
1 files changed, 0 insertions, 20 deletions
diff --git a/.bin/yubikey-reset b/.bin/yubikey-reset
deleted file mode 100755
index 4824bc8..0000000
--- a/.bin/yubikey-reset
+++ /dev/null
@@ -1,20 +0,0 @@
-echo "DESTRUCTIVE !!!"
-
-sleep 60
-
-gpg-connect-agent <<EOF
-/hex
-scd serialno
-scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
-scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
-scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
-scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
-scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
-scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
-scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
-scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
-scd apdu 00 e6 00 00
-scd apdu 00 44 00 00
-/echo Yubikey has been successfully reset.
-/echo The factory default PINs are 123456 (user) and 12345678 (admin).
-EOF
remember that computers suck.