This file contains 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
{ | |
"file_integrity": { | |
"enabled": true, | |
"directories": [ | |
"/etc", | |
"/bin", | |
"/sbin", | |
"/usr/bin", | |
"/usr/sbin" | |
], |
This file contains 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
#!/bin/bash | |
# Function to check if a command exists | |
command_exists() { | |
command -v "$1" >/dev/null 2>&1 | |
} | |
# Function to install Python3 based on the system | |
install_python3() { | |
echo "Installing Python3..." |
This file contains 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 python | |
import socket | |
import threading | |
import time | |
import random | |
import json | |
import os | |
import re | |
from loguru import logger |
This file contains 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
function rm () { | |
if [ -z $1 ] ; then | |
echo "Error: No file specified\n" | |
return 1; | |
else | |
if [[ -f $1 ]]; then | |
FILESIZE=$(stat -c%s "$1") | |
if [[ $FILESIZE -gt 10485760 ]]; then | |
screen -dmS srm zsh -c "srm -rvzf $1; notify-send \"File-remove operation on file '$1' has completed.\"; beep -f 900 -l 100 -D 50; beep -f 1800 -l 200" | |
echo "This file-remove operation will take a while, so it's been executed in the background (screen).\n" |
This file contains 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
ssl = { | |
key = "/etc/prosody/certs/domain-private.key"; | |
certificate = "/etc/prosody/certs/domain-cert.crt"; | |
options = { "no_sslv2", "no_sslv3", "no_ticket", "no_compression", "cipher_server_preference" }; | |
ciphers = "kECDH:HIGH:!MEDIUM:!LOW:!NULL:!DSS:!AES128-SHA:!AES128-SHA256:!CAMELLIA128-SHA:!aNULL@STRENGTH"; | |
dhparam = "/etc/prosody/dhparam.pem"; | |
}; | |
c2s_require_encryption = true |