spiceworks - free monitoring and alerting for windows and linux
How am I just now discovering Spiceworks? This is amazing, can’t believe it’s free*.
*they do collect info/data but it’s supposedly anonymized
How am I just now discovering Spiceworks? This is amazing, can’t believe it’s free*.
*they do collect info/data but it’s supposedly anonymized
This is so god damn handy that anyone who works on any kind of *nix system should bookmark it.
Quickly launch an Armitage teamserver with the servers IP address (eth0 by default, modify the script accordingly) automatically detected and with a pre-set password:
#!/bin/bash
echo “launching multiplayer hacking ;)”
echo “…”
ipaddr=`ip addr show eth0 | grep -w “inet” | gawk ‘{ print $2 }’ | cut -f1 -d\/`
echo “IP is $ipaddr”
echo “…”
cd /opt/metasploit/msf3/data/armitage/
/opt/metasploit/msf3/data/armitage/teamserver $ipaddr password
I want to start off by saying I am not an Oracle guy and my expertise is with VMware. Anyone who has ever purchased an Oracle product will tell you their licensing is abysmal to say the least. Their licensing model for VMware isn’t any better and they basically force you to use their virtualization product, Oracle VM, unless you have money to blow.
With that said, I was recently tasked with installing a two node Oracle VM cluster to support several database servers we will be migrating off physical boxes. After a hundred conference calls and another dozen internal meetings, for better or worse we chose to go with Oracle VM. In this tutorial I won’t talk about setting up the actual Oracle VM servers, just VM Manager.
Getting up a test/demo box is easy enough. Spin up Oracle Linux 6, mount the VM Manager 3.1.1 ISO, and hit enter a few times. If you’re like me and you are far from an Oracle guru then you may need some help getting Oracle Standard Edition installed first so you can run a supported environment (hint: Oracle XE isn’t supported in production =). Good portion of the below derived from this great writeup (thanks to the author!) mixed with my own experience and specific steps for Oracle VM Manager install.
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIRORACLE_HOSTNAME=HOSTNAME.FQDN; export ORACLE_HOSTNAME
ORACLE_UNQNAME=SID_NAME; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ovm; export ORACLE_SIDPATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
I installed my Oracle VM Manager as a virtual machine on a VMware vSphere cluster. I have no idea if this is supported or not as I couldn’t get a straight answer from anyone. As far as I know I am within licensing terms as Oracle VM is “free.” At least this is what I was told…
Tired of seeing “/w00tw00t.at.blackhats.romanian.anti-sec:)”, and the other variations, in your logs? First install fail2ban if you don’t have it already (you will wish you’d known about this sooner). Create a new file in /etc/fail2ban/filter.d/ called “w00tw00t.conf”. Inside put:
#block w00tw00t scans of all variations
[Definition]
failregex = ^<HOST> .*”GET \/w00tw00t*
ignoreregex =
Then edit /etc/fail2ban/jail.conf and at the bottom put:
[w00tw00t-scans]
enabled = true
action = iptables-allports
sendmail-whois[name=SSH, dest=root, sender=fail2ban@mail.com]
filter = w00tw00t
logpath = /var/log/httpd/access_log
maxretry = 1
bantime = 86400
Restart fail2ban and you’re good to go. You will now ban any IP running one of these automated scanners from connecting to your server, on any port, for 24 hours and get an email alert when it happens.
Oh Red Hat, sometimes I don’t get you. So it seems the “recommended” way of installing BIND on RHEL6 is now to just install normally (e.g. “yum install bind”) and let SELinux handle the security. My beef with this is how frustrating SELinux can be. Honestly every time I have to troubleshoot an issue with it I’m down at least two hours of my time and it just isn’t worth it to me. Maybe I’m SELinux retarded but this has always been my experience with it so I usually just end up disabling.
RHEL6 still includes a package in the repository for bind-chroot thankfully. However, it seems that now when you start named Red Hat does some voodoo by mounting all the normal bind directories and files on the chroot jail directories and files. Very weird, here’s what I mean:
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/etc/named on /var/named/chroot/etc/named type none (rw,bind)
/var/named on /var/named/chroot/var/named type none (rw,bind)
/etc/named.conf on /var/named/chroot/etc/named.conf type none (rw,bind)
/etc/named.rfc1912.zones on /var/named/chroot/etc/named.rfc1912.zones type none (rw,bind)
/etc/rndc.key on /var/named/chroot/etc/rndc.key type none (rw,bind)
/usr/lib64/bind on /var/named/chroot/usr/lib64/bind type none (rw,bind)
/etc/named.iscdlv.key on /var/named/chroot/etc/named.iscdlv.key type none (rw,bind)
/etc/named.root.key on /var/named/chroot/etc/named.root.key type none (rw,bind)
I’m guessing that it was too confusing for people having the symlinks and not knowing which files to edit? At any rate it was definitely different. So in RHEL6 just remember to edit /etc/named.conf now and then when you start/restart named your new config will actually be in the jail (e.g. /var/named/chroot/etc/named.conf).
The main issue I ran into bind-chroot on RHEL6.2 is that it was sorted of a busted install. During install the rndc.key file was not generated even though the documentation says it should be. So if after running yum install bind-chroot and you do not have /etc/rndc.key you need to create it manually:
rndc-confgen -a
chown root:named /etc/rndc.key
chmod 640 /etc/rndc.key
Despite Red Hat’s documentation, the key file actually needs 640 with named as the group or named will not start due to a permissions error.
Also if you are using bind-chroot make sure you disable SELinux by editing /etc/sysconfig/selinux and then rebooting.
loading tweets…