spaceout has asked for the wisdom of the Perl Monks concerning the following question:
Since nmap needs to run as root I keep getting permission problems. Is there an easy way around this? Thanks#!/usr/bin/perl use strict; my $output = `/usr/bin/nmap -sU -p 2300,6500 $ENV{'REMOTE_ADDR'}`; print "Content-type: text/html\n\n"; print $output;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capturing the output of nmap from within a Perl script
by Tanktalus (Canon) on Aug 08, 2005 at 23:53 UTC | |
by mrborisguy (Hermit) on Aug 09, 2005 at 01:10 UTC | |
by Anonymous Monk on Aug 08, 2005 at 23:59 UTC | |
by spiritway (Vicar) on Aug 09, 2005 at 01:05 UTC | |
|
Re: Capturing the output of nmap from within a Perl script
by izut (Chaplain) on Aug 08, 2005 at 23:49 UTC | |
|
Re: Capturing the output of nmap from within a Perl script
by ikegami (Patriarch) on Aug 09, 2005 at 03:51 UTC | |
|
Re: Capturing the output of nmap from within a Perl script
by ghenry (Vicar) on Sep 21, 2005 at 07:28 UTC |