mailing list archives
Re: Implementing Nmap within a Java Program
From: Brandon Enright <bmenrigh () ucsd edu>
Date: Fri, 30 May 2008 07:06:31 +0000
-----BEGIN PGP SIGNED MESSAGE-----
On Fri, 30 May 2008 12:29:58 +0530 or thereabouts "Supratim Sarkar"
<supratimsarkar () gmail com> wrote:
Thanks for the reply Kris
About the nmap scan I am doing it only on 2 hosts. The same scan
running directly from command prompt takes around 80-90 sec ..but
when I do the execution from JAVA the XML file is not complete even
after 10 min or so. In fact the nmap process has to be killed from
task manager to be able to go forward in my java program.
Are you able to read STDOUT/STDERR during execution to get an idea of
what is actually going on? You might try adding -vvv -d3 to the
execution to get more detailed output.
My Java is _very_ rusty but in perl this would look something like:
open(NMAP, "nmap -d3 -vvv [commands] 2>&1 |") or die "Could not execute Nmap: $!\n";
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-----END PGP SIGNATURE-----
Sent through the nmap-dev mailing list
Archived at http://SecLists.Org