Python Project: Send a Text Message when root logs in

Опубликовано: 23 Апрель 2020
на канале: tutoriaLinux
7,058
247

A sped-up Python coding session where I program a script to alert me (via SMS) whenever root logs in via SSH, or when someone uses 'sudo'. I've sped it up from ~2.5 hours to about 15 minutes, with a few breaks for explanation about my approach. None of the dead ends and wrong turns have been edited out, so have fun.


See the final script on Github: https://github.com/groovemonkey/sshalert -- plenty of room for improvement; feel free to contribute!


Смотрите видео Python Project: Send a Text Message when root logs in онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь tutoriaLinux 23 Апрель 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 7,058 раз и оно понравилось 247 людям.