This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/kolbanidze | |
| # Windows nmap and whois auto-installer | |
| from requests import get | |
| from os import system, mkdir, remove | |
| from os.path import exists | |
| from zipfile import ZipFile | |
| NMAP_DOWNLOAD_URL = "https://nmap.org/dist/nmap-7.94-setup.exe" | |
| WHOIS_DOWNLOAD_URL = "https://download.sysinternals.com/files/WhoIs.zip" | |
| WHOIS_INSTALL_FOLDER = "C:\whois" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Stupid Wake On Lan | |
| # Linux only. Requires package 'wol' to be installed (path to WOL binary can be configured in WOL_PATH) | |
| from customtkinter import CTk, CTkButton, CTkLabel, CTkEntry | |
| from dotenv import load_dotenv, set_key | |
| from os import getenv, system | |
| WOL_PATH = "/usr/bin/wol" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| TELEGRAM_TOKEN="" | |
| CHAT_ID="" | |
| if [ "$PAM_TYPE" != "open_session" ]; then | |
| exit 0 | |
| fi | |
| HOSTNAME=$(cat /etc/hostname) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import time | |
| import json | |
| import logging | |
| import os | |
| import urllib.parse | |
| # --- REQUIRED --- | |
| TELEGRAM_BOT_TOKEN = "" | |
| TELEGRAM_CHAT_ID = "" |