in reply to Capturing the output of nmap from within a Perl script
Hope this helps :)my $cmd = "/usr/bin/nmap -sU -p 2300,6500 $ENV{'REMOTE_ADDR'}"; open NMAP, "$cmd|" or die $!; foreach (<NMAP>) { # process here ... }
Update: I think you can have security issues by enabling setuid root to nmap. Be careful. :)
|
|---|