Ubuntu 14.04 Request Tracker RT rt-4.2.14 RT for Incident Response RTIR 4.0.0
export http_proxy="http://10.x.x.x:3128"
export https_proxy="http://10.x.x.x.x:3128"
#!/bin/bash | |
# | |
# OpenVAS automation script. | |
# Mariusz B. / mgeeky, '17 | |
# v0.1 | |
# | |
trap ctrl_c INT | |
# --- CONFIGURATION --- |
# Bro-IDS Logstash parser | |
# Parts of this taken from http://www.appliednsm.com/wp-content/uploads/logstash-SObro22-parse.conf_.txt | |
#Logs being parsed: | |
#app_stats.log | |
#conn.log | |
#dns.log | |
#dpd.log | |
#files.log | |
#http.log |
cfq
(default I/O Scheduler in *nix) is inefficient for SSD, however, since there are no spinning platters involved. Instead, deadline
or noop
should be used instead. The deadline scheduler optimizes based on how long writes have been pending, while noop is just a simple FIFO queue.#!/bin/bash | |
# compiles WMIC for linux | |
apt-get install autoconf | |
cd /usr/src | |
wget http://www.openvas.org/download/wmi/wmi-1.3.14.tar.bz2 | |
bzip2 -cd wmi-1.3.14.tar.bz2 | tar xf - | |
cd wmi-1.3.14/ |
cat /usr/share/grafana/grafana-backup.sh | |
#!/bin/bash | |
DB="/var/lib/grafana/grafana.db" | |
BACKUP="/data/backup/grafana/grafana.db-$(date +%Y%m%d).bck" | |
SQLITE=/usr/bin/sqlite3 | |
ZIP=/bin/gzip | |
${SQLITE} ${DB} ".backup ${BACKUP}" | |
${ZIP} ${BACKUP} |
#!/bin/bash | |
PASS=`pwgen -s 40 1` | |
mysql -uroot <<MYSQL_SCRIPT | |
CREATE DATABASE $1; | |
CREATE USER '$1'@'localhost' IDENTIFIED BY '$PASS'; | |
GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost'; | |
FLUSH PRIVILEGES; | |
MYSQL_SCRIPT |
<?php | |
$data = [ | |
'jsonrpc' => '2.0', | |
'method' => 'backup', | |
'params' => [ | |
'authToken' => 'PUT_YOUR_TOKEN_HERE', | |
// 'id' => '11', | |
// 'userPass' => 'debian', | |
// 'text' => 'Keepass', |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
## Configure bro to write JSON logs | |
mkdir -p /opt/bro/share/bro/site/scripts | |
sudo tee /opt/bro/share/bro/site/scripts/json-logs.bro << EOF | |
@load tuning/json-logs | |
redef LogAscii::json_timestamps = JSON::TS_ISO8601; | |
redef LogAscii::use_json = T; | |
EOF | |
sudo tee -a /opt/bro/share/bro/site/local.bro << EOF |