<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/nmap4j/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/nmap4j/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/nmap4j/bugs/</id><updated>2015-10-02T17:46:45.239000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>NMapProperties.getFullyFormattedCommand() not using sudoUser and sudoUserPassword properties</title><link href="https://sourceforge.net/p/nmap4j/bugs/6/" rel="alternate"/><published>2015-10-02T17:46:45.239000Z</published><updated>2015-10-02T17:46:45.239000Z</updated><author><name>Justin Cranford</name><uri>https://sourceforge.net/u/justincranford/</uri></author><id>https://sourceforge.net7f658b854f56f21a3c902d35dd44e4d24d37d0be</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I integrated Nmap4j into my application for nmap TCP SYN scanning. I tested on Windows and it works. When I test on Linux it fails because my application is running as non-root user.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://nmap.org/book/man-port-scanning-techniques.html" rel="nofollow"&gt;https://nmap.org/book/man-port-scanning-techniques.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Almost all scan types for nmap require root privileges, so nmap4j should ideally support sudo. In NMapProperties.java, I see variables sudoUser and sudoUserPassword are present. However, they are private with no way to set them.&lt;/p&gt;
&lt;p&gt;Ideally Nmap4j() constructor is  overloaded to accept optional sudo user, or optional sudo user and password. The values would be passed through to NMapProperties.java, and NMapProperties.getFullyFormattedCommand() would construct the command using sudo user, or sudo user and password, as appropriate.&lt;/p&gt;
&lt;p&gt;For me, the password is optional. I can add an entry to /etc/sudoers for my user to be able to run the nmap command without password. However, I am sure others would appreciate the option to specify the username and password. The end goal is the same, to have Nmap4J support privilege escalation required by nmap.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Nmap4j.getResult() is not thread safe</title><link href="https://sourceforge.net/p/nmap4j/bugs/5/" rel="alternate"/><published>2015-04-02T19:48:07.931000Z</published><updated>2015-04-02T19:48:07.931000Z</updated><author><name>Justin Cranford</name><uri>https://sourceforge.net/u/justincranford/</uri></author><id>https://sourceforge.nete1687dededb0377ed3d146308c395c07af658ecc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nmap4j.getResult() is not thread safe. Add synchronized keyword to Nmap4j.getResult(), or fix thread safety inside OnePassParser and NMapXmlHandler.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Script output is not handled</title><link href="https://sourceforge.net/p/nmap4j/bugs/4/" rel="alternate"/><published>2012-10-31T05:18:26Z</published><updated>2012-10-31T05:18:26Z</updated><author><name>Jon Svede</name><uri>https://sourceforge.net/u/jsvede/</uri></author><id>https://sourceforge.net5b24d3ac6720157fa7d300494f6e261c4158e63d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If users want to run scripts via NSE there is no way to return or retrieve the output in Nmap4j.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CPE element from XML is not handled</title><link href="https://sourceforge.net/p/nmap4j/bugs/3/" rel="alternate"/><published>2012-10-31T05:17:36Z</published><updated>2012-10-31T05:17:36Z</updated><author><name>Jon Svede</name><uri>https://sourceforge.net/u/jsvede/</uri></author><id>https://sourceforge.neta6bb05f498cf48795bb1cbe4a33aaa10bfc728f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Common Platform Enumeration (CPE) is colon delimited string that is optionally provided by Nmap on either the service tag or the osclass that contains variable information about the target that is useful. It is documented here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://nmap.org/book/output-formats-cpe.html" rel="nofollow"&gt;http://nmap.org/book/output-formats-cpe.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Nmap4j needs to include this information.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Addresses are not enumerated</title><link href="https://sourceforge.net/p/nmap4j/bugs/2/" rel="alternate"/><published>2012-10-31T03:53:20Z</published><updated>2012-10-31T03:53:20Z</updated><author><name>Jon Svede</name><uri>https://sourceforge.net/u/jsvede/</uri></author><id>https://sourceforge.net5d98b9806bb76f3451f1503b9be5b54ba9eba197</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I scan a host on which both MAC address and IP address present, only one is present in the Nmap4j.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ArgumentProperties.rdeplaceFlag() doesn't work as expected</title><link href="https://sourceforge.net/p/nmap4j/bugs/1/" rel="alternate"/><published>2011-06-09T03:22:37Z</published><updated>2011-06-09T03:22:37Z</updated><author><name>Jon Svede</name><uri>https://sourceforge.net/u/jsvede/</uri></author><id>https://sourceforge.netd53aa59b9f264a89ed9620308b4efb96efeece3c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The ArgumentProperties.replaceFlag() has an unexpected issue.  If a user wants to override the -oX option (which defaults '-' for std out) the rest of the code still assumes it is getting the XML from processes output stream but instead it needs to get it from the file.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>