<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-395</id>
	<title>Nabble - Nmap - Dev</title>
	<updated>2009-12-21T23:55:58Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Nmap---Dev-f395.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nmap---Dev-f395.html" />
	<subtitle type="html">Unmoderated technical development forum for debating ideas, patches, and suggestions regarding proposed changes to Nmap and related projects. - comments provided by seclists.org</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26884984</id>
	<title>Re: Kerberos probes for nmap</title>
	<published>2009-12-21T23:55:58Z</published>
	<updated>2009-12-21T23:55:58Z</updated>
	<author>
		<name>Patrik Karlsson-7</name>
	</author>
	<content type="html">Hi again,
&lt;br&gt;&lt;br&gt;I forgot to attach the signatures. Here they are:
&lt;br&gt;&lt;br&gt;Heimdal - Linux
&lt;br&gt;&lt;br&gt;SF-Port88-UDP:V=5.10BETA1%I=7%D=12/22%Time=4B307A41%P=i386-apple-darwin10.2.0%r(Kerberos,64,&amp;quot;~b0`\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;SF:\x0f20091222075021Z\xa5\x05\x02\x03\x02\xbc\xda\xa6\x03\x02\x01&amp;lt;\xa9\x0
&lt;br&gt;SF:4\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06krbtgt\x
&lt;br&gt;SF:1b\x02NM\xab\x16\x1b\x14No\x20client\x20in\x20request&amp;quot;);
&lt;br&gt;&lt;br&gt;AD - Windows
&lt;br&gt;&lt;br&gt;SF-Port88-UDP:V=5.10BETA1%I=7%D=12/22%Time=4B3079C6%P=i386-apple-darwin10.2.0%r(Kerberos,4C,&amp;quot;~J0H\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;SF:\x0f20091222074817Z\xa5\x05\x02\x03\x07A\xc0\xa6\x03\x02\x01D\xa9\x04\x
&lt;br&gt;SF:1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06krbtgt\x1b\
&lt;br&gt;SF:x02NM&amp;quot;);
&lt;br&gt;&lt;br&gt;//Patrik
&lt;br&gt;&lt;br&gt;On 22 dec 2009, at 08.01, David Fifield wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Dec 16, 2009 at 02:38:30AM +0100, Patrik Karlsson wrote:
&lt;br&gt;&amp;gt;&amp;gt; Here's a modified version of the packet where I have removed the things you mentioned.
&lt;br&gt;&amp;gt;&amp;gt; I have not touched the algorithms, because I'm uncertain which ones to leave.
&lt;br&gt;&amp;gt;&amp;gt; Removing some of them could reduce the footprint size by some 10 bytes or so.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I ran the new probe against my Heimdal which got me:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=7%D=12/16%Time=4B283757%P=i386-apple-darwin10.2.0%r(Kerberos,69,&amp;quot;~g0e\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;&amp;gt;&amp;gt; SF:\x0f20091216012641Z\xa5\x05\x02\x03\x0e/\xc3\xa6\x03\x02\x01&amp;lt;\xa9\x15\x
&lt;br&gt;&amp;gt;&amp;gt; SF:1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa0\x03\x02\x01\0\xa1\x020\0\xa
&lt;br&gt;&amp;gt;&amp;gt; SF:b\x16\x1b\x14No\x20server\x20in\x20request&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I also tested it against a Windows server and it worked well, even
&lt;br&gt;&amp;gt;&amp;gt; returned the name of the realm. Unfortunately I don't have access to a
&lt;br&gt;&amp;gt;&amp;gt; OS X kerberos server or to MIT Kerberos for additional testing.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just tried the probe against Mac OS X (which I think uses MIT
&lt;br&gt;&amp;gt; Kerberos) and it didn't get a response. I tried re-added the server name
&lt;br&gt;&amp;gt; and that got a response. This time the error message returned was
&lt;br&gt;&amp;gt; NULL_CLIENT instead of CLIENT_NOT_FOUND. Would you see if this probe
&lt;br&gt;&amp;gt; works for you? I think it's the same as your original except that it
&lt;br&gt;&amp;gt; uses the 1970-01-01 date and doesn't have a client name.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Probe UDP Kerberos
&lt;br&gt;&amp;gt; q|\x6a\x81\x6e\x30\x81\x6b\xa1\x03\x02\x01\x05\xa2\x03\x02\x01\x0a\xa4\x81\x5e\x30\x5c\xa0\x07\x03\x05\0\x50\x80\0\x10\xa2\x04\x1b\x02NM\xa3\x17\x30\x15\xa0\x03\x02\x01\0\xa1\x0e\x30\x0c\x1b\x06krbtgt\x1b\x02NM\xa5\x11\x18\x0f19700101000000Z\xa7\x06\x02\x04\x1f\x1e\xb9\xd9\xa8\x17\x30\x15\x02\x01\x12\x02\x01\x11\x02\x01\x10\x02\x01\x17\x02\x01\x01\x02\x01\x03\x02\x01\x02|
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here's the response I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=2%D=12/21%Time=4B306D97%P=i686-pc-linux-gnu%r(
&lt;br&gt;&amp;gt; SF:Kerberos,6F,&amp;quot;~m0k\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa2\x11\x18\x
&lt;br&gt;&amp;gt; SF:0f19860718214913Z\xa4\x11\x18\x0f20091222065618Z\xa5\x05\x02\x03\x03G\x
&lt;br&gt;&amp;gt; SF:e7\xa6\x03\x02\x01\x06\xa9\x04\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0
&lt;br&gt;&amp;gt; SF:\xa1\x0e0\x0c\x1b\x06krbtgt\x1b\x02NM\xab\x0e\x1b\x0cNULL_CLIENT\0&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; User Datagram Protocol, Src Port: kerberos (88), Dst Port: 46208 (46208)
&lt;br&gt;&amp;gt; Kerberos KRB-ERROR
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Pvno: 5
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;MSG Type: KRB-ERROR (30)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;ctime: 1986-07-18 21:49:13 (UTC)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;stime: 2009-12-22 06:56:18 (UTC)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;susec: 215015
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;error_code: KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN (6)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Realm: NM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Server Name (Unknown): krbtgt/NM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;e-text: NULL_CLIENT
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Also, what tool are you using to make these packets? I was able to add
&lt;br&gt;&amp;gt; the server name by hand but it's tricky to keep all the ASN.1 length
&lt;br&gt;&amp;gt; values updated.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; David Fifield
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Sent through the nmap-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&amp;gt; Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;Patrik Karlsson
&lt;br&gt;&lt;a href=&quot;http://www.cqure.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cqure.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Kerberos-probes-for-nmap-tp26556632p26884984.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26884859</id>
	<title>Re: Kerberos probes for nmap</title>
	<published>2009-12-21T23:40:13Z</published>
	<updated>2009-12-21T23:40:13Z</updated>
	<author>
		<name>Patrik Karlsson-7</name>
	</author>
	<content type="html">Hi David,
&lt;br&gt;&lt;br&gt;Heimdal now returns an error &amp;quot;No client in request&amp;quot; while Windows is saying KDC_ERR_WRONG_REALM.
&lt;br&gt;&lt;br&gt;When building my KrbGuess tool, that guesses valid usernames against a Kerberos server, I had to look into the details of the Kerberos protocol. I wrote some code that builds Kerberos packets, that unfortunately doesn't handle removing the stuff I have done now. So I have done it all by hand too. 
&lt;br&gt;&lt;br&gt;//Patrik
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 22 dec 2009, at 08.01, David Fifield wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, Dec 16, 2009 at 02:38:30AM +0100, Patrik Karlsson wrote:
&lt;br&gt;&amp;gt;&amp;gt; Here's a modified version of the packet where I have removed the things you mentioned.
&lt;br&gt;&amp;gt;&amp;gt; I have not touched the algorithms, because I'm uncertain which ones to leave.
&lt;br&gt;&amp;gt;&amp;gt; Removing some of them could reduce the footprint size by some 10 bytes or so.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I ran the new probe against my Heimdal which got me:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=7%D=12/16%Time=4B283757%P=i386-apple-darwin10.2.0%r(Kerberos,69,&amp;quot;~g0e\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;&amp;gt;&amp;gt; SF:\x0f20091216012641Z\xa5\x05\x02\x03\x0e/\xc3\xa6\x03\x02\x01&amp;lt;\xa9\x15\x
&lt;br&gt;&amp;gt;&amp;gt; SF:1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa0\x03\x02\x01\0\xa1\x020\0\xa
&lt;br&gt;&amp;gt;&amp;gt; SF:b\x16\x1b\x14No\x20server\x20in\x20request&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I also tested it against a Windows server and it worked well, even
&lt;br&gt;&amp;gt;&amp;gt; returned the name of the realm. Unfortunately I don't have access to a
&lt;br&gt;&amp;gt;&amp;gt; OS X kerberos server or to MIT Kerberos for additional testing.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just tried the probe against Mac OS X (which I think uses MIT
&lt;br&gt;&amp;gt; Kerberos) and it didn't get a response. I tried re-added the server name
&lt;br&gt;&amp;gt; and that got a response. This time the error message returned was
&lt;br&gt;&amp;gt; NULL_CLIENT instead of CLIENT_NOT_FOUND. Would you see if this probe
&lt;br&gt;&amp;gt; works for you? I think it's the same as your original except that it
&lt;br&gt;&amp;gt; uses the 1970-01-01 date and doesn't have a client name.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Probe UDP Kerberos
&lt;br&gt;&amp;gt; q|\x6a\x81\x6e\x30\x81\x6b\xa1\x03\x02\x01\x05\xa2\x03\x02\x01\x0a\xa4\x81\x5e\x30\x5c\xa0\x07\x03\x05\0\x50\x80\0\x10\xa2\x04\x1b\x02NM\xa3\x17\x30\x15\xa0\x03\x02\x01\0\xa1\x0e\x30\x0c\x1b\x06krbtgt\x1b\x02NM\xa5\x11\x18\x0f19700101000000Z\xa7\x06\x02\x04\x1f\x1e\xb9\xd9\xa8\x17\x30\x15\x02\x01\x12\x02\x01\x11\x02\x01\x10\x02\x01\x17\x02\x01\x01\x02\x01\x03\x02\x01\x02|
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here's the response I get:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=2%D=12/21%Time=4B306D97%P=i686-pc-linux-gnu%r(
&lt;br&gt;&amp;gt; SF:Kerberos,6F,&amp;quot;~m0k\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa2\x11\x18\x
&lt;br&gt;&amp;gt; SF:0f19860718214913Z\xa4\x11\x18\x0f20091222065618Z\xa5\x05\x02\x03\x03G\x
&lt;br&gt;&amp;gt; SF:e7\xa6\x03\x02\x01\x06\xa9\x04\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0
&lt;br&gt;&amp;gt; SF:\xa1\x0e0\x0c\x1b\x06krbtgt\x1b\x02NM\xab\x0e\x1b\x0cNULL_CLIENT\0&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; User Datagram Protocol, Src Port: kerberos (88), Dst Port: 46208 (46208)
&lt;br&gt;&amp;gt; Kerberos KRB-ERROR
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Pvno: 5
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;MSG Type: KRB-ERROR (30)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;ctime: 1986-07-18 21:49:13 (UTC)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;stime: 2009-12-22 06:56:18 (UTC)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;susec: 215015
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;error_code: KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN (6)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Realm: NM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Server Name (Unknown): krbtgt/NM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;e-text: NULL_CLIENT
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Also, what tool are you using to make these packets? I was able to add
&lt;br&gt;&amp;gt; the server name by hand but it's tricky to keep all the ASN.1 length
&lt;br&gt;&amp;gt; values updated.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; David Fifield
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Sent through the nmap-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&amp;gt; Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;Patrik Karlsson
&lt;br&gt;&lt;a href=&quot;http://www.cqure.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cqure.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Kerberos-probes-for-nmap-tp26556632p26884859.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26884665</id>
	<title>Re: Kerberos probes for nmap</title>
	<published>2009-12-21T23:01:22Z</published>
	<updated>2009-12-21T23:01:22Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Wed, Dec 16, 2009 at 02:38:30AM +0100, Patrik Karlsson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Here's a modified version of the packet where I have removed the things you mentioned.
&lt;br&gt;&amp;gt; I have not touched the algorithms, because I'm uncertain which ones to leave.
&lt;br&gt;&amp;gt; Removing some of them could reduce the footprint size by some 10 bytes or so.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I ran the new probe against my Heimdal which got me:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=7%D=12/16%Time=4B283757%P=i386-apple-darwin10.2.0%r(Kerberos,69,&amp;quot;~g0e\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;&amp;gt; SF:\x0f20091216012641Z\xa5\x05\x02\x03\x0e/\xc3\xa6\x03\x02\x01&amp;lt;\xa9\x15\x
&lt;br&gt;&amp;gt; SF:1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa0\x03\x02\x01\0\xa1\x020\0\xa
&lt;br&gt;&amp;gt; SF:b\x16\x1b\x14No\x20server\x20in\x20request&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I also tested it against a Windows server and it worked well, even
&lt;br&gt;&amp;gt; returned the name of the realm. Unfortunately I don't have access to a
&lt;br&gt;&amp;gt; OS X kerberos server or to MIT Kerberos for additional testing.
&lt;/div&gt;&lt;br&gt;I just tried the probe against Mac OS X (which I think uses MIT
&lt;br&gt;Kerberos) and it didn't get a response. I tried re-added the server name
&lt;br&gt;and that got a response. This time the error message returned was
&lt;br&gt;NULL_CLIENT instead of CLIENT_NOT_FOUND. Would you see if this probe
&lt;br&gt;works for you? I think it's the same as your original except that it
&lt;br&gt;uses the 1970-01-01 date and doesn't have a client name.
&lt;br&gt;&lt;br&gt;Probe UDP Kerberos
&lt;br&gt;q|\x6a\x81\x6e\x30\x81\x6b\xa1\x03\x02\x01\x05\xa2\x03\x02\x01\x0a\xa4\x81\x5e\x30\x5c\xa0\x07\x03\x05\0\x50\x80\0\x10\xa2\x04\x1b\x02NM\xa3\x17\x30\x15\xa0\x03\x02\x01\0\xa1\x0e\x30\x0c\x1b\x06krbtgt\x1b\x02NM\xa5\x11\x18\x0f19700101000000Z\xa7\x06\x02\x04\x1f\x1e\xb9\xd9\xa8\x17\x30\x15\x02\x01\x12\x02\x01\x11\x02\x01\x10\x02\x01\x17\x02\x01\x01\x02\x01\x03\x02\x01\x02|
&lt;br&gt;&lt;br&gt;Here's the response I get:
&lt;br&gt;&lt;br&gt;SF-Port88-UDP:V=5.10BETA1%I=2%D=12/21%Time=4B306D97%P=i686-pc-linux-gnu%r(
&lt;br&gt;SF:Kerberos,6F,&amp;quot;~m0k\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa2\x11\x18\x
&lt;br&gt;SF:0f19860718214913Z\xa4\x11\x18\x0f20091222065618Z\xa5\x05\x02\x03\x03G\x
&lt;br&gt;SF:e7\xa6\x03\x02\x01\x06\xa9\x04\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0
&lt;br&gt;SF:\xa1\x0e0\x0c\x1b\x06krbtgt\x1b\x02NM\xab\x0e\x1b\x0cNULL_CLIENT\0&amp;quot;);
&lt;br&gt;&lt;br&gt;User Datagram Protocol, Src Port: kerberos (88), Dst Port: 46208 (46208)
&lt;br&gt;Kerberos KRB-ERROR
&lt;br&gt;&amp;nbsp; &amp;nbsp; Pvno: 5
&lt;br&gt;&amp;nbsp; &amp;nbsp; MSG Type: KRB-ERROR (30)
&lt;br&gt;&amp;nbsp; &amp;nbsp; ctime: 1986-07-18 21:49:13 (UTC)
&lt;br&gt;&amp;nbsp; &amp;nbsp; stime: 2009-12-22 06:56:18 (UTC)
&lt;br&gt;&amp;nbsp; &amp;nbsp; susec: 215015
&lt;br&gt;&amp;nbsp; &amp;nbsp; error_code: KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN (6)
&lt;br&gt;&amp;nbsp; &amp;nbsp; Realm: NM
&lt;br&gt;&amp;nbsp; &amp;nbsp; Server Name (Unknown): krbtgt/NM
&lt;br&gt;&amp;nbsp; &amp;nbsp; e-text: NULL_CLIENT
&lt;br&gt;&lt;br&gt;Also, what tool are you using to make these packets? I was able to add
&lt;br&gt;the server name by hand but it's tricky to keep all the ASN.1 length
&lt;br&gt;values updated.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Kerberos-probes-for-nmap-tp26556632p26884665.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26882426</id>
	<title>Re: Zenmap Target - Still cant fix it !</title>
	<published>2009-12-21T16:38:59Z</published>
	<updated>2009-12-21T16:38:59Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Sun, Dec 20, 2009 at 09:21:55AM +0800, Mike E-Wire Mail wrote:
&lt;br&gt;&amp;gt; Recently I raised an issue about clearing Zenmap target history.
&lt;br&gt;&amp;gt; The very quick reply sounded fine and I deleted the relevant file.
&lt;br&gt;&amp;gt; Unfortunately this didnt fix the problem so I assumed that Zenmap was &amp;nbsp;
&lt;br&gt;&amp;gt; getting its history from elsewhere. As I couldnt find another likely &amp;nbsp;
&lt;br&gt;&amp;gt; file I unistalled both NMap and Zenmap - a simple task.
&lt;br&gt;&amp;gt; After reinstalling both I assumed all would be fixed. It wasnt !!! The &amp;nbsp;
&lt;br&gt;&amp;gt; same long list appears.
&lt;br&gt;&amp;gt; So where does Zenmap really get its info from ?
&lt;br&gt;&amp;gt; Any help would be good. Thanks
&lt;br&gt;&lt;br&gt;target_list.txt is the only place Zenmap stores is list of targets. Try
&lt;br&gt;searching for any any other copies of that file. The one you deleted
&lt;br&gt;might have been in a directory of a previous installation or something.
&lt;br&gt;&lt;br&gt;If you're running as root on Unix you have to delete
&lt;br&gt;/root/.zenmap/target_list.txt, not the one in your normal user's home
&lt;br&gt;directory.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zenmap-Target---Still-cant-fix-it-%21-tp26860228p26882426.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26879655</id>
	<title>Re: [NSE] NTP info gathering script...</title>
	<published>2009-12-21T12:36:28Z</published>
	<updated>2009-12-21T12:36:28Z</updated>
	<author>
		<name>Ron (list)</name>
	</author>
	<content type="html">Hey,
&lt;br&gt;&lt;br&gt;For what it's worth, I've already gotten a lot of value out of this script.
&lt;br&gt;&lt;br&gt;Thanks for writing it!
&lt;br&gt;&lt;br&gt;Ron
&lt;br&gt;&lt;br&gt;On 11/28/2009 01:30 PM, Richard Sammet wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; as there is no NTP info gathering script yet, I decided to assemble one:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $&amp;gt; &amp;nbsp;nmap --script=ntp-info -sV -sU -p 123 192.168.1.33 -n
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Starting Nmap 5.00 ( &lt;a href=&quot;http://nmap.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org&lt;/a&gt;&amp;nbsp;) at 2009-11-28 20:22 CET
&lt;br&gt;&amp;gt; Interesting ports on 192.168.1.33:
&lt;br&gt;&amp;gt; PORT &amp;nbsp; &amp;nbsp;STATE SERVICE VERSION
&lt;br&gt;&amp;gt; 123/udp open &amp;nbsp;ntp &amp;nbsp; &amp;nbsp; NTP v4
&lt;br&gt;&amp;gt; | &amp;nbsp;ntp-info:
&lt;br&gt;&amp;gt; | &amp;nbsp;|_version: ntpd &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26879655&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4.2.4p6@...&lt;/a&gt; Thu Oct 22 21:58:37 UTC 2009 (1)
&lt;br&gt;&amp;gt; | &amp;nbsp;|_processor: i686
&lt;br&gt;&amp;gt; | &amp;nbsp;|_system: Linux/2.6.31-15-generic
&lt;br&gt;&amp;gt; |_ |_refid: 91.189.94.4
&lt;br&gt;&amp;gt; MAC Address: 00:0C:29:15:50:0C (VMware)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Service detection performed. Please report any incorrect results at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://nmap.org/submit/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org/submit/&lt;/a&gt;&amp;nbsp;.
&lt;br&gt;&amp;gt; Nmap done: 1 IP address (1 host up) scanned in 3.58 seconds
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;&amp;lt;&amp;lt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please find it attached. &amp;nbsp;Some testing would be good ;)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greetings,
&lt;br&gt;&amp;gt; Richard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Sent through the nmap-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&amp;gt; Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-NSE--NTP-info-gathering-script...-tp26569433p26879655.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26879559</id>
	<title>Re: [NSE] NTP info gathering script...</title>
	<published>2009-12-21T12:28:43Z</published>
	<updated>2009-12-21T12:28:43Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Mon, Dec 14, 2009 at 06:55:31PM +0100, Richard Sammet wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi David,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Sun, Dec 13, 2009 at 12:46 AM, David Fifield &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26879559&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; &amp;gt; * As a consequence of the above, short timeouts are no longer required,
&lt;br&gt;&amp;gt; &amp;gt;  so I removed the timeout code to just use the defaults.
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; well, it looks like this was a bad idea ;) I performed some extensive
&lt;br&gt;&amp;gt; tests with the version you checked in to the trunk and I noted that
&lt;br&gt;&amp;gt; the script now &amp;quot;blocks&amp;quot; the hole scan if no data is returned by the
&lt;br&gt;&amp;gt; ntp server while waiting for the default timeout value which is -
&lt;br&gt;&amp;gt; obviously - to long.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The benchmarks:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; command and options: ./nmap -sU -p 123 --script=ntp-info
&lt;br&gt;&amp;gt; XXX.XXX.72.0/24 XXX.XXX.12.0/24 --open -n -T5 --max-hostgroup 128
&lt;br&gt;&amp;gt; --max-retries 1 -vvv -PN
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Script with default timeouts (version from trunk):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Nmap done: 512 IP addresses (512 hosts up) scanned in 1640.67 seconds
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Raw packets sent: 1021 (77.596KB) | Rcvd: 22 (1608B)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Script with modified timeouts:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Nmap done: 512 IP addresses (512 hosts up) scanned in 65.72 seconds
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Raw packets sent: 1020 (77.520KB) | Rcvd: 18 (1232B)
&lt;/div&gt;&lt;br&gt;You're right. I hadn't considered that the script will run for
&lt;br&gt;open|filtered ports. The 30-second default timeout is too long to do
&lt;br&gt;many of those. I think the proposed timeouts of 5500, 3500, 3000, 1500,
&lt;br&gt;and 750 ms, differing based on timing template, are overall too short.
&lt;br&gt;I've set a static timeout of 5000 ms, as is used in some other UDP
&lt;br&gt;scripts, and changed the script not to wait for a response to the second
&lt;br&gt;probe if the first one didn't work.
&lt;br&gt;&lt;br&gt;If this is still too slow, a way to do this scan faster is to increase
&lt;br&gt;--max-parallelism, which will increase the number of simultaneous
&lt;br&gt;sockets used by NSE. It is 20 by default.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-NSE--NTP-info-gathering-script...-tp26569433p26879559.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26878814</id>
	<title>Re: [PATCH]  Allow NSE script to set service info without -sV</title>
	<published>2009-12-21T11:27:26Z</published>
	<updated>2009-12-21T11:27:26Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Sat, Dec 19, 2009 at 11:27:45AM -0600, Tom Sellers wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have attached a patch that changes nmap behavior so that NSE scripts can
&lt;br&gt;&amp;gt; modify a service's product, version, extrainfo, ostype and devicetype
&lt;br&gt;&amp;gt; even if nmap was called without version detection (-sV).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as I can tell nmap will not let you set these values unless version
&lt;br&gt;&amp;gt; detection is requested. &amp;nbsp;I often want to run very targeted scans against
&lt;br&gt;&amp;gt; a service using a script, output that data to XML and then use ruby code
&lt;br&gt;&amp;gt; to parse and report on the findings. &amp;nbsp;If this change is implemented I can
&lt;br&gt;&amp;gt; cut down on the network overhead and potential impact on my targets.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In nse_nmaplib.cc starting at line 551 the code logic says that if a service
&lt;br&gt;&amp;gt; scan is requested set all the service values (product, version, etc), if
&lt;br&gt;&amp;gt; not just set the probe state, name and tunnel values.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The change I made basically detects if any of the normally unset values
&lt;br&gt;&amp;gt; have been populated, if so set the o.servicescan value to be true. &amp;nbsp;I had
&lt;br&gt;&amp;gt; tried just writing the values out without touching the o.servicescan variable
&lt;br&gt;&amp;gt; but this tripped an assert in NmapOutputTable.cc because there were not
&lt;br&gt;&amp;gt; enough columns allocated in the service table output.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ultimately the change I settled on consists of adding the following two
&lt;br&gt;&amp;gt; lines to nse_nmaplib.cc:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; if ( product || version || extrainfo || hostname || ostype || devicetype )
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; o.servicescan = true;
&lt;/div&gt;&lt;br&gt;I'd like you to try solving this a different way. In the printportoutput
&lt;br&gt;function in output.cc, it allocates an extra column in the output table
&lt;br&gt;if o.servicescan is true. You could change this to do a quick pass over
&lt;br&gt;the port table (encapsulated in a function) to check if any ports have
&lt;br&gt;version results. That function would also always return true if
&lt;br&gt;o.servicescan is set. With the new Port structure after the recent
&lt;br&gt;memory reduction work, all you have to do is check that Port::service is
&lt;br&gt;non-NULL.
&lt;br&gt;&lt;br&gt;I don't think there's a good reason for l_set_port_version to refuse to
&lt;br&gt;store all the service information if o.servicescan is not set. You
&lt;br&gt;should take that out if it doesn't cause problems.
&lt;br&gt;&lt;br&gt;The reason I don't like changing o.servicescan is that it might have
&lt;br&gt;side effects. In fact, won't that cause a real service scan to be run
&lt;br&gt;for following host groups?
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH---Allow-NSE-script-to-set-service-info-without--sV-tp26856935p26878814.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26878688</id>
	<title>Re: POC Payloader dat</title>
	<published>2009-12-21T11:16:59Z</published>
	<updated>2009-12-21T11:16:59Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Sat, Dec 19, 2009 at 12:16:59PM -0500, Jay Fink wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Dec 14, 2009 at 7:38 PM, Jay Fink &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26878688&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jay.fink@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Sun, Dec 13, 2009 at 5:32 PM, David Fifield &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26878688&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; That looks pretty good, but if we're not going to be 100% compatible
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; with Unicornscan's file, then there's no need for ours to look like
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; theirs. The braces and semicolon can be removed. I'm thinking about a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; format more like we have in nmap-service-probes, with named fields
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; instead of positional values.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; /* comment */
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; payload udp 1604,1645,1812
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;\x1e\x00\x01\x30\x02\xfd\xa8\xe3\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; source 100
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Attached is a sample of this; I guess the only question I have is do
&lt;br&gt;&amp;gt; we really need the payload label? Wouldn't it be simpler with just:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; /* payload_citrix */
&lt;br&gt;&amp;gt; udp &amp;nbsp;1604,1645,1812
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;quot;\x1e\x00\x01\x30\x02\xfd\xa8\xe3\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;quot;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; source 100
&lt;/div&gt;&lt;br&gt;Thanks, that looks really good. Now that I've thought about it some
&lt;br&gt;more, I think the file should use # comments instead of /* */ comments
&lt;br&gt;for uniformity with the other data files. Commonents would still be
&lt;br&gt;allowed between lines of the payload.
&lt;br&gt;&lt;br&gt;I agree with you that we don't need the &amp;quot;payload&amp;quot; specifier. &amp;quot;udp&amp;quot; works
&lt;br&gt;fine as a keyword.
&lt;br&gt;&lt;br&gt;I'm happy with this format if you want to get started.
&lt;br&gt;&lt;br&gt;&amp;gt; So basically - pending that first label - I am about ready to jump off.
&lt;br&gt;&amp;gt; I will need to do some more mining to figure out which payloads can
&lt;br&gt;&amp;gt; share dports and who might need a non-magic sport but at least with
&lt;br&gt;&amp;gt; the format down I can get started.
&lt;br&gt;&lt;br&gt;So far our needs for this are modest. The radius probe having two
&lt;br&gt;destination ports and the ike wanting a source port of 500 are the only
&lt;br&gt;examples I know of.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/POC-Payloader-dat-tp26482085p26878688.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26876591</id>
	<title>Re: [SCRIPT] IBM DB2 Server Profile export + Version detection</title>
	<published>2009-12-21T08:41:55Z</published>
	<updated>2009-12-21T08:41:55Z</updated>
	<author>
		<name>Ron (list)</name>
	</author>
	<content type="html">Works great for me against a handful of work servers!
&lt;br&gt;&lt;br&gt;The only issue I had is that port 523 isn't in the default portlist, so 
&lt;br&gt;make sure you give it on the commandline if you're testing this.
&lt;br&gt;&lt;br&gt;Ron
&lt;br&gt;&lt;br&gt;On 12/19/2009 07:41 AM, Tom Sellers wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have finally (only a month late) finished the script to query the IBM DB2
&lt;br&gt;&amp;gt; Administration Server (DAS) service. The script connects to the DB2 DAS
&lt;br&gt;&amp;gt; service
&lt;br&gt;&amp;gt; on either TCP or UDP port 523. No authentication is required for the
&lt;br&gt;&amp;gt; connection.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The data it returns matches what would be returned if one were to use
&lt;br&gt;&amp;gt; the Export
&lt;br&gt;&amp;gt; Server Profile command using the DB2 Control Center GUI:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; PORT STATE SERVICE VERSION
&lt;br&gt;&amp;gt; 523/tcp open ibm-db2 IBM DB2 Database Server 9.07.0
&lt;br&gt;&amp;gt; | db2-das-info: DB2 Administration Server Settings
&lt;br&gt;&amp;gt; | ;DB2 Server Database Access Profile
&lt;br&gt;&amp;gt; | ;Use BINARY file transfer
&lt;br&gt;&amp;gt; | ;Comment lines start with a &amp;quot;;&amp;quot;
&lt;br&gt;&amp;gt; | ;Other lines must be one of the following two types:
&lt;br&gt;&amp;gt; | ;Type A: [section_name]
&lt;br&gt;&amp;gt; | ;Type B: keyword=value
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [File_Description]
&lt;br&gt;&amp;gt; | Application=DB2/LINUX 9.7.0
&lt;br&gt;&amp;gt; | Platform=18
&lt;br&gt;&amp;gt; | File_Content=DB2 Server Definitions
&lt;br&gt;&amp;gt; | File_Type=CommonServer
&lt;br&gt;&amp;gt; | File_Format_Version=1.0
&lt;br&gt;&amp;gt; | DB2System=MYBIGDATABASESERVER
&lt;br&gt;&amp;gt; | ServerType=DB2LINUX
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [adminst&amp;gt;dasusr1]
&lt;br&gt;&amp;gt; | NodeType=1
&lt;br&gt;&amp;gt; | DB2Comm=TCPIP
&lt;br&gt;&amp;gt; | Authentication=SERVER
&lt;br&gt;&amp;gt; | HostName=MYBIGDATABASESERVER
&lt;br&gt;&amp;gt; | PortNumber=523
&lt;br&gt;&amp;gt; | IpAddress=127.0.1.1
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [inst&amp;gt;db2inst1]
&lt;br&gt;&amp;gt; | NodeType=1
&lt;br&gt;&amp;gt; | DB2Comm=TCPIP
&lt;br&gt;&amp;gt; | Authentication=SERVER
&lt;br&gt;&amp;gt; | HostName=MYBIGDATABASESERVER
&lt;br&gt;&amp;gt; | ServiceName=db2c_db2inst1
&lt;br&gt;&amp;gt; | PortNumber=50000
&lt;br&gt;&amp;gt; | IpAddress=127.0.1.1
&lt;br&gt;&amp;gt; | QuietMode=No
&lt;br&gt;&amp;gt; | TMDatabase=1ST_CONN
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [db&amp;gt;db2inst1:TOOLSDB]
&lt;br&gt;&amp;gt; | DBAlias=TOOLSDB
&lt;br&gt;&amp;gt; | DBName=TOOLSDB
&lt;br&gt;&amp;gt; | Drive=/home/db2inst1
&lt;br&gt;&amp;gt; | Dir_entry_type=INDIRECT
&lt;br&gt;&amp;gt; |_Authentication=NOTSPEC
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The script will also set the service product and version data if possible.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There is quite a bit of recon value in the data returned:
&lt;br&gt;&amp;gt; DB2 version, server OS/platform, database names and port numbers, file
&lt;br&gt;&amp;gt; system
&lt;br&gt;&amp;gt; path names, hostname and IP address.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Oddly enough I have see DB2 return the IPv6 address when queried over
&lt;br&gt;&amp;gt; the IPv4 interface.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any testing or feedback with the functionality and structure of the
&lt;br&gt;&amp;gt; script would
&lt;br&gt;&amp;gt; be greatly appreciated!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Of particular interest are:
&lt;br&gt;&amp;gt; 1. Is the feedback too verbose? This is the format that the server returns
&lt;br&gt;&amp;gt; the data in, barring some noise prior to the data. Should this be
&lt;br&gt;&amp;gt; parsed out and reformatted?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2. If you test it on server I would love to see feedback on the Platform
&lt;br&gt;&amp;gt; numbers that are returned and on what OSes. So far I have seen
&lt;br&gt;&amp;gt; Platform=18 on Linux and Platform=5 on Windows.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tom
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Sent through the nmap-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&amp;gt; Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCRIPT--IBM-DB2-Server-Profile-export-%2B-Version-detection-tp26855113p26876591.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26868707</id>
	<title>Re: nmap-dev Zenmap Target - Still cant fix it ! (Mike E-Wire Mail)</title>
	<published>2009-12-20T16:40:35Z</published>
	<updated>2009-12-20T16:40:35Z</updated>
	<author>
		<name>Wolf Halton</name>
	</author>
	<content type="html">I thought this might be a fun problem to solve.  I cannot duplicate the issue in zenmap 5.0 on Ubuntu Linux 9.10.  
&lt;br&gt;What operating system are you using?
&lt;br&gt;-wolf
&lt;br&gt;&lt;br&gt;--Find out What You Need To Know - Network Security News
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Does your Windows Computer run slow? &amp;nbsp;Find out how to speed it up to how it ran when it was NEW! ComputerRepairBuddy.com
&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;Message: 2
&lt;br&gt;Date: Sun, 20 Dec 2009 09:21:55 +0800
&lt;br&gt;From: Mike E-Wire Mail &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26868707&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mikeody@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Zenmap Target - Still cant fix it !
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26868707&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nmap-dev@...&lt;/a&gt;
&lt;br&gt;Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26868707&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4B2D7C33.90402@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Content-Type: text/plain; charset=ISO-8859-1; format=flowed
&lt;br&gt;&lt;br&gt;Recently I raised an issue about clearing Zenmap target history.
&lt;br&gt;The very quick reply sounded fine and I deleted the relevant file.
&lt;br&gt;Unfortunately this didnt fix the problem so I assumed that Zenmap was 
&lt;br&gt;getting its history from elsewhere. As I couldnt find another likely 
&lt;br&gt;file I unistalled both NMap and Zenmap - a simple task.
&lt;br&gt;After reinstalling both I assumed all would be fixed. It wasnt !!! The 
&lt;br&gt;same long list appears.
&lt;br&gt;So where does Zenmap really get its info from ?
&lt;br&gt;Any help would be good. Thanks
&lt;br&gt;A copy of my previous posting is as follows :
&lt;br&gt;&lt;br&gt;/&amp;quot;I have an irritating but [I am sure] simple question to ask re Zenmap 
&lt;br&gt;and was wondering if someone could help please ? On the main interface 
&lt;br&gt;screen the box labeled 'Target' contains a list of the IP addresses and 
&lt;br&gt;[in some cases host names] of scan targets that have taken place - in 
&lt;br&gt;most cases I have NOT saved the results from these scans. I am trying to 
&lt;br&gt;clear out this list but cannot find the file where the IP addresses/host 
&lt;br&gt;names have been stored. Can anyone help please ? Thanks&amp;quot;./
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26868707&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nmap-dev@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;End of nmap-dev Digest, Vol 57, Issue 25
&lt;br&gt;****************************************
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-nmap-dev-Zenmap-Target---Still-cant-fix-it-%21-%28Mike-E-Wire-Mail%29-tp26868707p26868707.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26860228</id>
	<title>Zenmap Target - Still cant fix it !</title>
	<published>2009-12-19T17:21:55Z</published>
	<updated>2009-12-19T17:21:55Z</updated>
	<author>
		<name>Mike E-Wire Mail</name>
	</author>
	<content type="html">Recently I raised an issue about clearing Zenmap target history.
&lt;br&gt;The very quick reply sounded fine and I deleted the relevant file.
&lt;br&gt;Unfortunately this didnt fix the problem so I assumed that Zenmap was 
&lt;br&gt;getting its history from elsewhere. As I couldnt find another likely 
&lt;br&gt;file I unistalled both NMap and Zenmap - a simple task.
&lt;br&gt;After reinstalling both I assumed all would be fixed. It wasnt !!! The 
&lt;br&gt;same long list appears.
&lt;br&gt;So where does Zenmap really get its info from ?
&lt;br&gt;Any help would be good. Thanks
&lt;br&gt;A copy of my previous posting is as follows :
&lt;br&gt;&lt;br&gt;/&amp;quot;I have an irritating but [I am sure] simple question to ask re Zenmap 
&lt;br&gt;and was wondering if someone could help please ? On the main interface 
&lt;br&gt;screen the box labeled 'Target' contains a list of the IP addresses and 
&lt;br&gt;[in some cases host names] of scan targets that have taken place - in 
&lt;br&gt;most cases I have NOT saved the results from these scans. I am trying to 
&lt;br&gt;clear out this list but cannot find the file where the IP addresses/host 
&lt;br&gt;names have been stored. Can anyone help please ? Thanks&amp;quot;./
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zenmap-Target---Still-cant-fix-it-%21-tp26860228p26860228.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26883457</id>
	<title>Re: [SCRIPT] IBM DB2 Server Profile export + Version detection</title>
	<published>2009-12-19T15:29:42Z</published>
	<updated>2009-12-19T15:29:42Z</updated>
	<author>
		<name>Patrik Karlsson-7</name>
	</author>
	<content type="html">Hi Tom,
&lt;br&gt;&lt;br&gt;I ran the script against both Windows and Linux and at first it looked great. Looking a bit closer I noticed that the server profile ended in the middle of a node description. Running the script against the same server several times sometimes ended up with a complete server profile and other times with just half of it.
&lt;br&gt;&lt;br&gt;My guess is that as your script searches for the beginning of the profile and breaks the loop once it detects it, you sometimes end up with incomplete data in the receive buffer, needing to call it again to retrieve the remaining data. I made some small changes so that it reads until it finds &amp;quot;\r\n\0&amp;quot; at the end of the receive buffer instead and then breaks. This change allowed me to get consistent results. If your interested in the diff let me know.
&lt;br&gt;&lt;br&gt;An even better (or overambitious?) solution might be to read a fixed length data header of the socket, retrieve the length of the data from this header, and then read the remaining data from the socket. That would require protocol documentation/knowledge or some packet analysis though. I did some initial packet analysis and found some stuff that was the same in each packet and some bytes that probably contain length info. 
&lt;br&gt;&lt;br&gt;Regarding the platform, I'm seeing 5 for windows, but 30 for Linux. 
&lt;br&gt;I'm running it on a 64-bit Linux platform, don't know if this makes a difference.
&lt;br&gt;&lt;br&gt;| [File_Description]
&lt;br&gt;| Application=DB2/LINUXX8664 9.7.0
&lt;br&gt;| Platform=30
&lt;br&gt;| File_Content=DB2 Server Definitions
&lt;br&gt;| File_Type=CommonServer
&lt;br&gt;| File_Format_Version=1.0
&lt;br&gt;| DB2System=HARDY-SRV01
&lt;br&gt;| ServerType=DB2LINUXX8664
&lt;br&gt;&lt;br&gt;| [File_Description]
&lt;br&gt;| Application=DB2/NT 9.7.0
&lt;br&gt;| Platform=5
&lt;br&gt;| File_Content=DB2 Server Definitions
&lt;br&gt;| File_Type=CommonServer
&lt;br&gt;| File_Format_Version=1.0
&lt;br&gt;| DB2System=EDUSRV011
&lt;br&gt;| ServerType=DB2NT
&lt;br&gt;&lt;br&gt;&lt;br&gt;//Patrik
&lt;br&gt;&lt;br&gt;On 19 dec 2009, at 14.41, Tom Sellers wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have finally (only a month late) finished the script to query the IBM DB2
&lt;br&gt;&amp;gt; Administration Server (DAS) service. &amp;nbsp;The script connects to the DB2 DAS service
&lt;br&gt;&amp;gt; on either TCP or UDP port 523. &amp;nbsp;No authentication is required for the connection.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The data it returns matches what would be returned if one were to use the Export
&lt;br&gt;&amp;gt; Server Profile command using the DB2 Control Center GUI:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; PORT &amp;nbsp; &amp;nbsp;STATE SERVICE VERSION
&lt;br&gt;&amp;gt; 523/tcp open &amp;nbsp;ibm-db2 IBM DB2 Database Server 9.07.0
&lt;br&gt;&amp;gt; | db2-das-info: DB2 Administration Server Settings
&lt;br&gt;&amp;gt; | ;DB2 Server Database Access Profile
&lt;br&gt;&amp;gt; | ;Use BINARY file transfer
&lt;br&gt;&amp;gt; | ;Comment lines start with a &amp;quot;;&amp;quot;
&lt;br&gt;&amp;gt; | ;Other lines must be one of the following two types:
&lt;br&gt;&amp;gt; | ;Type A: [section_name]
&lt;br&gt;&amp;gt; | ;Type B: keyword=value
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [File_Description]
&lt;br&gt;&amp;gt; | Application=DB2/LINUX 9.7.0
&lt;br&gt;&amp;gt; | Platform=18
&lt;br&gt;&amp;gt; | File_Content=DB2 Server Definitions
&lt;br&gt;&amp;gt; | File_Type=CommonServer
&lt;br&gt;&amp;gt; | File_Format_Version=1.0
&lt;br&gt;&amp;gt; | DB2System=MYBIGDATABASESERVER
&lt;br&gt;&amp;gt; | ServerType=DB2LINUX
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [adminst&amp;gt;dasusr1]
&lt;br&gt;&amp;gt; | NodeType=1
&lt;br&gt;&amp;gt; | DB2Comm=TCPIP
&lt;br&gt;&amp;gt; | Authentication=SERVER
&lt;br&gt;&amp;gt; | HostName=MYBIGDATABASESERVER
&lt;br&gt;&amp;gt; | PortNumber=523
&lt;br&gt;&amp;gt; | IpAddress=127.0.1.1
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [inst&amp;gt;db2inst1]
&lt;br&gt;&amp;gt; | NodeType=1
&lt;br&gt;&amp;gt; | DB2Comm=TCPIP
&lt;br&gt;&amp;gt; | Authentication=SERVER
&lt;br&gt;&amp;gt; | HostName=MYBIGDATABASESERVER
&lt;br&gt;&amp;gt; | ServiceName=db2c_db2inst1
&lt;br&gt;&amp;gt; | PortNumber=50000
&lt;br&gt;&amp;gt; | IpAddress=127.0.1.1
&lt;br&gt;&amp;gt; | QuietMode=No
&lt;br&gt;&amp;gt; | TMDatabase=1ST_CONN
&lt;br&gt;&amp;gt; |
&lt;br&gt;&amp;gt; | [db&amp;gt;db2inst1:TOOLSDB]
&lt;br&gt;&amp;gt; | DBAlias=TOOLSDB
&lt;br&gt;&amp;gt; | DBName=TOOLSDB
&lt;br&gt;&amp;gt; | Drive=/home/db2inst1
&lt;br&gt;&amp;gt; | Dir_entry_type=INDIRECT
&lt;br&gt;&amp;gt; |_Authentication=NOTSPEC
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The script will also set the service product and version data if possible.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is quite a bit of recon value in the data returned:
&lt;br&gt;&amp;gt; DB2 version, server OS/platform, database names and port numbers, file system
&lt;br&gt;&amp;gt; path names, hostname and IP address.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Oddly enough I have see DB2 return the IPv6 address when queried over the IPv4 interface.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any testing or feedback with the functionality and structure of the script would
&lt;br&gt;&amp;gt; be greatly appreciated!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Of particular interest are:
&lt;br&gt;&amp;gt; 1. &amp;nbsp;Is the feedback too verbose? &amp;nbsp;This is the format that the server returns
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;the data in, barring some noise prior to the data. &amp;nbsp;Should this be
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;parsed out and reformatted?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2. &amp;nbsp;If you test it on server I would love to see feedback on the Platform
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;numbers that are returned and on what OSes. &amp;nbsp;So far I have seen
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Platform=18 on Linux and Platform=5 on Windows.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Tom
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;db2-das-info.nse&amp;gt;_______________________________________________
&lt;br&gt;&amp;gt; Sent through the nmap-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&amp;gt; Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;Patrik Karlsson
&lt;br&gt;&lt;a href=&quot;http://www.cqure.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cqure.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCRIPT--IBM-DB2-Server-Profile-export-%2B-Version-detection-tp26855113p26883457.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26859118</id>
	<title>Re: Nmap's memory use</title>
	<published>2009-12-19T14:19:26Z</published>
	<updated>2009-12-19T14:19:26Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Thu, Nov 19, 2009 at 06:04:58PM -0700, David Fifield wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; We've had some report recently about Nmap using a lot of memory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;quot;Port memory bloat&amp;quot;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://seclists.org/nmap-dev/2009/q3/926&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/2009/q3/926&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;quot;nmap 5 memory usage&amp;quot;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://seclists.org/nmap-dev/2009/q4/300&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/2009/q4/300&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In the first link above, Pavel Kankovsky observed that it is the Port
&lt;br&gt;&amp;gt; class that is using up most of the memory in some scans. My preliminary
&lt;br&gt;&amp;gt; tests agree with this. I used the Massif memory profiling too
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://valgrind.org/docs/manual/ms-manual.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://valgrind.org/docs/manual/ms-manual.html&lt;/a&gt;) from the Valgrind suite
&lt;br&gt;&amp;gt; as follows:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Pavel provided a patch that reduces the memory usage of all the Ports in
&lt;br&gt;&amp;gt; the default state at the end. I think that is the right idea. I am going
&lt;br&gt;&amp;gt; to try to see if there's a way to reduce their memory use even further,
&lt;br&gt;&amp;gt; perhaps by changing the programming interface so that the creation of
&lt;br&gt;&amp;gt; discrete objects isn't necessary.
&lt;/div&gt;&lt;br&gt;I've finished working on memory reduction for now. Apart from the
&lt;br&gt;earlier nmap-os-db parsing memory improvement described in
&lt;br&gt;&lt;a href=&quot;http://seclists.org/nmap-dev/2009/q4/479&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/2009/q4/479&lt;/a&gt;, I just merged two more
&lt;br&gt;important improvements from the nmap-mem branch in r16308.
&lt;br&gt;&lt;br&gt;For a bit of context, first look at this benchmark scan, all UDP ports
&lt;br&gt;on four hosts. It uses a maximum of 33.63 MB, almost all of it coming
&lt;br&gt;from addPort at the end of the scan.
&lt;br&gt;&lt;a href=&quot;http://www.bamsoftware.com/wiki/Nmap/Memory#a20091118&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bamsoftware.com/wiki/Nmap/Memory#a20091118&lt;/a&gt;&lt;br&gt;&lt;br&gt;The first new improvement was a reduction in size of Port objects. I
&lt;br&gt;used Pavel's idea of dynamically allocating parts of Port that aren't
&lt;br&gt;need for every port, like service and RPC information. The size of a
&lt;br&gt;bare Port object dropped from 92 to 40 bytes on my machine. Now the peak
&lt;br&gt;memory usage is 17.66 MB.
&lt;br&gt;&lt;a href=&quot;http://www.bamsoftware.com/wiki/Nmap/Memory#r16276&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bamsoftware.com/wiki/Nmap/Memory#r16276&lt;/a&gt;&lt;br&gt;&lt;br&gt;The second improvement is to avoid allocating some Port objects at all.
&lt;br&gt;In many scans, the majority of probes don't receive a response. The big
&lt;br&gt;spike in memory at the end of the previous two graphs is thousands of
&lt;br&gt;Ports being created for the open|filtered ports that didn't respond. Now
&lt;br&gt;the code has a notion of a &amp;quot;default port state&amp;quot; for ports that don't get
&lt;br&gt;a response. All the ports in the default state share a single Port
&lt;br&gt;object. This further reduced memory use to 5.94 MB.
&lt;br&gt;&lt;a href=&quot;http://www.bamsoftware.com/wiki/Nmap/Memory#r16290&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bamsoftware.com/wiki/Nmap/Memory#r16290&lt;/a&gt;&lt;br&gt;&lt;br&gt;The second improvement won't help, for example, when TCP ports are
&lt;br&gt;closed because of RSTs rather than being filtered, but you will still
&lt;br&gt;get the benefit of smaller Port objects.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nmap%27s-memory-use-tp26436986p26859118.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26883396</id>
	<title>Re: Citrix scripts</title>
	<published>2009-12-19T12:36:47Z</published>
	<updated>2009-12-19T12:36:47Z</updated>
	<author>
		<name>Patrik Karlsson-7</name>
	</author>
	<content type="html">Hi Tom,
&lt;br&gt;&lt;br&gt;Nice to hear that the scripts are working and that they're retrieving the information they're expected to.
&lt;br&gt;The ACL's are particularly interesting when searching for Citrix applications published anonymously.
&lt;br&gt;&lt;br&gt;//Patrik
&lt;br&gt;&lt;br&gt;On 19 dec 2009, at 15.19, Tom Sellers wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Patrik,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	Thanks for writing this code. &amp;nbsp;I have recently run it against quite a few server
&lt;br&gt;&amp;gt; and I really dig the output of published applications and who has rights to them. &amp;nbsp;Excellent
&lt;br&gt;&amp;gt; for use by a PenTester or System Admin that is looking for improperly secured apps.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Kodos!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Tom
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 12/2/2009 3:19 PM, Patrik Karlsson wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I have re-worked and documented my Citrix scripts and made some changes and additions.
&lt;br&gt;&amp;gt;&amp;gt; The new scripts target the XML Service rather than the ICA Browser and therefore can do more.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; As an example the XML versions of the application enumeration script does not only fetch a list of all published applications but also the required user or group memberships needed to access them. It will also find applications published anonymously.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; The Citrix XML Service usually listens to ports 80, 443 or 8080. It can be identified by the following server header: &amp;quot;Citrix Web PN Server&amp;quot;. It can also &amp;quot;share ports&amp;quot; with IIS by running as an ISAP filter.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I am attaching a zip file with the lot and a brief explanation of each file.
&lt;br&gt;&amp;gt;&amp;gt; Feedback, suggestions and bug reports are most welcome!
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; The zip contains 6 files:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; citrix-enum-apps-xml.nse
&lt;br&gt;&amp;gt;&amp;gt; - A script that queries the Citrix XML Service for a list of applications
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; citrix-enum-apps.nse
&lt;br&gt;&amp;gt;&amp;gt; - A script that queries the ICA Browser for a list of applications
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; citrix-enum-servers-xml.nse
&lt;br&gt;&amp;gt;&amp;gt; -A script that queries the Citrix XML Service for a list of Citrix servers
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; citrix-enum-servers.nse
&lt;br&gt;&amp;gt;&amp;gt; - A script that queries the ICA Browser for a list of Citrix servers
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; citrix-brute-xml.nse
&lt;br&gt;&amp;gt;&amp;gt; - A script that attempts to guess usernames and passwords against the Citrix XML service
&lt;br&gt;&amp;gt;&amp;gt; - It allows you to perform password guessing against the local Windows server or the domain
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; citrixxml.lua
&lt;br&gt;&amp;gt;&amp;gt; - The library containing some of the many XML requests and response parsers
&lt;br&gt;&amp;gt; ed at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Sent through the nmap-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&amp;gt; Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;Patrik Karlsson
&lt;br&gt;&lt;a href=&quot;http://www.cqure.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cqure.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Citrix-scripts-tp26616658p26883396.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26856935</id>
	<title>[PATCH]  Allow NSE script to set service info without -sV</title>
	<published>2009-12-19T09:27:45Z</published>
	<updated>2009-12-19T09:27:45Z</updated>
	<author>
		<name>Tom Sellers</name>
	</author>
	<content type="html">I have attached a patch that changes nmap behavior so that NSE scripts can
&lt;br&gt;modify a service's product, version, extrainfo, ostype and devicetype
&lt;br&gt;even if nmap was called without version detection (-sV).
&lt;br&gt;&lt;br&gt;As far as I can tell nmap will not let you set these values unless version
&lt;br&gt;detection is requested. &amp;nbsp;I often want to run very targeted scans against
&lt;br&gt;a service using a script, output that data to XML and then use ruby code
&lt;br&gt;to parse and report on the findings. &amp;nbsp;If this change is implemented I can
&lt;br&gt;cut down on the network overhead and potential impact on my targets.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;In nse_nmaplib.cc starting at line 551 the code logic says that if a service
&lt;br&gt;scan is requested set all the service values (product, version, etc), if
&lt;br&gt;not just set the probe state, name and tunnel values.
&lt;br&gt;&lt;br&gt;The change I made basically detects if any of the normally unset values
&lt;br&gt;have been populated, if so set the o.servicescan value to be true. &amp;nbsp;I had
&lt;br&gt;tried just writing the values out without touching the o.servicescan variable
&lt;br&gt;but this tripped an assert in NmapOutputTable.cc because there were not
&lt;br&gt;enough columns allocated in the service table output.
&lt;br&gt;&lt;br&gt;Ultimately the change I settled on consists of adding the following two
&lt;br&gt;lines to nse_nmaplib.cc:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if ( product || version || extrainfo || hostname || ostype || devicetype )
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;o.servicescan = true;
&lt;br&gt;&lt;br&gt;In my limited testing I have not found any problems or unexpected behaviors.
&lt;br&gt;Obviously it needs further testing and review from more experienced eyes.
&lt;br&gt;&lt;br&gt;Any testing or feedback would be greatly appreciated.
&lt;br&gt;&lt;br&gt;Thanks much,
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;br /&gt;Index: nse_nmaplib.cc
&lt;br&gt;===================================================================
&lt;br&gt;--- nse_nmaplib.cc	(revision 16303)
&lt;br&gt;+++ nse_nmaplib.cc	(working copy)
&lt;br&gt;@@ -548,6 +548,9 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;luaL_argerror(L, 2, &amp;quot;invalid value for port.version.service_tunnel&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+ &amp;nbsp;if ( product || version || extrainfo || hostname || ostype || devicetype )
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;o.servicescan = true;
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (o.servicescan)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;port-&amp;gt;setServiceProbeResults(probestate, name, tunnel, product,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;version, extrainfo, hostname, ostype, devicetype, NULL);
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH---Allow-NSE-script-to-set-service-info-without--sV-tp26856935p26856935.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26856848</id>
	<title>Re: POC Payloader dat</title>
	<published>2009-12-19T09:16:59Z</published>
	<updated>2009-12-19T09:16:59Z</updated>
	<author>
		<name>Jay Fink</name>
	</author>
	<content type="html">On Mon, Dec 14, 2009 at 7:38 PM, Jay Fink &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26856848&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jay.fink@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Dec 13, 2009 at 5:32 PM, David Fifield &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26856848&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; That looks pretty good, but if we're not going to be 100% compatible
&lt;br&gt;&amp;gt;&amp;gt; with Unicornscan's file, then there's no need for ours to look like
&lt;br&gt;&amp;gt;&amp;gt; theirs. The braces and semicolon can be removed. I'm thinking about a
&lt;br&gt;&amp;gt;&amp;gt; format more like we have in nmap-service-probes, with named fields
&lt;br&gt;&amp;gt;&amp;gt; instead of positional values.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; /* comment */
&lt;br&gt;&amp;gt;&amp;gt; payload udp 1604,1645,1812
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;\x1e\x00\x01\x30\x02\xfd\xa8\xe3\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; source 100
&lt;/div&gt;&lt;/div&gt;Attached is a sample of this; I guess the only question I have is do
&lt;br&gt;we really need the payload label? Wouldn't it be simpler with just:
&lt;br&gt;&lt;br&gt;/* payload_citrix */
&lt;br&gt;udp &amp;nbsp;1604,1645,1812
&lt;br&gt;&amp;nbsp; &amp;quot;\x1e\x00\x01\x30\x02\xfd\xa8\xe3\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;quot;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;nbsp; source 100
&lt;br&gt;&lt;br&gt;So basically - pending that first label - I am about ready to jump off.
&lt;br&gt;I will need to do some more mining to figure out which payloads can
&lt;br&gt;share dports and who might need a non-magic sport but at least with
&lt;br&gt;the format down I can get started.. I *don't* want to start without a
&lt;br&gt;final format :-)
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;&amp;nbsp;j
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;payloads&lt;/strong&gt; (18K) &lt;a href=&quot;http://old.nabble.com/attachment/26856848/0/payloads&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/POC-Payloader-dat-tp26482085p26856848.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26855380</id>
	<title>Re: Citrix scripts</title>
	<published>2009-12-19T06:19:46Z</published>
	<updated>2009-12-19T06:19:46Z</updated>
	<author>
		<name>Tom Sellers</name>
	</author>
	<content type="html">Patrik,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for writing this code. &amp;nbsp;I have recently run it against quite a few server
&lt;br&gt;and I really dig the output of published applications and who has rights to them. &amp;nbsp;Excellent
&lt;br&gt;for use by a PenTester or System Admin that is looking for improperly secured apps.
&lt;br&gt;&lt;br&gt;Kodos!
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;br&gt;On 12/2/2009 3:19 PM, Patrik Karlsson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have re-worked and documented my Citrix scripts and made some changes and additions.
&lt;br&gt;&amp;gt; The new scripts target the XML Service rather than the ICA Browser and therefore can do more.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As an example the XML versions of the application enumeration script does not only fetch a list of all published applications but also the required user or group memberships needed to access them. It will also find applications published anonymously.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The Citrix XML Service usually listens to ports 80, 443 or 8080. It can be identified by the following server header: &amp;quot;Citrix Web PN Server&amp;quot;. It can also &amp;quot;share ports&amp;quot; with IIS by running as an ISAP filter.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am attaching a zip file with the lot and a brief explanation of each file.
&lt;br&gt;&amp;gt; Feedback, suggestions and bug reports are most welcome!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The zip contains 6 files:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; citrix-enum-apps-xml.nse
&lt;br&gt;&amp;gt; - A script that queries the Citrix XML Service for a list of applications
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; citrix-enum-apps.nse
&lt;br&gt;&amp;gt; - A script that queries the ICA Browser for a list of applications
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; citrix-enum-servers-xml.nse
&lt;br&gt;&amp;gt; -A script that queries the Citrix XML Service for a list of Citrix servers
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; citrix-enum-servers.nse
&lt;br&gt;&amp;gt; - A script that queries the ICA Browser for a list of Citrix servers
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; citrix-brute-xml.nse
&lt;br&gt;&amp;gt; - A script that attempts to guess usernames and passwords against the Citrix XML service
&lt;br&gt;&amp;gt; - It allows you to perform password guessing against the local Windows server or the domain
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; citrixxml.lua
&lt;br&gt;&amp;gt; - The library containing some of the many XML requests and response parsers
&lt;/div&gt;ed at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Citrix-scripts-tp26616658p26855380.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26855113</id>
	<title>[SCRIPT] IBM DB2 Server Profile export + Version detection</title>
	<published>2009-12-19T05:41:26Z</published>
	<updated>2009-12-19T05:41:26Z</updated>
	<author>
		<name>Tom Sellers</name>
	</author>
	<content type="html">I have finally (only a month late) finished the script to query the IBM DB2
&lt;br&gt;Administration Server (DAS) service. &amp;nbsp;The script connects to the DB2 DAS service
&lt;br&gt;on either TCP or UDP port 523. &amp;nbsp;No authentication is required for the connection.
&lt;br&gt;&lt;br&gt;&lt;br&gt;The data it returns matches what would be returned if one were to use the Export
&lt;br&gt;Server Profile command using the DB2 Control Center GUI:
&lt;br&gt;&lt;br&gt;PORT &amp;nbsp; &amp;nbsp;STATE SERVICE VERSION
&lt;br&gt;523/tcp open &amp;nbsp;ibm-db2 IBM DB2 Database Server 9.07.0
&lt;br&gt;| db2-das-info: DB2 Administration Server Settings
&lt;br&gt;| ;DB2 Server Database Access Profile
&lt;br&gt;| ;Use BINARY file transfer
&lt;br&gt;| ;Comment lines start with a &amp;quot;;&amp;quot;
&lt;br&gt;| ;Other lines must be one of the following two types:
&lt;br&gt;| ;Type A: [section_name]
&lt;br&gt;| ;Type B: keyword=value
&lt;br&gt;|
&lt;br&gt;| [File_Description]
&lt;br&gt;| Application=DB2/LINUX 9.7.0
&lt;br&gt;| Platform=18
&lt;br&gt;| File_Content=DB2 Server Definitions
&lt;br&gt;| File_Type=CommonServer
&lt;br&gt;| File_Format_Version=1.0
&lt;br&gt;| DB2System=MYBIGDATABASESERVER
&lt;br&gt;| ServerType=DB2LINUX
&lt;br&gt;|
&lt;br&gt;| [adminst&amp;gt;dasusr1]
&lt;br&gt;| NodeType=1
&lt;br&gt;| DB2Comm=TCPIP
&lt;br&gt;| Authentication=SERVER
&lt;br&gt;| HostName=MYBIGDATABASESERVER
&lt;br&gt;| PortNumber=523
&lt;br&gt;| IpAddress=127.0.1.1
&lt;br&gt;|
&lt;br&gt;| [inst&amp;gt;db2inst1]
&lt;br&gt;| NodeType=1
&lt;br&gt;| DB2Comm=TCPIP
&lt;br&gt;| Authentication=SERVER
&lt;br&gt;| HostName=MYBIGDATABASESERVER
&lt;br&gt;| ServiceName=db2c_db2inst1
&lt;br&gt;| PortNumber=50000
&lt;br&gt;| IpAddress=127.0.1.1
&lt;br&gt;| QuietMode=No
&lt;br&gt;| TMDatabase=1ST_CONN
&lt;br&gt;|
&lt;br&gt;| [db&amp;gt;db2inst1:TOOLSDB]
&lt;br&gt;| DBAlias=TOOLSDB
&lt;br&gt;| DBName=TOOLSDB
&lt;br&gt;| Drive=/home/db2inst1
&lt;br&gt;| Dir_entry_type=INDIRECT
&lt;br&gt;|_Authentication=NOTSPEC
&lt;br&gt;&lt;br&gt;The script will also set the service product and version data if possible.
&lt;br&gt;&lt;br&gt;There is quite a bit of recon value in the data returned:
&lt;br&gt;DB2 version, server OS/platform, database names and port numbers, file system
&lt;br&gt;path names, hostname and IP address.
&lt;br&gt;&lt;br&gt;Oddly enough I have see DB2 return the IPv6 address when queried over the IPv4 interface.
&lt;br&gt;&lt;br&gt;Any testing or feedback with the functionality and structure of the script would
&lt;br&gt;be greatly appreciated!
&lt;br&gt;&lt;br&gt;Of particular interest are:
&lt;br&gt;1. &amp;nbsp;Is the feedback too verbose? &amp;nbsp;This is the format that the server returns
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;the data in, barring some noise prior to the data. &amp;nbsp;Should this be
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;parsed out and reformatted?
&lt;br&gt;&lt;br&gt;2. &amp;nbsp;If you test it on server I would love to see feedback on the Platform
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;numbers that are returned and on what OSes. &amp;nbsp;So far I have seen
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Platform=18 on Linux and Platform=5 on Windows.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;description = [[
&lt;br&gt;Connects to the IBM DB2 Administration Server (DAS) on TCP or UDP port 523 and
&lt;br&gt;exports the server profile. &amp;nbsp;No authentication is required for this request.
&lt;br&gt;&lt;br&gt;The script will also set the port product and version if a version scan is
&lt;br&gt;requested.
&lt;br&gt;]]
&lt;br&gt;&lt;br&gt;-- rev 0.6 (2009-12-16)
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;author = &amp;quot;Tom Sellers&amp;quot;
&lt;br&gt;&lt;br&gt;license = &amp;quot;Same as Nmap--See &lt;a href=&quot;http://nmap.org/book/man-legal.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org/book/man-legal.html&lt;/a&gt;&amp;quot;
&lt;br&gt;&lt;br&gt;categories = {&amp;quot;safe&amp;quot;, &amp;quot;discovery&amp;quot;, &amp;quot;version&amp;quot;}
&lt;br&gt;&lt;br&gt;require &amp;quot;stdnse&amp;quot;
&lt;br&gt;require &amp;quot;shortport&amp;quot;
&lt;br&gt;&lt;br&gt;portrule = shortport.port_or_service({523},&amp;quot;ibm-db2&amp;quot;, {&amp;quot;tcp&amp;quot;,&amp;quot;udp&amp;quot;}, {&amp;quot;open&amp;quot;, &amp;quot;open|filtered&amp;quot;})
&lt;br&gt;&lt;br&gt;action = function(host, port)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- create the socket used for our connection
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local socket = nmap.new_socket()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- set a reasonable timeout value
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; socket:set_timeout(10000)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- do some exception handling / cleanup
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local catch = function()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stdnse.print_debug(&amp;quot;%s&amp;quot;, &amp;quot;db2-das-info: ERROR communicating with &amp;quot; .. host.ip .. &amp;quot; on port &amp;quot; .. port.number)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; socket:close()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local try = nmap.new_try(catch)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try(socket:connect(host.ip, port.number, &amp;quot;tcp&amp;quot;))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Transaction block 1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;local query = string.char(0x00, 0x00, 0x00, 0x00, 0x44, 0x42, 0x32, 0x44, 0x41, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x01, 0x04, 0x00, 0x00, 0x00, 0x10, 0x39, 0x7a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x02, 0x0d, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4a, 0x00)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try(socket:send(query))
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Transaction block 2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;query = string.char(0x00, 0x00, 0x00, 0x00, 0x44, 0x42, 0x32, 0x44, 0x41, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x01, 0x04, 0x00, 0x00, 0x00, 0x10, 0x39, 0x7a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x05, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x0c, 0x00, 0x00, 0x00, 0x08, 0x59, 0xe7, 0x1f, 0x4b, 0x79, 0xf0, 0x90, 0x72, 0x85, 0xe0, 0x8f)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x3e, 0x38, 0x45, 0x38, 0xe3, 0xe5, 0x12, 0xc4, 0x3b, 0xe9, 0x7d, 0xe2, 0xf5, 0xf0, 0x78, 0xcc)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x81, 0x6f, 0x87, 0x5f, 0x91)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try(socket:send(query))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Transaction block 3
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;query = string.char(0x00, 0x00, 0x00, 0x00, 0x44, 0x42, 0x32, 0x44, 0x41, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x01, 0x04, 0x00, 0x00, 0x00, 0x10, 0x39, 0x7a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x03, 0x34, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x04, 0xb8)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --try(socket:send(query))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Transaction block 4
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;query = string.char(0x00, 0x00, 0x00, 0x00, 0x44, 0x42, 0x32, 0x44, 0x41, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x01, 0x04, 0x00, 0x00, 0x00, 0x10, 0x39, 0x7a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x0a, 0x5d, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4a, 0x01, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0xb8, 0x64, 0x62, 0x32)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x64, 0x61, 0x73, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x73, 0x63, 0x76, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0xb8, 0x64, 0x62, 0x32)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x73, 0x63, 0x76, 0x53, 0x72, 0x76, 0x00)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try(socket:send(query))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Transaction block 5
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;query = string.char(0x00, 0x00, 0x00, 0x00, 0x44, 0x42, 0x32, 0x44, 0x41, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x01, 0x04, 0x00, 0x00, 0x00, 0x10, 0x39, 0x7a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x06, 0xca, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4a, 0x01, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x48, 0x00, 0x00, 0x00, 0x00, 0x4a, 0xfb, 0x42, 0x90, 0x00, 0x00, 0x24, 0x93, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0xb8, 0x64, 0x62, 0x32)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x73, 0x63, 0x76, 0x53, 0x72, 0x76, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0xb8, 0x64, 0x62, 0x32)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x64, 0x61, 0x73, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x73, 0x63, 0x76, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x0c, 0x00, 0x00, 0x00, 0x4c, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x0c, 0x00, 0x00, 0x00, 0x4c, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x0c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x42)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x32, 0x44, 0x41, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0x04, 0x00, 0x00, 0x00, 0x10)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x39, 0x7a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xa4)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x04, 0xb8, 0x64, 0x62, 0x32, 0x64, 0x61, 0x73, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x73)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x63, 0x76, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x04, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x04, 0xb8, 0x64, 0x62, 0x32, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x73, 0x63, 0x76, 0x53)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x72, 0x76, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x00, 0x00, 0x01, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0c, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x18)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try(socket:send(query))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Transaction block 6
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- ************************************************************************************
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;query = string.char(0x00, 0x00, 0x00, 0x00, 0x44, 0x42, 0x32, 0x44, 0x41, 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x01, 0x04, 0x00, 0x00, 0x00, 0x10, 0x39, 0x7a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = query .. string.char(0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try(socket:send(query))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local status
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local response
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status, response = socket:receive()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local db2_config = nil
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local temp_string = nil
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while status do
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status, response = socket:receive()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if response ~= nil then 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Strip the nulls out of the response, they do odd things to string operations
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp_string = string.gsub(response,&amp;quot;%z&amp;quot;,&amp;quot;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- We get a couple of packets back, the one we want contains what amounts to a dump of a config file
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if string.find(temp_string,&amp;quot;;DB2 Server Database Access Profile&amp;quot;) then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end &amp;nbsp;-- if response
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end &amp;nbsp;-- while status
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; socket:close()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (not status) or (response == &amp;quot;TIMEOUT&amp;quot;) or (response == nil) then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stdnse.print_debug(&amp;quot;%s&amp;quot;,&amp;quot;db2-das-info: ERROR: No data, ending communications with &amp;quot; .. host.ip .. &amp;quot;:&amp;quot; .. port.number .. &amp;quot;/&amp;quot; .. port.protocol)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- The next block of code is essentially the version extraction code from db2-info.nse
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local server_version = string.match(temp_string, &amp;quot;(SQL%d+)&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if string.sub(server_version,1,3) == &amp;quot;SQL&amp;quot; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local major_version = string.sub(server_version,4,5)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- strip the leading 0 from the major version, for consistency with 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- nmap-service-probes results
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if string.sub(major_version,1,1) == &amp;quot;0&amp;quot; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; major_version = string.sub(major_version,2)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local minor_version = string.sub(server_version,6,7)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local hotfix = string.sub(server_version,8)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; server_version = major_version .. &amp;quot;.&amp;quot; .. minor_version .. &amp;quot;.&amp;quot; .. hotfix
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Try to determine which of the two values (probe version vs script) has more 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- precision. &amp;nbsp;A couple DB2 versions send DB2 UDB 7.1 vs SQL090204 (9.02.04)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local _
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local current_count = 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if port.version.version ~= nil then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _, current_count = string.gsub(port.version.version, &amp;quot;%.&amp;quot;, &amp;quot;%.&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end	
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local new_count = 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if server_version ~= nil then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _, new_count = string.gsub(server_version, &amp;quot;%.&amp;quot;, &amp;quot;%.&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if current_count &amp;lt; new_count then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port.version.version = server_version
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- The response contains various data before it gets to the config information
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- that we are after. &amp;nbsp;The data we want starts with a semi-colon
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Search for that marker &amp;quot;;&amp;quot; and copy it and everything after it into a string
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local temp_int = string.find(temp_string,&amp;quot;;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if temp_int ~= nil then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp_string = string.sub(temp_string,temp_int,string.len(temp_string))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if temp_string ~= nil then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = &amp;quot;DB2 Administration Server Settings\r\n&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result = result .. temp_string
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Strip out some noise
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- result = string.gsub(result,&amp;quot;;DB2 Server Database Access Profile\r\n&amp;quot;,&amp;quot;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- result = string.gsub(result,&amp;quot;;Use BINARY file transfer\r\n&amp;quot;,&amp;quot;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- result = string.gsub(result,&amp;quot;;Comment lines start with a \&amp;quot;;\&amp;quot;\r\n&amp;quot;,&amp;quot;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- result = string.gsub(result,&amp;quot;;Other lines must be one of the following two types:\r\n&amp;quot;,&amp;quot;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- result = string.gsub(result,&amp;quot;;Type A: %[section_name%]\r\n&amp;quot;,&amp;quot;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- result = string.gsub(result,&amp;quot;;Type B: keyword=value\r\n\r\n&amp;quot;,&amp;quot;&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- Set port information
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port.version.name = &amp;quot;ibm-db2&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port.version.product = &amp;quot;IBM DB2 Database Server&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port.version.name_confidence = 100
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nmap.set_port_version(host, port, &amp;quot;hardmatched&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nmap.set_port_state(host, port, &amp;quot;open&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return result
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-SCRIPT--IBM-DB2-Server-Profile-export-%2B-Version-detection-tp26855113p26855113.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26853838</id>
	<title>Dear Nmap-Dev, If you can't find it in google try JUSTDIAL.COM</title>
	<published>2009-12-19T01:56:43Z</published>
	<updated>2009-12-19T01:56:43Z</updated>
	<author>
		<name>Siva-21</name>
	</author>
	<content type="html">Dear Nmap-Dev,I strongly recommend this website www.justdial.com. It's a world class local search service &amp; I've always found anything I've ever wanted.You can find info on any company, product, or service in over 240 cities in India.You can also call them up 24x7, on phone (69999999), a local call in 240 Indian cities.Ask for anything, you'll get the info on the phone and/or by SMS within 30 secs, and this service is absolutely FREE!For a change, it's an original Indian idea and an Indian company with world class service, and with a vision to spread all over the world.Be a proud Indian and forward this to every Indian you know.Best Wishes,KarthikClick Here to unsubscribe.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dear-Nmap-Dev%2C-If-you-can%27t-find-it-in-google-try-JUSTDIAL.COM-tp26853838p26853838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26851350</id>
	<title>Re: cppcheck on nmap</title>
	<published>2009-12-18T15:54:12Z</published>
	<updated>2009-12-18T15:54:12Z</updated>
	<author>
		<name>Reijo Tomperi</name>
	</author>
	<content type="html">David Fifield wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Dec 17, 2009 at 01:06:37AM +0200, Reijo Tomperi wrote:
&lt;br&gt;&amp;gt;&amp;gt; I am one of the Cppcheck developers and I noticed this on your mailing list:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; here is a scan of cppcheck over Nmap 5.10BETA1:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [.\osscan2.cc:2942]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [.\output.cc:354]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [.\scan_engine.cc:1802]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [.\scan_engine.cc:1849]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [.\traceroute.cc:1253]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt;&amp;gt; I'm posting this to inform you that all of these are false positives &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; (Cppcheck assumed that vector was used, when list was used instead). I &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; created a ticket about it for us:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/apps/trac/cppcheck/ticket/1107&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/apps/trac/cppcheck/ticket/1107&lt;/a&gt;&lt;/div&gt;&lt;br&gt;The ticket is now fixed. These false positives do not show up anymore 
&lt;br&gt;with the trunk version of Cppcheck.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Reijo
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/cppcheck-on-nmap-tp26604344p26851350.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26851146</id>
	<title>Re: cppcheck on nmap</title>
	<published>2009-12-18T15:28:37Z</published>
	<updated>2009-12-18T15:28:37Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Thu, Dec 17, 2009 at 01:06:37AM +0200, Reijo Tomperi wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am one of the Cppcheck developers and I noticed this on your mailing list:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; here is a scan of cppcheck over Nmap 5.10BETA1:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; [.\osscan2.cc:2942]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt; &amp;gt; [.\output.cc:354]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt; &amp;gt; [.\scan_engine.cc:1802]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt; &amp;gt; [.\scan_engine.cc:1849]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt; &amp;gt; [.\traceroute.cc:1253]: (error) Dangerous usage of erase
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm posting this to inform you that all of these are false positives &amp;nbsp;
&lt;br&gt;&amp;gt; (Cppcheck assumed that vector was used, when list was used instead). I &amp;nbsp;
&lt;br&gt;&amp;gt; created a ticket about it for us:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sourceforge.net/apps/trac/cppcheck/ticket/1107&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/apps/trac/cppcheck/ticket/1107&lt;/a&gt;&lt;/div&gt;&lt;br&gt;Thanks Reijo, that's good to know.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/cppcheck-on-nmap-tp26604344p26851146.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26844266</id>
	<title>nmapsi4 -- nmap qt4 interface</title>
	<published>2009-12-18T06:28:47Z</published>
	<updated>2009-12-18T06:28:47Z</updated>
	<author>
		<name>Francesco Cecconi-2</name>
	</author>
	<content type="html">&lt;br&gt;--
&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I have developed an qt4 interface for nmap.
&lt;br&gt;&lt;br&gt;Project Description:
&lt;br&gt;NmapSi4 is a complete Qt4-based Gui with the design goals
&lt;br&gt;to provide a complete nmap interface for Users, in order to
&lt;br&gt;management all options of this powerful security net scanner!
&lt;br&gt;&lt;br&gt;Home Page:
&lt;br&gt;&lt;a href=&quot;http://www.nmapsi4.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nmapsi4.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/nmapsi4/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/nmapsi4/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Git repository:
&lt;br&gt;&lt;a href=&quot;http://gitorious.org/nmapsi4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gitorious.org/nmapsi4&lt;/a&gt;&lt;br&gt;&lt;br&gt;ScreenShot 0.1.1 / 0.2 alpha1:
&lt;br&gt;&lt;a href=&quot;http://kde-apps.org/content/show.php/nmapsi4?content=67158&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kde-apps.org/content/show.php/nmapsi4?content=67158&lt;/a&gt;&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Francesco
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nmapsi4----nmap-qt4-interface-tp26844266p26844266.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26848532</id>
	<title>nmapsi4 -- nmap qt4 interface</title>
	<published>2009-12-18T04:10:43Z</published>
	<updated>2009-12-18T04:10:43Z</updated>
	<author>
		<name>Francesco Cecconi-2</name>
	</author>
	<content type="html">&lt;br&gt;--
&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I have developed an qt4 interface for nmap.
&lt;br&gt;&lt;br&gt;Project Description:
&lt;br&gt;NmapSi4 is a complete Qt4-based Gui with the design goals
&lt;br&gt;to provide a complete nmap interface for Users, in order to
&lt;br&gt;management all options of this powerful security net scanner!
&lt;br&gt;&lt;br&gt;Home Page:
&lt;br&gt;&lt;a href=&quot;http://www.nmapsi4.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.nmapsi4.org/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/nmapsi4/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/nmapsi4/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Git repository:
&lt;br&gt;&lt;a href=&quot;http://gitorious.org/nmapsi4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gitorious.org/nmapsi4&lt;/a&gt;&lt;br&gt;&lt;br&gt;ScreenShot 0.1.1 / 0.2 alpha1:
&lt;br&gt;&lt;a href=&quot;http://kde-apps.org/content/show.php/nmapsi4?content=67158&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kde-apps.org/content/show.php/nmapsi4?content=67158&lt;/a&gt;&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Francesco
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nmapsi4----nmap-qt4-interface-tp26848532p26848532.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26842061</id>
	<title>Nmap bug - Doesn't folow static route (plain text)</title>
	<published>2009-12-18T02:59:06Z</published>
	<updated>2009-12-18T02:59:06Z</updated>
	<author>
		<name>ninel piroi</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I use Nmap frequently at home and at work, before being useful in many 
&lt;br&gt;situations and I want to thank you for this sweet product.
&lt;br&gt;Recently I discovered that when using static routes to subnet, Nmap does 
&lt;br&gt;not follow the route, but looking directly into local broadcast (ARP)
&lt;br&gt;&lt;br&gt;Ex:
&lt;br&gt;[Nmap Host] &amp;lt;-10.1.0.0/20-&amp;gt; [GW1] &amp;lt;-192.168.1.0/24-&amp;gt; [GW2] 
&lt;br&gt;&amp;lt;-10.1.3.0/24-&amp;gt; [Target Host]
&lt;br&gt;&lt;br&gt;[Nmap Host]
&lt;br&gt;IP &amp;nbsp;: &amp;nbsp; &amp;nbsp;10.1.0.15/20
&lt;br&gt;GW1: 10.1.0.1
&lt;br&gt;Static Route: &amp;nbsp;10.1.3.0/24 gw 10.1.0.1
&lt;br&gt;&lt;br&gt;[Target Host]
&lt;br&gt;IP: &amp;nbsp; &amp;nbsp; &amp;nbsp;10.1.3.9/24
&lt;br&gt;GW2: 10.1.3.1
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; nmap --packet-trace -sS 10.1.3.9
&lt;br&gt;Starting Nmap 5.00 ( &lt;a href=&quot;http://nmap.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org&lt;/a&gt;&amp;nbsp;) at 2009-12-18 08:41 GTB Standard Time
&lt;br&gt;SENT (0.6720s) ARP who-has 10.1.3.9 tell 10.1.0.15
&lt;br&gt;SENT (0.7820s) ARP who-has 10.1.3.9 tell 10.1.0.15
&lt;br&gt;Note: Host seems down. If it is really up, but blocking our ping probes, 
&lt;br&gt;try -PN
&lt;br&gt;Nmap done: 1 IP address (0 hosts up) scanned in 0.91 seconds
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; nmap --iflist
&lt;br&gt;Starting Nmap 5.00 ( &lt;a href=&quot;http://nmap.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org&lt;/a&gt;&amp;nbsp;) at 2009-12-18 08:41 GTB Standard Time
&lt;br&gt;************************INTERFACES************************
&lt;br&gt;DEV &amp;nbsp;(SHORT) IP/MASK &amp;nbsp; &amp;nbsp; &amp;nbsp; TYPE &amp;nbsp; &amp;nbsp; UP MAC
&lt;br&gt;eth0 (eth0) &amp;nbsp;10.1.0.15/20 ethernet up 00:1A:DC:3E:34:AC
&lt;br&gt;lo0 &amp;nbsp;(lo0) &amp;nbsp; 127.0.0.1/8 &amp;nbsp; loopback up
&lt;br&gt;DEV &amp;nbsp; &amp;nbsp;WINDEVICE
&lt;br&gt;eth0 &amp;nbsp; \Device\NPF_{00744106-FFB1-473B-AED9-3CD94673D5AA}
&lt;br&gt;lo0 &amp;lt;none&amp;gt;
&lt;br&gt;&amp;lt;none&amp;gt; \Device\NPF_GenericDialupAdapter
&lt;br&gt;**************************ROUTES**************************
&lt;br&gt;DST/MASK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEV &amp;nbsp;GATEWAY
&lt;br&gt;10.1.0.15/32 &amp;nbsp; &amp;nbsp; &amp;nbsp;lo0 &amp;nbsp;127.0.0.1
&lt;br&gt;10.255.255.255/32 &amp;nbsp;eth0 10.1.0.15
&lt;br&gt;255.255.255.255/32 eth0 10.1.0.15
&lt;br&gt;10.1.3.0/0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eth0 10.1.0.1
&lt;br&gt;10.1.0.0/0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eth0 10.1.0.15
&lt;br&gt;127.0.0.0/0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lo0 &amp;nbsp;127.0.0.1
&lt;br&gt;224.0.0.0/0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eth0 10.1.0.15
&lt;br&gt;0.0.0.0/0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eth0 10.1.0.1
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; ping -n 1 10.1.3.9
&lt;br&gt;Pinging 10.1.3.9 with 32 bytes of data:
&lt;br&gt;Reply from 10.1.3.9: bytes=32 time&amp;lt;1ms TTL=253
&lt;br&gt;Ping statistics for 10.1.3.9:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
&lt;br&gt;Approximate round trip times in milli-seconds:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Minimum = 0ms, Maximum = 0ms, Average = 0ms
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;Piroi Ninel
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nmap-bug---Doesn%27t-folow-static-route-%28plain-text%29-tp26842061p26842061.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26826989</id>
	<title>Re: zenmap: problems with GUI language</title>
	<published>2009-12-17T03:58:11Z</published>
	<updated>2009-12-17T03:58:11Z</updated>
	<author>
		<name>rpr-2</name>
	</author>
	<content type="html">On 2009/12/14 I wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Actually, I don't know of any Windows application that uses the LANG
&lt;br&gt;&amp;gt; variable. I've seen some Windows applications that enable changing
&lt;br&gt;&amp;gt; locale in their preferences (e.g. VLC media player and InfraRecorder,
&lt;br&gt;&amp;gt; both under GNU GPL). It would be fine if I could do that in zenmap
&lt;br&gt;&amp;gt; also.
&lt;br&gt;&lt;br&gt;I've found out that GIMP (www.gimp.org) supports changing locale using
&lt;br&gt;the LANG variable. E.g. in a Windows with Croatian system locale if I
&lt;br&gt;do:
&lt;br&gt;set LANG=en
&lt;br&gt;and then call gimp-2.6.exe, it starts with English GUI.
&lt;br&gt;&lt;br&gt;Maybe zenmap can learn this from GIMP.
&lt;br&gt;&lt;br&gt;-- rpr.
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/zenmap%3A-problems-with-CLI-options-and-GUI-language-tp26676084p26826989.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26823821</id>
	<title>Re: [patch] nmap-services update for port 2000 and sieve</title>
	<published>2009-12-16T22:33:07Z</published>
	<updated>2009-12-16T22:33:07Z</updated>
	<author>
		<name>Fyodor</name>
	</author>
	<content type="html">On Wed, Dec 16, 2009 at 07:52:50PM -0400, Matt Selsky wrote:
&lt;br&gt;&amp;gt; Port 2000 should be cisco-sccp. &amp;nbsp;sieve has now been assigned port 4190/tcp by IANA.
&lt;br&gt;&lt;br&gt;Thanks Matt, applied.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;-F
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch--nmap-services-update-for-port-2000-and-sieve-tp26820731p26823821.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26820731</id>
	<title>[patch] nmap-services update for port 2000 and sieve</title>
	<published>2009-12-16T15:52:50Z</published>
	<updated>2009-12-16T15:52:50Z</updated>
	<author>
		<name>Matt Selsky</name>
	</author>
	<content type="html">Port 2000 should be cisco-sccp. &amp;nbsp;sieve has now been assigned port 4190/tcp by IANA.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;sieve-port2000.patch&lt;/strong&gt; (977 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26820731/0/sieve-port2000.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-patch--nmap-services-update-for-port-2000-and-sieve-tp26820731p26820731.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26820139</id>
	<title>Re: cppcheck on nmap</title>
	<published>2009-12-16T15:06:37Z</published>
	<updated>2009-12-16T15:06:37Z</updated>
	<author>
		<name>Reijo Tomperi</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am one of the Cppcheck developers and I noticed this on your mailing list:
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; here is a scan of cppcheck over Nmap 5.10BETA1:
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;gt; [.\osscan2.cc:2942]: (error) Dangerous usage of erase
&lt;br&gt;&amp;nbsp;&amp;gt; [.\output.cc:354]: (error) Dangerous usage of erase
&lt;br&gt;&amp;nbsp;&amp;gt; [.\scan_engine.cc:1802]: (error) Dangerous usage of erase
&lt;br&gt;&amp;nbsp;&amp;gt; [.\scan_engine.cc:1849]: (error) Dangerous usage of erase
&lt;br&gt;&amp;nbsp;&amp;gt; [.\traceroute.cc:1253]: (error) Dangerous usage of erase
&lt;br&gt;&lt;br&gt;I'm posting this to inform you that all of these are false positives 
&lt;br&gt;(Cppcheck assumed that vector was used, when list was used instead). I 
&lt;br&gt;created a ticket about it for us:
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/apps/trac/cppcheck/ticket/1107&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/apps/trac/cppcheck/ticket/1107&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Reijo
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/cppcheck-on-nmap-tp26604344p26820139.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808854</id>
	<title>Re: A Simple Question - Zenmap</title>
	<published>2009-12-16T02:05:20Z</published>
	<updated>2009-12-16T02:05:20Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Wed, Dec 16, 2009 at 02:33:41PM +0800, Mike E-Wire Mail wrote:
&lt;br&gt;&amp;gt; I have an irritating but [I am sure] simple question to ask re Zenmap &amp;nbsp;
&lt;br&gt;&amp;gt; and was wondering if someone could help please ?
&lt;br&gt;&amp;gt; On the main interface screen the box labeled 'Target' contains a list of &amp;nbsp;
&lt;br&gt;&amp;gt; the IP addresses and [in some cases host names] of scan targets that &amp;nbsp;
&lt;br&gt;&amp;gt; have taken place - in most cases I have NOT saved the results from these &amp;nbsp;
&lt;br&gt;&amp;gt; scans.
&lt;br&gt;&amp;gt; I am trying to clear out this list but cannot find the file where the IP &amp;nbsp;
&lt;br&gt;&amp;gt; addresses/host names have been stored.
&lt;br&gt;&amp;gt; Can anyone help please ?
&lt;br&gt;&lt;br&gt;It's in target_list.txt, which is in a directory that depends on your
&lt;br&gt;operating system. If you delete it Zenmap will create a new blank one.
&lt;br&gt;See &lt;a href=&quot;http://nmap.org/book/zenmap-files.html#zenmap-user-conf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org/book/zenmap-files.html#zenmap-user-conf&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-Simple-Question---Zenmap-tp26806825p26808854.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26806825</id>
	<title>A Simple Question - Zenmap</title>
	<published>2009-12-15T22:33:41Z</published>
	<updated>2009-12-15T22:33:41Z</updated>
	<author>
		<name>Mike E-Wire Mail</name>
	</author>
	<content type="html">I have an irritating but [I am sure] simple question to ask re Zenmap 
&lt;br&gt;and was wondering if someone could help please ?
&lt;br&gt;On the main interface screen the box labeled 'Target' contains a list of 
&lt;br&gt;the IP addresses and [in some cases host names] of scan targets that 
&lt;br&gt;have taken place - in most cases I have NOT saved the results from these 
&lt;br&gt;scans.
&lt;br&gt;I am trying to clear out this list but cannot find the file where the IP 
&lt;br&gt;addresses/host names have been stored.
&lt;br&gt;Can anyone help please ?
&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-Simple-Question---Zenmap-tp26806825p26806825.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26804998</id>
	<title>Re: Kerberos probes for nmap</title>
	<published>2009-12-15T17:38:30Z</published>
	<updated>2009-12-15T17:38:30Z</updated>
	<author>
		<name>Patrik Karlsson-6</name>
	</author>
	<content type="html">Here's a modified version of the packet where I have removed the things you mentioned.
&lt;br&gt;I have not touched the algorithms, because I'm uncertain which ones to leave.
&lt;br&gt;Removing some of them could reduce the footprint size by some 10 bytes or so.
&lt;br&gt;&lt;br&gt;I ran the new probe against my Heimdal which got me:
&lt;br&gt;&lt;br&gt;SF-Port88-UDP:V=5.10BETA1%I=7%D=12/16%Time=4B283757%P=i386-apple-darwin10.2.0%r(Kerberos,69,&amp;quot;~g0e\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;SF:\x0f20091216012641Z\xa5\x05\x02\x03\x0e/\xc3\xa6\x03\x02\x01&amp;lt;\xa9\x15\x
&lt;br&gt;SF:1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa0\x03\x02\x01\0\xa1\x020\0\xa
&lt;br&gt;SF:b\x16\x1b\x14No\x20server\x20in\x20request&amp;quot;);
&lt;br&gt;&lt;br&gt;I also tested it against a Windows server and it worked well, even returned the name of the realm.
&lt;br&gt;Unfortunately I don't have access to a OS X kerberos server or to MIT Kerberos for additional testing.
&lt;br&gt;&lt;br&gt;Let me know how it works out.
&lt;br&gt;//P
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;On 16 dec 2009, at 00.39, David Fifield wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sat, Nov 28, 2009 at 09:20:53PM +0100, Patrik Karlsson wrote:
&lt;br&gt;&amp;gt;&amp;gt; I noticed that Kerberos get's detected fine when running against
&lt;br&gt;&amp;gt;&amp;gt; Windows but my Heimdal hosts are not detected. Running over TCP the
&lt;br&gt;&amp;gt;&amp;gt; RPCCheck probe seems to trigger an answer. Here's the signature:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; SF-Port88-TCP:V=5.10BETA1%I=7%D=11/28%Time=4B1181BB%P=i386-apple-darwin10.2.0%r(RPCCheck,55,&amp;quot;\0\0\0Q~O0M\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\
&lt;br&gt;&amp;gt;&amp;gt; SF:x11\x18\x0f20091128200203Z\xa5\x05\x02\x03\x08i@\xa6\x03\x02\x01=\xa9\x
&lt;br&gt;&amp;gt;&amp;gt; SF:15\x1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa0\x03\x02\x01\0\xa1\x020\
&lt;br&gt;&amp;gt;&amp;gt; SF:0&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I have put together a probe that works both against 88/tcp and 88/udp.
&lt;br&gt;&amp;gt;&amp;gt; The probe is a request for a TGT for the user NM in realm NM. Again,
&lt;br&gt;&amp;gt;&amp;gt; my matches might need some improvement. Attaching signatures for
&lt;br&gt;&amp;gt;&amp;gt; reference.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; SF-Port88-TCP:V=5.10BETA1%I=7%D=11/28%Time=4B1184BD%P=i386-apple-darwin10.2.0%r(kerberos,67,&amp;quot;\0\0\0c~a0_\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\
&lt;br&gt;&amp;gt;&amp;gt; SF:x11\x18\x0f20091128201453Z\xa5\x05\x02\x03\x0c\xd3O\xa6\x03\x02\x01\x06
&lt;br&gt;&amp;gt;&amp;gt; SF:\xa7\x04\x1b\x02NM\xa8\x0f0\r\xa0\x03\x02\x01\x01\xa1\x060\x04\x1b\x02N
&lt;br&gt;&amp;gt;&amp;gt; SF:M\xa9\x04\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06
&lt;br&gt;&amp;gt;&amp;gt; SF:krbtgt\x1b\x02NM&amp;quot;)%r(RPCCheck,55,&amp;quot;\0\0\0Q~O0M\xa0\x03\x02\x01\x05\xa1\x
&lt;br&gt;&amp;gt;&amp;gt; SF:03\x02\x01\x1e\xa4\x11\x18\x0f20091128201459Z\xa5\x05\x02\x03\x03\x80\x
&lt;br&gt;&amp;gt;&amp;gt; SF:ae\xa6\x03\x02\x01=\xa9\x15\x1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa
&lt;br&gt;&amp;gt;&amp;gt; SF:0\x03\x02\x01\0\xa1\x020\0&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=7%D=11/28%Time=4B118543%P=i386-apple-darwin10.2.0%r(kerberos,63,&amp;quot;~a0_\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;&amp;gt;&amp;gt; SF:\x0f20091128201702Z\xa5\x05\x02\x03\n\xf9m\xa6\x03\x02\x01\x06\xa7\x04\
&lt;br&gt;&amp;gt;&amp;gt; SF:x1b\x02NM\xa8\x0f0\r\xa0\x03\x02\x01\x01\xa1\x060\x04\x1b\x02NM\xa9\x04
&lt;br&gt;&amp;gt;&amp;gt; SF:\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06krbtgt\x1
&lt;br&gt;&amp;gt;&amp;gt; SF:b\x02NM&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry, I didn't understand before that there was no probe getting a
&lt;br&gt;&amp;gt; response from UDP. I tried the UDP probe and it worked against UDP
&lt;br&gt;&amp;gt; Kerberos on Mac OS X, the TCP counterpart of which is detected as &amp;quot;Mac
&lt;br&gt;&amp;gt; OS X kerberos-sec&amp;quot; by the RPCCheck probe. The response I get back is
&lt;br&gt;&amp;gt; this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=2%D=12/15%Time=4B2816A5%P=i686-pc-linux-gnu%r(
&lt;br&gt;&amp;gt; SF:kerberos,8D,&amp;quot;~\x81\x8a0\x81\x87\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e
&lt;br&gt;&amp;gt; SF:\xa2\x11\x18\x0f19780623234544Z\xa4\x11\x18\x0f20091215230646Z\xa5\x05\
&lt;br&gt;&amp;gt; SF:x02\x03\x0e8\xfc\xa6\x03\x02\x01\x06\xa7\x04\x1b\x02NM\xa8\x0f0\r\xa0\x
&lt;br&gt;&amp;gt; SF:03\x02\x01\x01\xa1\x060\x04\x1b\x02NM\xa9\x04\x1b\x02NM\xaa\x170\x15\xa
&lt;br&gt;&amp;gt; SF:0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06krbtgt\x1b\x02NM\xab\x13\x1b\x11CLI
&lt;br&gt;&amp;gt; SF:ENT_NOT_FOUND\0&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's rather different than your Heimdal response, so we have an
&lt;br&gt;&amp;gt; opportunity for discrimination here. I think this could make a good UDP
&lt;br&gt;&amp;gt; payload too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want you to see if you can refine the probe. Here's the Wireshark
&lt;br&gt;&amp;gt; dissection of it:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; User Datagram Protocol, Src Port: 57945 (57945), Dst Port: kerberos (88)
&lt;br&gt;&amp;gt; Kerberos AS-REQ
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Pvno: 5
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;MSG Type: AS-REQ (10)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;KDC_REQ_BODY
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Padding: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;KDCOptions: 50800010 (Forwardable, Proxyable, Renewable, Renewable OK)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Client Name (Principal): NM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Realm: NM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Server Name (Unknown): krbtgt/NM
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from: 2009-10-12 11:35:05 (UTC)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;till: 2009-10-12 21:35:05 (UTC)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nonce: 267493544
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Encryption Types: aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 des3-cbc-sha1 rc4-hmac des-cbc-crc des-cbc-md5 des-cbc-md4
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It looks like this came from the packet capture of some tool. Maybe
&lt;br&gt;&amp;gt; there are parts of it that can be omitted to make the packet shorter and
&lt;br&gt;&amp;gt; less specific. I'm looking at section 5.4.1 of RFC 4120 where it says
&lt;br&gt;&amp;gt; that &amp;quot;Server Name&amp;quot; and &amp;quot;from&amp;quot; are optional. You can probably reduce the
&lt;br&gt;&amp;gt; number of encryption types offered; you probably want to keep strong,
&lt;br&gt;&amp;gt; commonly implemented ones because sometimes servers will ignore requests
&lt;br&gt;&amp;gt; for weak ciphers (in other protocols--I don't know about Kerberos). Try
&lt;br&gt;&amp;gt; omitting the &amp;quot;Client Name&amp;quot; too. I don't think that would work for
&lt;br&gt;&amp;gt; authentication purposes but we're only looking for a response, and it
&lt;br&gt;&amp;gt; reduces the chance that we'll hit a real &amp;quot;NM&amp;quot; user name.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I can imagine that having the &amp;quot;till&amp;quot; time in the past might be a problem
&lt;br&gt;&amp;gt; for some servers. The RFC says: &amp;quot;It is not optional, but if the
&lt;br&gt;&amp;gt; requested endtime is '19700101000000Z', the requested ticket is to have
&lt;br&gt;&amp;gt; the maximum endtime permitted according to KDC policy.&amp;quot; That is worth a
&lt;br&gt;&amp;gt; try.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The Kerberos protocol looks pretty specific, so there's probably not
&lt;br&gt;&amp;gt; much chance another general-purpose probe will work. I just tried
&lt;br&gt;&amp;gt; --version-all and didn't get any responses. So adding a refined
&lt;br&gt;&amp;gt; Kerberos-specific probe is fine by me. Please test my suggestions above
&lt;br&gt;&amp;gt; and write back with your results. If you want help with packet crafting
&lt;br&gt;&amp;gt; then you can ask here too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; David Fifield
&lt;/div&gt;&lt;/div&gt;--
&lt;br&gt;Patrik Karlsson
&lt;br&gt;&lt;a href=&quot;http://www.cqure.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cqure.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;kerberos-probe.patch&lt;/strong&gt; (1K) &lt;a href=&quot;http://old.nabble.com/attachment/26804998/0/kerberos-probe.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Kerberos-probes-for-nmap-tp26556632p26804998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803933</id>
	<title>Re: Kerberos probes for nmap</title>
	<published>2009-12-15T15:39:55Z</published>
	<updated>2009-12-15T15:39:55Z</updated>
	<author>
		<name>David Fifield</name>
	</author>
	<content type="html">On Sat, Nov 28, 2009 at 09:20:53PM +0100, Patrik Karlsson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I noticed that Kerberos get's detected fine when running against
&lt;br&gt;&amp;gt; Windows but my Heimdal hosts are not detected. Running over TCP the
&lt;br&gt;&amp;gt; RPCCheck probe seems to trigger an answer. Here's the signature:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SF-Port88-TCP:V=5.10BETA1%I=7%D=11/28%Time=4B1181BB%P=i386-apple-darwin10.2.0%r(RPCCheck,55,&amp;quot;\0\0\0Q~O0M\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\
&lt;br&gt;&amp;gt; SF:x11\x18\x0f20091128200203Z\xa5\x05\x02\x03\x08i@\xa6\x03\x02\x01=\xa9\x
&lt;br&gt;&amp;gt; SF:15\x1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa0\x03\x02\x01\0\xa1\x020\
&lt;br&gt;&amp;gt; SF:0&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have put together a probe that works both against 88/tcp and 88/udp.
&lt;br&gt;&amp;gt; The probe is a request for a TGT for the user NM in realm NM. Again,
&lt;br&gt;&amp;gt; my matches might need some improvement. Attaching signatures for
&lt;br&gt;&amp;gt; reference.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SF-Port88-TCP:V=5.10BETA1%I=7%D=11/28%Time=4B1184BD%P=i386-apple-darwin10.2.0%r(kerberos,67,&amp;quot;\0\0\0c~a0_\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\
&lt;br&gt;&amp;gt; SF:x11\x18\x0f20091128201453Z\xa5\x05\x02\x03\x0c\xd3O\xa6\x03\x02\x01\x06
&lt;br&gt;&amp;gt; SF:\xa7\x04\x1b\x02NM\xa8\x0f0\r\xa0\x03\x02\x01\x01\xa1\x060\x04\x1b\x02N
&lt;br&gt;&amp;gt; SF:M\xa9\x04\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06
&lt;br&gt;&amp;gt; SF:krbtgt\x1b\x02NM&amp;quot;)%r(RPCCheck,55,&amp;quot;\0\0\0Q~O0M\xa0\x03\x02\x01\x05\xa1\x
&lt;br&gt;&amp;gt; SF:03\x02\x01\x1e\xa4\x11\x18\x0f20091128201459Z\xa5\x05\x02\x03\x03\x80\x
&lt;br&gt;&amp;gt; SF:ae\xa6\x03\x02\x01=\xa9\x15\x1b\x13&amp;lt;unspecified\x20realm&amp;gt;\xaa\x0b0\t\xa
&lt;br&gt;&amp;gt; SF:0\x03\x02\x01\0\xa1\x020\0&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; SF-Port88-UDP:V=5.10BETA1%I=7%D=11/28%Time=4B118543%P=i386-apple-darwin10.2.0%r(kerberos,63,&amp;quot;~a0_\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e\xa4\x11\x18
&lt;br&gt;&amp;gt; SF:\x0f20091128201702Z\xa5\x05\x02\x03\n\xf9m\xa6\x03\x02\x01\x06\xa7\x04\
&lt;br&gt;&amp;gt; SF:x1b\x02NM\xa8\x0f0\r\xa0\x03\x02\x01\x01\xa1\x060\x04\x1b\x02NM\xa9\x04
&lt;br&gt;&amp;gt; SF:\x1b\x02NM\xaa\x170\x15\xa0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06krbtgt\x1
&lt;br&gt;&amp;gt; SF:b\x02NM&amp;quot;);
&lt;/div&gt;&lt;br&gt;Sorry, I didn't understand before that there was no probe getting a
&lt;br&gt;response from UDP. I tried the UDP probe and it worked against UDP
&lt;br&gt;Kerberos on Mac OS X, the TCP counterpart of which is detected as &amp;quot;Mac
&lt;br&gt;OS X kerberos-sec&amp;quot; by the RPCCheck probe. The response I get back is
&lt;br&gt;this:
&lt;br&gt;&lt;br&gt;SF-Port88-UDP:V=5.10BETA1%I=2%D=12/15%Time=4B2816A5%P=i686-pc-linux-gnu%r(
&lt;br&gt;SF:kerberos,8D,&amp;quot;~\x81\x8a0\x81\x87\xa0\x03\x02\x01\x05\xa1\x03\x02\x01\x1e
&lt;br&gt;SF:\xa2\x11\x18\x0f19780623234544Z\xa4\x11\x18\x0f20091215230646Z\xa5\x05\
&lt;br&gt;SF:x02\x03\x0e8\xfc\xa6\x03\x02\x01\x06\xa7\x04\x1b\x02NM\xa8\x0f0\r\xa0\x
&lt;br&gt;SF:03\x02\x01\x01\xa1\x060\x04\x1b\x02NM\xa9\x04\x1b\x02NM\xaa\x170\x15\xa
&lt;br&gt;SF:0\x03\x02\x01\0\xa1\x0e0\x0c\x1b\x06krbtgt\x1b\x02NM\xab\x13\x1b\x11CLI
&lt;br&gt;SF:ENT_NOT_FOUND\0&amp;quot;);
&lt;br&gt;&lt;br&gt;It's rather different than your Heimdal response, so we have an
&lt;br&gt;opportunity for discrimination here. I think this could make a good UDP
&lt;br&gt;payload too.
&lt;br&gt;&lt;br&gt;I want you to see if you can refine the probe. Here's the Wireshark
&lt;br&gt;dissection of it:
&lt;br&gt;&lt;br&gt;User Datagram Protocol, Src Port: 57945 (57945), Dst Port: kerberos (88)
&lt;br&gt;Kerberos AS-REQ
&lt;br&gt;&amp;nbsp; &amp;nbsp; Pvno: 5
&lt;br&gt;&amp;nbsp; &amp;nbsp; MSG Type: AS-REQ (10)
&lt;br&gt;&amp;nbsp; &amp;nbsp; KDC_REQ_BODY
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Padding: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; KDCOptions: 50800010 (Forwardable, Proxyable, Renewable, Renewable OK)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Client Name (Principal): NM
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Realm: NM
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Name (Unknown): krbtgt/NM
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from: 2009-10-12 11:35:05 (UTC)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; till: 2009-10-12 21:35:05 (UTC)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nonce: 267493544
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Encryption Types: aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 des3-cbc-sha1 rc4-hmac des-cbc-crc des-cbc-md5 des-cbc-md4
&lt;br&gt;&lt;br&gt;It looks like this came from the packet capture of some tool. Maybe
&lt;br&gt;there are parts of it that can be omitted to make the packet shorter and
&lt;br&gt;less specific. I'm looking at section 5.4.1 of RFC 4120 where it says
&lt;br&gt;that &amp;quot;Server Name&amp;quot; and &amp;quot;from&amp;quot; are optional. You can probably reduce the
&lt;br&gt;number of encryption types offered; you probably want to keep strong,
&lt;br&gt;commonly implemented ones because sometimes servers will ignore requests
&lt;br&gt;for weak ciphers (in other protocols--I don't know about Kerberos). Try
&lt;br&gt;omitting the &amp;quot;Client Name&amp;quot; too. I don't think that would work for
&lt;br&gt;authentication purposes but we're only looking for a response, and it
&lt;br&gt;reduces the chance that we'll hit a real &amp;quot;NM&amp;quot; user name.
&lt;br&gt;&lt;br&gt;I can imagine that having the &amp;quot;till&amp;quot; time in the past might be a problem
&lt;br&gt;for some servers. The RFC says: &amp;quot;It is not optional, but if the
&lt;br&gt;requested endtime is '19700101000000Z', the requested ticket is to have
&lt;br&gt;the maximum endtime permitted according to KDC policy.&amp;quot; That is worth a
&lt;br&gt;try.
&lt;br&gt;&lt;br&gt;The Kerberos protocol looks pretty specific, so there's probably not
&lt;br&gt;much chance another general-purpose probe will work. I just tried
&lt;br&gt;--version-all and didn't get any responses. So adding a refined
&lt;br&gt;Kerberos-specific probe is fine by me. Please test my suggestions above
&lt;br&gt;and write back with your results. If you want help with packet crafting
&lt;br&gt;then you can ask here too.
&lt;br&gt;&lt;br&gt;David Fifield
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Kerberos-probes-for-nmap-tp26556632p26803933.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26804427</id>
	<title>license for Oracle default SIDs</title>
	<published>2009-12-15T14:07:31Z</published>
	<updated>2009-12-15T14:07:31Z</updated>
	<author>
		<name>AK-10</name>
	</author>
	<content type="html">Hello Nmap team,
&lt;br&gt;&lt;br&gt;Patrik Karlson asked me to forward this to nmap dev mailing list.
&lt;br&gt;&lt;br&gt;Hereby I &amp;nbsp;(Alexander Kornbrust) grant the Nmap project explicitly the rights to distribute the list of Oracle Default SIDs under the Nmap license (&lt;a href=&quot;http://nmap.org/svn/COPYING&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org/svn/COPYING&lt;/a&gt;). &amp;nbsp;
&lt;br&gt;&lt;br&gt;The attached file is an updated version of &lt;a href=&quot;http://www.red-database-security.com/scripts/sid.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.red-database-security.com/scripts/sid.txt&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Hope this is sufficient.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;&amp;nbsp;Alexander
&lt;br&gt;&lt;br&gt;_____________________________
&lt;br&gt;Red Database Security GmbH
&lt;br&gt;Alexander Kornbrust
&lt;br&gt;Bliesstrasse 16
&lt;br&gt;D-66538 Neunkirchen
&lt;br&gt;Germany
&lt;br&gt;&lt;br&gt;Office: &amp;nbsp;+49 (0) 6821 - 951 76 37
&lt;br&gt;Mobil: &amp;nbsp; +49 (0) 151 - 2411 0359
&lt;br&gt;Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0) 6821 - 912 73 54
&lt;br&gt;Mail: ak at red-database-security.com
&lt;br&gt;Web: www.red-database-security.com 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Zuständiges Amtsgericht:
&lt;br&gt;Amtsgericht Saarbrücken, HRB14503
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Geschäftsführer:
&lt;br&gt;Alexander Kornbrust
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/license-for-Oracle-default-SIDs-tp26804427p26804427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26793176</id>
	<title>Re: zenmap: problems with GUI language</title>
	<published>2009-12-15T03:16:30Z</published>
	<updated>2009-12-15T03:16:30Z</updated>
	<author>
		<name>Alexander Khodyrev</name>
	</author>
	<content type="html">As i know. In windows not have application whitch uses LANG variable.
&lt;br&gt;gtk application uses self variables for this.
&lt;br&gt;last nmap installing on my russian windows 7 perfect, and have Russian
&lt;br&gt;interface.
&lt;br&gt;Although for 5.00 i was must set LANG variable for my language.
&lt;br&gt;Best regards,
&lt;br&gt;Khodyrev &amp;quot;SpxnezzaR&amp;quot; Alexander
&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/12/14 David Fifield &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26793176&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Dec 07, 2009 at 12:46:35PM +0100, Robert Premuž wrote:
&lt;br&gt;&amp;gt; &amp;gt; As I use Croatian regional settings in Windows, the zenmap GUI is in
&lt;br&gt;&amp;gt; &amp;gt; Croatian. Unfortunately, I haven't been able to change that by
&lt;br&gt;&amp;gt; &amp;gt; following the procedures on &lt;a href=&quot;http://nmap.org/book/zenmap-lang.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nmap.org/book/zenmap-lang.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I tried to run the following commands in the Windows command shell
&lt;br&gt;&amp;gt; &amp;gt; (cmd.exe):
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; set LANG=en_US
&lt;br&gt;&amp;gt; &amp;gt; zenmap
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; but zenmap started with GUI in Croatian language.
&lt;br&gt;&amp;gt; &amp;gt; Just in case I tried to set LANG using the Control Panel but the
&lt;br&gt;&amp;gt; &amp;gt; effect was the same.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; As a last resort I renamed
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;C:\Program Files\Nmap\share\zenmap\locale\hr&amp;quot; so that zenmap couldn't
&lt;br&gt;&amp;gt; &amp;gt; find the Croatian language file and this way I got GUI in English.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; So, is there something broken in zenmap for Windows regarding these
&lt;br&gt;&amp;gt; &amp;gt; issues? Am I doing something the wrong way?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Zenmap gets the locale by calling the locale.getdefaultlocale function.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://docs.python.org/library/locale.html#locale.getdefaultlocale&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://docs.python.org/library/locale.html#locale.getdefaultlocale&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Windows, this first tries to get the locale by calling the
&lt;br&gt;&amp;gt; GetLocaleInfo function.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dd318101(VS.85).aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://msdn.microsoft.com/en-us/library/dd318101(VS.85).aspx&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If that fails, then it examines environment variables such as LANG.
&lt;br&gt;&amp;gt; Maybe there's a Windows way to accomplish this without LANG? Is there a
&lt;br&gt;&amp;gt; way to run just one application in a different locale? Does anybody have
&lt;br&gt;&amp;gt; a non-English system locale, but run certain applications in English,
&lt;br&gt;&amp;gt; for example?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; David Fifield
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Sent through the nmap-dev mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;&amp;gt; Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/zenmap%3A-problems-with-CLI-options-and-GUI-language-tp26676084p26793176.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26787629</id>
	<title>Re: POC Payloader dat</title>
	<published>2009-12-14T16:38:38Z</published>
	<updated>2009-12-14T16:38:38Z</updated>
	<author>
		<name>Jay Fink</name>
	</author>
	<content type="html">On Sun, Dec 13, 2009 at 5:32 PM, David Fifield &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26787629&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;david@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; That looks pretty good, but if we're not going to be 100% compatible
&lt;br&gt;&amp;gt; with Unicornscan's file, then there's no need for ours to look like
&lt;br&gt;&amp;gt; theirs. The braces and semicolon can be removed. I'm thinking about a
&lt;br&gt;&amp;gt; format more like we have in nmap-service-probes, with named fields
&lt;br&gt;&amp;gt; instead of positional values.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /* comment */
&lt;br&gt;&amp;gt; payload udp 1604,1645,1812
&lt;br&gt;&amp;gt; &amp;quot;\x1e\x00\x01\x30\x02\xfd\xa8\xe3\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt; &amp;quot;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&amp;quot;
&lt;br&gt;&amp;gt; source 100
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The &amp;quot;source 100&amp;quot; above is just an example of how a source port might be
&lt;br&gt;&amp;gt; specified, even though it's not used for this particular payload. I
&lt;br&gt;&amp;gt; would rather have payloads that use a source port say so explicitly than
&lt;br&gt;&amp;gt; have most of them with a dummy -1 value.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't think we need a label for each payload beyond the comments.
&lt;/div&gt;&lt;br&gt;That certainly looks a great deal easier and is more consistent with
&lt;br&gt;what other nmap code does.
&lt;br&gt;&lt;br&gt;&amp;gt; I want the interface for accessing a payload to stay pretty much the
&lt;br&gt;&amp;gt; same. This is what we have now:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; const char *get_udp_payload(u16 dport, size_t *length);
&lt;br&gt;&lt;br&gt;*ditto* - less system shock too :-)
&lt;br&gt;&lt;br&gt;&amp;gt; I can imagine changing the return value to non-const for the case of
&lt;br&gt;&amp;gt; dynamic payloads, or perhaps requiring a caller-supplied buffer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Parsing is certainly a non-trivial part of this problem. There are
&lt;br&gt;&amp;gt; custom parsers for all of Nmap's data files. The main thing is to watch
&lt;br&gt;&amp;gt; out for buffer overflows and such.
&lt;br&gt;&lt;br&gt;The services probe has some good bits in it I think.
&lt;br&gt;&lt;br&gt;Thanks for the pointers!
&lt;br&gt;&amp;nbsp; j
&lt;br&gt;_______________________________________________
&lt;br&gt;Sent through the nmap-dev mailing list
&lt;br&gt;&lt;a href=&quot;http://cgi.insecure.org/mailman/listinfo/nmap-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cgi.insecure.org/mailman/listinfo/nmap-dev&lt;/a&gt;&lt;br&gt;Archived at &lt;a href=&quot;http://seclists.org/nmap-dev/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://seclists.org/nmap-dev/&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/POC-Payloader-dat-tp26482085p26787629.html" />
</entry>

</feed>
