1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 3 4/** 5 * Net_Nmap Parse Test 6 * 7 * PHP version 5 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA 22 * 23 * @author Luca Corbo <lucor@ortro.net> 24 * @copyright 2008 Luca Corbo 25 * @license GNU/LGPL v2.1 26 * @link http://www.ortro.net 27 */ 28 29//The values used in tests for the $option array 30//define('OUTPUT_FILE', 'C:\testNmapSaveOutputFile1.xml'); 31//define('NMAP_BINARY', 'C:\Programmi\Nmap\nmap.EXE'); 32$nmap = exec('which nmap'); 33 34if ($nmap) { 35 define('NMAP_BINARY', $nmap); 36} 37 38define('OUTPUT_FILE', sys_get_temp_dir() . '/testNmapSaveOutputFile1.xml'); 39 40$nmap_options = array('os_detection' => true, 41 'service_info' => true, 42 'port_ranges' => 'U:53,111,137,T:21-25,80,139,8080', 43 ); 44