Skip to content

bug3/otpilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Securely automate otp codes: You can use otp codes with any shell command without need phone or app.

Installation

npm install -g otpilot

Requirements

First of all we need secret keys to generate otp codes.

Usage

  • Create a command
otpilot create $commandName

Output

Command: echo $otp
Secret: ******
  • Run the command
otpilot run $commandName

Output

142857

Security

Secret keys are safe with otpilot because config data encrypted with uniquenv

Example

If you want to use 2fa VPN, you can connect with one command using gotunl

$ otpilot create connect-vpn
Command: gotunl -c 3 -otp $otp
Secret: ******

$ otpilot run connect-vpn
Connecting
Connected

License

MIT