Nmap Development 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----- Hash: SHA1 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"; Brandon -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkg/p30ACgkQqaGPzAsl94Ie9wCgn1dMCAPdZ4SKG2nWVwrhnkJ1 co0An3rG7pincK8g1CIc6HY9GOjQZzMG =bfNh -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Implementing Nmap within a Java Program Supratim Sarkar (May 29)
- Re: Implementing Nmap within a Java Program Kris Katterjohn (May 29)
- Re: Implementing Nmap within a Java Program Supratim Sarkar (May 29)
- Re: Implementing Nmap within a Java Program Brandon Enright (May 30)
- Re: Implementing Nmap within a Java Program Supratim Sarkar (May 29)
- Re: Implementing Nmap within a Java Program Kris Katterjohn (May 29)