This login notifier uses IP information to send silent telegram notifications if the login source seem to be trustable.
First, please read this awesome Medium tutorial on how to setup the Telegram bot.
| #!/usr/bin/env python3 | |
| import requests | |
| import json | |
| import sys | |
| import os | |
| import socket | |
| # --- settings --- |
This login notifier uses IP information to send silent telegram notifications if the login source seem to be trustable.
First, please read this awesome Medium tutorial on how to setup the Telegram bot.
Monero XMR mining via termux ;ubuntu
pkg install update && upgrade
apt install git
apt install wget
apt install proot| # Custom plugin for zsh | |
| # | |
| # Common aliases | |
| # | |
| # Author: Thomas Bendler <code@thbe.org> | |
| # Date: Wed Jan 1 23:54:03 CET 2020 | |
| # | |
| ### Command enhancements aliases ### | |
| alias ls='ls -GFh' # Preferred 'ls' implementation |
| # lsb_release -a | |
| No LSB modules are available. | |
| Distributor ID: Debian | |
| Description: Debian GNU/Linux 8.9 (jessie) | |
| Release: 8.9 | |
| Codename: jessie | |
| Installing telegram-send | |
| # pip install telegram-send |
This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.
The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.
By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and swap.
NOTE: If you want to be sure that nothing is writing to /home you can either modify the host to boot into single-user mode OR try to use the
systemctl isolate runlevel1.target command to switch (not tested! should work).