Skip to content

Releases: carligithub400/literate-auth

Version 1.0.1

10 Feb 10:33
064f300
Compare
Choose a tag to compare
Version 1.0.1 Pre-release
Pre-release

Full Changelog: v1.0.0...v1.0.1

Version 1.0.0

02 Feb 22:34
96feeee
Compare
Choose a tag to compare
Version 1.0.0 Pre-release
Pre-release

This Bash script establishes a two-factor authentication (2FA) layer for Linux server SSH sessions. It follows these steps:

  1. Generates a random 6-digit challenge and saves it to a file (./code).
  2. Sends the challenge code to a Telegram bot using the specified token and chat ID.
  3. Prompts the user to enter the challenge response without displaying it on the screen.
  4. Checks if the entered response matches the generated challenge.
  5. If the response is correct, grants access to /bin/bash; otherwise, terminates the connection.

Caution: For testing purposes only. Do not use in production or for critical tasks. The script utilizes Telegram for code transmission and a secure prompt for user input. After the challenge, the script either allows the user to proceed to the shell or terminates the connection if the response is incorrect. Keep in mind the inherent risks associated with 2FA implementations and use responsibly in controlled testing environments. The code leverages standard Linux commands, making it easily comprehensible for those familiar with Bash scripting and server administration.