Re: Nmap, tty and Perl

2009-06-27 Thread Noam Rathaus
Hi sara, I am not looking for direct HTML rendering, rather that nmap will give more updates during the process, at the moment it just tells you at the beging "hello" and when its done "here are the results". If you want to get an update on its progress you need to "press" a key on the tty. I wi

Re: Nmap, tty and Perl

2009-06-27 Thread sara fink
Hello Noam I see that you use -oX. You have another flag that you can use --stylesheet --stylesheet : XSL stylesheet to transform XML output to HTML Have you tried that? From Html you can convert to other formats. As for the more "interactively" to the user, I am not sure exactly what you

Re: Nmap, tty and Perl

2009-06-25 Thread Gabor Szabo
On Thu, Jun 25, 2009 at 10:59 AM, Noam Rathaus wrote: > Hi, > > I am trying to get nmap to be a bit more "friendly" by wrapping it > inside a perl script that will cause it to spit out a status by > "sending it a character": I don't know much about nmap but have you looked at either of the followi

Re: Nmap, tty and Perl

2009-06-25 Thread Noam Rathaus
Gabor, I did - but these two packages appear to be left-ware, they haven't been updated it quite a while. Nmap-Scanner = October 29, 2006 Nmap-Parser = 07 Nov 2008 The first appears much more dead then the second one, which is a shame as the first one is more comprehensive than the second one.

Re: Nmap, tty and Perl

2009-06-25 Thread Gabor Szabo
On Thu, Jun 25, 2009 at 12:19 PM, Noam Rathaus wrote: > Gabor, > > Those two are great packages, but they don't get a more frequent > progressbar than that which is spit out by Nmap, which is problematic > if you want to show it more "interactively" to the user. > > > BTW: > 1) the first one has se

Re: Nmap, tty and Perl

2009-06-25 Thread Shlomi Fish
Hi Noam! A few comments on your Perl code. On Thursday 25 June 2009 10:59:47 Noam Rathaus wrote: > Hi, > > I am trying to get nmap to be a bit more "friendly" by wrapping it > inside a perl script that will cause it to spit out a status by > "sending it a character": > == > #!/usr/bin/perl > use

Re: Nmap, tty and Perl

2009-06-25 Thread Noam Rathaus
Gabor, Those two are great packages, but they don't get a more frequent progressbar than that which is spit out by Nmap, which is problematic if you want to show it more "interactively" to the user. BTW: 1) the first one has several bugs, for example it gets stuck as it waits for the IO which ne

Nmap, tty and Perl

2009-06-25 Thread Noam Rathaus
Hi, I am trying to get nmap to be a bit more "friendly" by wrapping it inside a perl script that will cause it to spit out a status by "sending it a character": == #!/usr/bin/perl use IPC::Open3; use POSIX ":sys_wait_h"; use FileHandle; $| = 1; my $nmap = "/usr/bin/nmap"; my @ips = ('192.168.1.*'