Skip to content

oditynet/2fact-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub code size in bytes GitHub license GitHub Repo stars

2FA with Telegram in a consoles and DE, SSH and etc

Ver 0.2:

  1. add support proxy (important for Russia)
  2. set timeout for curl connect (if internet is done)
  3. add backdoor for you

About

This is a PAM module for 2fa authorizate of Telegram channel Enter User\password and code at your Telegram bot.

curl -s -X POST https://api.telegram.org/bot<SECURITY_KEY>/getUpdates - get info about id
From at bot send any message for him self

Build:

make
sudo make install
#cp pam_2fact.so /usr/lib/security

Config

Edit /etc/pam.d/system-auth

without proxy

auth    requisite    pam_2fact.so 

or with proxy

auth    requisite    pam_2fact.so proxy="socks5://1.2.3.4:1080" proxy_user="user" proxy_pass="pass"

Example:

About

2fa authorization in a console and a DE too with telegram channel

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors