Author Archives for Luca Corbo
Ortro 1.3.3 Relesed!
This version includes some enhancements and fixes.
In evidence the capability to lock a host or a system so to lock all jobs at once such as the possibility to receive notification on job event (i.e. start and end).
In addition the File Watch plugin was added and the Service Check plugin now is able to check [...]
Ortro 1.3.2a available
This version includes some enhancements and fixes.
Now the Pear::Auth package is used for authentication and the timeout for long running jobs was added.
The memory free and mysql database table check plugins were added.
In addition the installer was improved and FCKeditor library was updated.
Help and comments are always welcome, see http://www.ortro.net for full changelog and details.
Enabling fingerprint scanner on ThinkPad running Ubuntu Hardy in four steps
Install the ThinkFinger utilities and the relative PAM module:
~$ sudo apt-get install thinkfinger-tools libpam-thinkfinger
Acquire and test your fingerprint:
~$ sudo tf-tool –acquire
~$ sudo tf-tool –verify
Enable the PAM module:
~$ sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable
Enjoy
Resources
- wiki.ubuntu.com/ThinkFinger
- Bug #203973 in thinkfinger (Ubuntu)
Discovery hosts and services with PHP and Nmap
Requirements:
- PHP5
- PEAR::Net_Nmap
- nmap
<?php
/**
* Scan network to retrieve hosts and services information.
*/
require_once 'Net/Nmap.php';
//Define the target to scan
$target = array('127.0.0.1','www.yourserver.com');
$options = array('nmap_binary' => '/usr/local/bin/nmap');
try {
$nmap = new Net_Nmap($options);
//Enable nmap options
$nmap_options = array('os_detection' => true,
[...]
Execute SQL script from a file using PHP
The code below allows to retrieve and execute all SQL statements defined in a SQL script file removing all comments.
<?php
$sql_file = 'test.sql';
$contents = file_get_contents($sql_file);
// Remove C style and inline comments
$comment_patterns = array('/\/\*.*(\n)*.*(\*\/)?/', //C comments
[...]
Ortro 1.3.1 released!
This version includes some enhancements, and one very important security fix, a cross-site scripting (XSS) vulnerability allows remote attackers to inject arbitrary web script or HTML.
We recommend everyone update immediately.
In addition to the security fix, the Net_Nmap library was updated making the autodiscovery without OS detection more faster, the capability to upload files for plugins [...]
Net_Nmap 1.0.0 beta1 released!
The Net_Nmap Pear package is a simple interface for Nmap, the free and open source utility for network exploration or security auditing.
Net_Nmap can be used to auto discovery hosts and services in your network or simply to parse Nmap XML output.
You may install it on your system simply typing:
$ pear install Net_Nmap
or if prefer download [...]
Execute commands on folder and files containing spaces
On Linux or Unix systems perform recursively a command on items might contain white space, quote marks, or backslashes can be a problem when using find | xargs combination.
To solve this you may use:
find -type d -print0 | xargs -0 <command>
find -type f -print0 | xargs -0 <command>
For example to fix recursively permission:
find -type d [...]
Ortro 1.3.0 is out!
The new stable version of Ortro has been released.
This version comes with some interesting features such us the auto discovery of the hosts and an import/export tools.
The Auto discovery tool is built on top of the Pear Net_Nmap library and allows to scan your network and successively add automatically the discovered hosts in a specified [...]


