I hereby claim:
- I am lucabased on github.
- I am lucabased (https://keybase.io/lucabased) on keybase.
- I have a public key ASAtu6zYmK11P3OyNkM-J46N_9wGZT7ez1Rsd8zhULXobgo
To claim this, I am signing this object:
| #!/bin/bash | |
| function check_root() { | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "This script must be run as root!" 1>&2 | |
| exit 1 | |
| fi | |
| } | |
| function help_menu() { |
| import redis | |
| import os | |
| from urllib.parse import urlparse | |
| from time import time | |
| from concurrent.futures import ThreadPoolExecutor, as_completed | |
| # For colored output | |
| try: | |
| from colorama import init, Fore, Style | |
| init(autoreset=True) |
| #!/usr/bin/env bash | |
| # | |
| # harden_lynis.sh | |
| # | |
| # Description: | |
| # This script automates several recommendations from a Lynis scan | |
| # on a Debian/Ubuntu-like system. It installs recommended packages, | |
| # modifies SSH and password policies, restricts some kernel modules, | |
| # and sets up basic banners. Many items require manual review or | |
| # additional configuration to be truly effective. |
| #!/usr/bin/env bash | |
| # | |
| # Secure Server Setup & Hardening Script (Prompt Before Each Function) | |
| # | |
| # Description: | |
| # This script updates the system, installs useful packages, configures | |
| # security enhancements (UFW, Fail2Ban, SSH hardening, sysctl tweaks), | |
| # blacklists known bad IPs, restricts some ICMP types, adds a non-root user, | |
| # and performs basic system audits—now prompting the user to confirm (y/n) | |
| # before each function executes. |
| Sub RemoveRowsNotEqualToOneOrBefore2023() | |
| Dim ws As Worksheet | |
| Dim lastRow As Long | |
| Dim i As Long | |
| ' Set the worksheet you want to work with | |
| Set ws = ThisWorkbook.Sheets(1) ' Change 1 to the index or name of your sheet | |
| ' Find the last row in the sheet | |
| lastRow = ws.Cells(ws.Rows.Count, "H").End(xlUp).Row |
| #!/bin/bash | |
| # Exit immediately if a command exits with a non-zero status. | |
| set -e | |
| # Variables | |
| DOCKER_COMPOSE_DIR="/opt/devbox" | |
| # Function to stop and remove Docker containers | |
| remove_docker_containers() { |
| # NOTE => For use in Windows Server R2016 | |
| # Ensure script runs with administrative privileges | |
| If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(` | |
| [Security.Principal.WindowsBuiltinRole] "Administrator")) { | |
| Write-Host "Please run this script as Administrator." -ForegroundColor Red | |
| Exit 1 | |
| } |
I hereby claim:
To claim this, I am signing this object: