blj-two-factor-auth

command module
v0.0.0-...-da49edd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 7 Imported by: 0

README

Simple CLI app that generates tokens compatible with Google Authenticator. I implemented this mainly to understand how it works, you should probably not use this. Example output:

$ go run main.go "<your key>"
934523 (17 second(s) remaining)

Relevant RFCs:


  • It's based robbiev/two-factor-auth.
  • It has compiled with name main file, just exec the login_blj file to login.
  • It is depend on expect and you should down the Authenticator Extension's backup file. (The point is your secret key).
  • ./login_blj (Replace your KEY USERNAME PASSWORD in the shell script.)

中文

  1. In some enterprise scenarios, there will be bastion hosts (which may have different names such as jump servers) and other jump servers for transfer, which allow technical personnel in the office environment (usually positions that need to perform operation and maintenance work) to remotely access certain servers in the online self-owned computer room through the bastion host. The bastion host usually uses 2FA technology verification.
  2. In some enterprise scenarios, each employee usually has his own domain account, which is used as the account and password login for corporate mailboxes, corporate OA, corporate office computers, corporate internal systems, etc. If necessary, the domain account system is usually connected to allow technical personnel to log in to certain online servers
  3. In the above two scenarios, technical personnel need one account and two passwords to log in to the online server. The account is the domain account, the first is the password of the domain account, and the second password is the 2FA dynamic verification code of the bastion host.
  4. hereTac/blj-two-factor-auth is a small tool for automatically filling in the above two-stage passwords.
  5. Add automatic sending of spaces to keep the connection alive, to avoid the bastion host time out.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL