Author Archives: admin

Home »  Author: admin

Comments Off on Too many Tickets and Alarms in your Alienvault system?

Working on an Alienvault IDS system, the company that was setting it up made some mistakes and had over 50k alarms and over 50k tickets that they wanted removed.  Time to do some database changes to clear those out. ssh into the alienvault database server or all-in-one server, and jailbreak to the command line. use the ossim-db command: #  ossim-db use the alienvault database: > use alienvault First lets look at the tables involved with tickets – or incidents: > show tables like ‘incident%’; Now mark all the incidents as closed: > select * from incident where not status = “Closed” limit 5; Now look at the alarm tables: > show tables like ‘alarm%’; Now mark all alarms as closed: > update alarm set status = “closed”; Note: notice the incidents use a capitol on Closed, and the alarms use a lower case on closed.

Comments Off on So you play with wordpress and you want to see it but you want others to see an underconstruction page?

Here is a fun little modification you can make to the wordpress index.php so that only you can see the wordpress instance and everyone else will see an underconstruction image.  Keep in mind, this requires you to be connecting to your website from a static IP, or just update the file every time your IP changes….that works too. <?php /** * Front to the WordPress application. This file doesn’t do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ $ip=$_SERVER[‘REMOTE_ADDR’]; if ($ip == ‘’ || $ip == ‘ { /* Just replace and with your own ip addresses and anyone connecting to your wordpress instance from those IP addresses would see the wordpress site, everyone else would see a basic html […]

Comments Off on Adding a new server to a Mongo replica set

Ok, so you have a new mongo server setup and you want to add it to an existing replica set.  Lets just make this easy, we will talk authentication another time.  Assume this time you have your mongo server installed, you have the firewall setup to allow remote connections. edit the mongod.conf file – usually in /etc/mongod.conf make sure it is configured to listen on all interfaces, or the one you want… Make sure you add the same replica set name so that it can join the group. Login to your current primary mongo server execute this command to add it rs.add({“_id” : 3, “host” : “servername:27017”, “tags” : {“dc”: “dcname”}}) you can also add priority and such, but just keeping things simple here. Now the new server will sync the data and then it will be ready to go!

Comments Off on O Coraid, Coraid, wherefor art thou Coraid?

Well, it is sad that coraid has gone… Sadder still that their support is gone. I was working on a coraid for a friend and they had two disks fail at the same time, good old raid 5 doesn’t like that too much.  The new one’s are raid 6, but how to recover data off these raid5 ones?  Old notes to the rescue! First your remove the lun: remove 1 Now you need to recreate the raid but make sure to keep one drive as missing so that it will not initialize the whole array.  (in this case we are leaving dirve 6 as missing and drive 0 as an optional spare – if we want to risk an attempt at a rebuild) make -r 1 raid5 2.1-5 missing 2.7-15 Now you need to online the lun in order to see it on the servers online 1 Now you can […]

Comments Off on Installing Fusion-io/Sandisk ioDrive2 drivers on CentOS7 with LUKS encryption

I was working on a Mongo database server that was going to be running a Fusion-io/Sandisk ioDrive2 card for wicked speed, and also needed to do on disk encryption…fun task.  I am using CentOS7 and ioDrive2 drivers version 3.2.10.  I wanted auto mounting of the space, so I can have the services start on reboot (after putting in the LUKS password). 1. download drivers from (may need to make account first) (in this case v 3.2.10) 2. # tar xvf fusionio-files-*.tar 3. # uname -r (now check the binary available does it match your kernel? – mine did not) 4. # cd fusionio-files-*/ioDrive2/Linux_centos-7/3.2.10/Software\ Source 5. # rpmbuild –rebuild iomemory-vsl- 6. # cd ~/rpmbuild/RPMS/x86_64/ 7. # yum install iomemory-vsl-3.10.0*.rpm iomemory-vsl-config-3.10.0-*.rpm iomemory-vsl-source-3.2.10*.rpm 8. # cd ~/fusionio-files-*/ioDrive2/Linux_centos-7/3.2.10/Utilities/ 9. # yum install fio*.rpm 10. # yum install lib*.rpm 11. # mkdir /var/lib/mongo 12. # modprobe iomemory-vsl 13. # dmesg (to vierify that the […]

Comments Off on I am now a Certified Ethical Hacker (CEH)

Well, I am not one mention something about myself. I am actually more proud of my family, my wife and kids and their hard work and accomplishments. Today, I took the CEH (Certified Ethical Hacker) exam and passed! I am now officially a Certified Ethical Hacker…oh how funny that sounds. What does that mean? Well, this is off the website (They created the test): “The definition of an Ethical Hacker is very similar to a Penetration Tester. The Ethical Hacker is an individual who is usually employed with the organization and who can be trusted to undertake an attempt to penetrate networks and/or computer systems using the same methods and techniques as a Hacker.” so… basically I get to hack stuff, and get paid for it. Do you love your job?