Various persistence methods that can be investigated.
SHA Checksum Command (MAC OS)
shasum -a 512 FILE
References
| #!/bin/bash | |
| echo "โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ" | |
| echo "โ LINUX HARDENING SCRIPT โ" | |
| echo "โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ" | |
| echo " เผบเญจโโโโโโโโโโโโโโโโโโเญงเผป " | |
| echo "โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ" | |
| echo "โ filesystem โ" | |
| echo "โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ" | |
| echo "Enable hard/soft link protection." | |
| echo "fs.protected_hardlinks = 1" > /etc/sysctl.d/50-fs-hardening.conf && echo "fs.protected_symlinks = 1" >> /etc/sysctl.d/50-fs-hardening.conf |
| # | |
| # Example ternary to source a directory into PATH if it exists | |
| # | |
| [ -d $HOME/custom/dir ] && export PATH=$PATH:${HOME}/custom/dir | |
| # | |
| # Better way to source a path into the global environment through function calls | |
| # | |
| add_to_path() { [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]] && export PATH="$1:$PATH"; } |
| <!DOCTYPE html> | |
| <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="description" content="Repair stuck pixels & Burnin"><title>Screen Pixel Repair</title><style type="text/css">body,html,#v{margin:0;display:block;}</style></head> | |
| <script type="text/javascript">function s() {setInterval(v, 10);} function v(){c=document.getElementById("v"); | |
| c.width=window.innerWidth;c.height=window.innerHeight;var b=768;var t=c.getContext("2d");var d=t.createImageData(b,b); | |
| for (var i=0;i<b*b; i++){var p=i*4;d.data[p+3]=255;d.data[p+0]=Math.random()>=0.5?255:0;d.data[p+1]=Math.random()>=0.5?255:0;d.data[p+2]=Math.random()>=0.5?255:0;} | |
| for (var y=0;y<c.height;y+=b){for (var x=0;x<c.width;x+=b){t.putImageData(d,x,y);}} | |
| } | |
| </script> | |
| <body onload="s()"><canvas id="v"></canvas></body></html> |
Various persistence methods that can be investigated.
SHA Checksum Command (MAC OS)
shasum -a 512 FILE
References
| #!/bin/bash | |
| # init.sh | |
| # This script is meant to setup the environment for testing. | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "This must be run as root" | |
| exit | |
| fi | |
| INSTALLPATH="/opt/installers" |
| #!/usr/local/bin/python3 | |
| # Requires pynput package | |
| from time import sleep | |
| import sys | |
| banner = """ | |
| by: subfission | |
| ====================================== |
| # 2020-09-11 | |
| # Mozilla Guideline v5.6, Apache 2.4.41, OpenSSL 1.1.1d, intermediate configuration | |
| # https://ssl-config.mozilla.org/#server=apache&version=2.4.41&config=intermediate&openssl=1.1.1d&guideline=5.6 | |
| # this configuration requires mod_ssl, mod_socache_shmcb, mod_rewrite, and mod_headers | |
| <VirtualHost *:80> | |
| RewriteEngine On | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L] | |
| </VirtualHost> |
| _ _ _ ____ _ _ | |
| | | | | __ _ ___| | __ | __ ) __ _ ___| | _| | | |
| | |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / | | |
| | _ | (_| | (__| < | |_) | (_| | (__| <|_| | |
| |_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_) | |
| A DIY Guide | |
| #!/bin/bash | |
| # Coded By: Zach Jetson | |
| # | |
| # This script installs icinga director and dependencies for CentOS 7. | |
| # | |
| # Requirements | |
| # - icinga2, mysql, clean install | |
| # | |
| # usage: bash icinga_director_installer.sh | |
| # |