Entradas

Mostrando entradas de 2014

ICMP Monitor With MySQL - Linux

Imagen
Hello everyone, here is some code intended to help you monitor any node of your network using ICMP (ping), but, with a some help, you could load the hosts to test from a MySQL database and register the state of it on the same database. First Create a database and a table with some fields like an ID , a Description for the node (Just to have a human identification), the HostName or IP Address , and the State (This could have an UP or DOWN state) CREATE DATABASE MysqlDatabase; use MysqlDatabase;  CREATE TABLE `MysqlTable` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `Description` VARCHAR( 60 ) NOT NULL , `MysqlHostColumn` VARCHAR( 80 ) NOT NULL , `MysqlStateColumn` VARCHAR( 30 ) NOT NULL ); And insert some IP addresses or hostnames with some description for them:  INSERT INTO `MysqlTable` (`Description`, `MysqlHostColumn`, `MysqlStateColumn`) VALUES ('Gateway', '192.168.1.1', 'DOWN'); INSERT INTO `MysqlTable` (`Description`, `MysqlHostC

Virtualbox in Kali Linux Issue (Can't start virtual machine)

Imagen
This publication summarizes the procedure to enable Virtualbox to run in Kali Linux. After downloading and installing Virtualbox ( How to install )  , you configure your virtual machine, but while trying to start it you get an error. Issue: Description: After installing Virtualbox in Kali Linux, it is not possible to start a virtual machine. Action requested by virtualbox:    /etc/init.d/vboxdrv setup While executing that command you are requested to look for the error in the log file: cat /var/log/vbox-install.log Error found: Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop. Solution: Verify that the file /etc/apt/sources.list have the following lines (If not add them): deb http://http.kali.org/kali kali main contrib non-free deb http://security.kali.org/kali-security kali/updates main contrib non-free Execute: apt-get update Then execute:   apt-get install linux-headers-$