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 656)
void add_entry ( $data)
  • $data
check_and_abort (line 739)
void check_and_abort ( $message,  $resource)
  • $message
  • $resource
check_existent (line 282)
void check_existent ( $data)
  • $data
check_requirements (line 122)
void check_requirements ()
check_service (line 626)
void check_service ( $ip,  $port,  $protocol,  $banner)
  • $ip
  • $port
  • $protocol
  • $banner
date_diff (line 1024)
void date_diff ( $date1,  $date2,  $what)
  • $date1
  • $date2
  • $what
do_inventory (line 256)
void do_inventory ( $data_from_xml)
  • $data_from_xml
do_something (line 214)
void do_something ( $query)
  • $query
execute_query (line 645)
void execute_query ( $query)
  • $query
get_ips (line 779)
void get_ips ()
ip_to_bin (line 767)
void ip_to_bin ( $ip)
  • $ip
message (line 183)
void message ( $string)
  • $string
parse_scanfile (line 1051)
void parse_scanfile ( $scan_file,  $list)
  • $scan_file
  • $list
scan (line 708)
void scan ( $xml_file,  $nmap_flags)
  • $xml_file
  • $nmap_flags
update_queries (line 235)
void update_queries ( $mesg,  $what)
  • $mesg
  • $what

Documentation generated on Mon, 06 Feb 2012 01:10:52 +0100 by phpDocumentor 1.4.0