File/bin/port_scan.php

Description

/opt/nac/bin/portscan

Long description for file: Learn open ports from equipments allowed Currently it has 3 modes of operation: Normal: Without parameters Will get ips from devices allowed in the network and will scan them Scannow: With the parameter "scannow" Will get ips which have the scannow value set to 1 no matter if they are allowed in the network or not Manual: Every parameter passed through the command line will be taken as an ip to be scanned. No to be used in combination with the "scannow" parameter

Important: You have to define first networks to scan in the nac_netsallowed table

PHP version 5

LICENSE: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

Includes
 require_once ("funcs.inc.php") (line 37)
Functions
add_entry (line 594)
void add_entry ( $data)
  • $data
check_and_abort (line 659)
void check_and_abort ( $message,  $resource)
  • $message
  • $resource
check_existent (line 260)
void check_existent ( $data)
  • $data
check_requirements (line 120)
void check_requirements ()
check_service (line 566)
void check_service ( $ip,  $port,  $protocol,  $banner)
  • $ip
  • $port
  • $protocol
  • $banner
date_diff (line 944)
void date_diff ( $date1,  $date2,  $what)
  • $date1
  • $date2
  • $what
do_inventory (line 240)
void do_inventory ( $data_from_xml)
  • $data_from_xml
do_something (line 212)
void do_something ( $query)
  • $query
execute_query (line 583)
void execute_query ( $query)
  • $query
get_ips (line 699)
void get_ips ()
ip_to_bin (line 687)
void ip_to_bin ( $ip)
  • $ip
message (line 181)
void message ( $string)
  • $string
parse_scanfile (line 971)
void parse_scanfile ( $scan_file,  $list)
  • $scan_file
  • $list
scan (line 639)
void scan ( $xml_file,  $nmap_flags)
  • $xml_file
  • $nmap_flags
update_queries (line 225)
void update_queries ( $mesg,  $what)
  • $mesg
  • $what

Documentation generated on Mon, 06 Oct 2008 01:10:38 +0200 by phpDocumentor 1.4.0