remove oath script

This commit is contained in:
Steffen Vogel 2021-08-25 15:16:25 +02:00
parent cc4678a4ad
commit 3b271ae7e4

View file

@ -1,20 +0,0 @@
#!/usr/bin/env expect -f
set query [lindex $argv 0]
spawn ykman oath code $query
expect "Enter your password:"
stty -echo
expect_user -re "(.*)\n"
stty echo
set pin $expect_out(1,string)
send "$pin\r\r"
expect "Touch your YubiKey..."
expect -re {(\d{6})}
set code $expect_out(1,string)
system printf $code | pbcopy