<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13171" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-02-28T11:55:07-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13171</id>

		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-02-28T11:55:07-04:00</updated>

		<published>2007-02-28T11:55:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70834#p70834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70834#p70834"/>
		<title type="html"><![CDATA[filter out ports + state]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70834#p70834"><![CDATA[
Thanks guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> It works now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Wed Feb 28, 2007 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-02-28T09:16:59-04:00</updated>

		<published>2007-02-28T09:16:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70828#p70828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70828#p70828"/>
		<title type="html"><![CDATA[filter out ports + state]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70828#p70828"><![CDATA[
Using regexp:<div class="codebox"><p>Code: </p><pre><code>foreach line [split $result \n] {   if {[regexp {(\d/.*?\n)} $result match port]} {           lappend ports $port    }}</code></pre></div>Someone else can prolly give a better regex but that should grab the data you want. Then you'll have all of the data in the $ports var.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed Feb 28, 2007 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-02-28T07:06:01-04:00</updated>

		<published>2007-02-28T07:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70824#p70824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70824#p70824"/>
		<title type="html"><![CDATA[filter out ports + state]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70824#p70824"><![CDATA[
Thanks user, that filters out the &lt;resolved.hostmask&gt; (0.0.0.0) bit, but how can i get the port state and service into a list.<br><br>I tried a regexp,<br>It works, but it just returns the first match, i need to filter out all the ports into a list like:<br><br>set portlist {<br>    "xxxx/tcp open/closed/filtered ????"<br>    "iiii/tcl open/closed/filtered oooo"<br>}<br><br>So then i can use a foreach loop on portlist<br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Wed Feb 28, 2007 7:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-02-27T11:54:29-04:00</updated>

		<published>2007-02-27T11:54:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70791#p70791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70791#p70791"/>
		<title type="html"><![CDATA[filter out ports + state]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70791#p70791"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regexp -line {^Interesting ports on &lt;([^&gt;]+)&gt; \(([^)]+)\)} $result x name ip</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Feb 27, 2007 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-02-27T10:08:50-04:00</updated>

		<published>2007-02-27T10:08:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70784#p70784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70784#p70784"/>
		<title type="html"><![CDATA[filter out ports + state]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70784#p70784"><![CDATA[
Im using nmap to do portscan's.<br><br>I use:<br><div class="codebox"><p>Code: </p><pre><code>set result "[exec nmap -sT -P0 -p &lt;port1,port2,port3,etc&gt; &lt;host/ip&gt;]"</code></pre></div>The return result from nmap is:<br><blockquote class="uncited"><div>Starting nmap 3.81 ( <a href="http://www.insecure.org/nmap/" class="postlink">http://www.insecure.org/nmap/</a> ) at 2007-02-27 08:53 EST<br>Interesting ports on &lt;resolved.hostname&gt; (0.0.0.0):<br>PORT     STATE  SERVICE<br>1080/tcp closed socks<br>8080/tcp closed http-proxy<br>????/??? open/closed ????<br><br>Nmap finished: 1 IP address (1 host up) scanned in 0.018 seconds</div></blockquote>I need to filter out the:<br>resolved.hostname (0.0.0.0)<br>and the port, state, and service name for each port<br><br>How can i do this, a simple regexp or a few lrange's or something?<br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Feb 27, 2007 10:08 am</p><hr />
]]></content>
	</entry>
	</feed>
