NAME
Version: $Id: graphscan.pl,v 1.5 2004/08/31 13:42:55 mmanno Exp $
Date: 1.2004
Author: mm
v0.1 base, copied from Nmap::Scanner example/event_scan.pl
SYNOPSIS
use GD to draw png charts from nmap xml
Currently draws:
Port State
Port Numbers
OS Names
Port Service Type
Port Service Product Name
REQUIREMENTS
Modules:
GD::Graph must be installed
Nmap::Scanner of course
The following directories need to exist:
html/ images and html output will be saved here
results/ nmaps xml logs will be saved here
xml/ some stylesheets this script needs
Subs
usage
graphscan.pl [-v] [-u] [-p] [-c] [-H] [-x x] [-y y] [-f file] [-o dir] [-i dir] (-r opt|-R n|-l file)
i.e.: graphscan.pl -v -c -H -i /home/your/public_html -R 1001
save graph png
save_graph (Title, Savefile, ChartType, Data);
mk_filename
generate a timestamp for filenames
save scan
save scan xml to file
save_scan ( Nmap::Result );
save_html
generate html index page in imagedir
scan_complete
Store values
Generate images, if -c
port_found
Port Found Callback
unused
scan_started
Scan started Callback
unused