Skip to content

Instantly share code, notes, and snippets.

@mokuso
mokuso / install-elastic.sh
Last active November 1, 2016 20:32
Installer to add the elasticsearch gpgkey, repository, and rpm package on el6 & el7.
#!/bin/bash
#
# This file will install elasticsearch gpgkey, repository, and rpm package on el6 & el7
# The elastic repositories do not work with older rpm based distributions that still use RPM v3, like CentOS5.
#
set -e
function install_rpm {
echo "* Installing elastic public key"
# Could check first (rpm -qi gpg-pubkey-d88e42b4)

Keybase proof

I hereby claim:

  • I am mokuso on github.
  • I am mokuso (https://keybase.io/mokuso) on keybase.
  • I have a public key whose fingerprint is EC94 9C18 0F88 2B33 EA2A 10C6 3BE6 9D36 8102 260C

To claim this, I am signing this object:

@mokuso
mokuso / sc_version.sh
Created October 5, 2015 12:58
Script reports the Tenable SecurityCenter version info.
#!/bin/sh
# Script reports the SecurityCenter version and build information.
# Requires jq to parse the json output
servers="192.168.x.x"
for server in $servers;
do
echo "Getting version information for $server."
#!/bin/sh
# Script requires jq to parse the Nessus 6 json output
# brew install jq
servers="192.168.111.12 192.168.111.14"
for server in $servers;
do
echo "Getting version information for $server."
#!/bin/sh
servers="address1 address2"
for server in $servers;
do
echo "Getting version information for $server."
resp=`curl -k https://$server:8835/feed 2>/dev/null`