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
use GD to draw png charts from nmap xml Currently draws: Port State Port Numbers OS Names Port Service Type Port Service Product Name
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
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 (Title, Savefile, ChartType, Data);
generate a timestamp for filenames
save scan xml to file save_scan ( Nmap::Result );
generate html index page in imagedir
Store values Generate images, if -c
Port Found Callback unused
Scan started Callback unused
To install Nmap::Scanner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nmap::Scanner
CPAN shell
perl -MCPAN -e shell install Nmap::Scanner
For more information on module installation, please visit the detailed CPAN module installation guide.