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 | |
# | |
# KernelCare (https://kernelcare.com/) installation script | |
# Copyright (c) 2017 CloudLinux Inc. All Rights Reserved | |
# Unofficial edits by Shawn Holwegner | |
set -e -o pipefail | |
repo="https://repo.cloudlinux.com/kernelcare" | |
name="kernelcare-latest" |
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/local/bin/python | |
# Script used to check /var/log/iptables.log and penalize mail activity outside an allowed amount. | |
# you need to edit /etc/rsyslog.conf and add: "kern.warning /var/log/iptables.log" | |
# only supported by CentOS 6 and CentOS 7 currently. | |
from datetime import datetime | |
from datetime import timedelta | |
from collections import defaultdict | |
import subprocess |
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
<?php | |
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); | |
// the threshold for connections from a remote IP to be considered an attack | |
// default was 10 | |
$incomingThreshold = 11; | |
// send an email report? | |
$sendEmail = TRUE; | |
//SSH Port |
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
/* | |
* Minimalistic implementation of the XModem/YModem protocol suite, including | |
* a compact version of an CRC16 algorithm. The code is just enough to upload | |
* an image to an MCU that bootstraps itself over an UART. | |
* | |
* Copyright (c) 2014 Daniel Mack <github@zonque.org> | |
* | |
* License: MIT | |
*/ |