<?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/18260" />

	<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>2011-01-21T12:45:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tablarock]]></name></author>
		<updated>2011-01-21T12:45:24-04:00</updated>

		<published>2011-01-21T12:45:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95754#p95754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95754#p95754"/>
		<title type="html"><![CDATA[ip filter format help port scan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95754#p95754"><![CDATA[
if it would be so kind, thank you very much<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11449">tablarock</a> — Fri Jan 21, 2011 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2011-01-21T11:18:35-04:00</updated>

		<published>2011-01-21T11:18:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95753#p95753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95753#p95753"/>
		<title type="html"><![CDATA[ip filter format help port scan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95753#p95753"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> will try and look at it later tonite<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Fri Jan 21, 2011 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tablarock]]></name></author>
		<updated>2011-01-20T21:30:41-04:00</updated>

		<published>2011-01-20T21:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95746#p95746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95746#p95746"/>
		<title type="html"><![CDATA[ip filter format help port scan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95746#p95746"><![CDATA[
thanks friend, I had not quite worked.<br>ip scan would also color<br>Invalid IP Address:<strong class="text-strong"> <span style="color:red">123.123.123.123</span></strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11449">tablarock</a> — Thu Jan 20, 2011 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2011-01-20T19:04:50-04:00</updated>

		<published>2011-01-20T19:04:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95745#p95745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95745#p95745"/>
		<title type="html"><![CDATA[ip filter format help port scan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95745#p95745"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub:portscan {nick uhost hand chan text} { set address [lindex [split $text] 0] putquick "PRIVMSG $chan :Connecting to \037$address\037 requested by \002$nick\002" portscan "$address" "$chan"} </code></pre></div> change to <div class="codebox"><p>Code: </p><pre><code>proc pub:portscan {nick uhost hand chan text} { set address [lindex [split $text] 0] set ip [stripcodes bcruag $address] if {![regexp {^(?:(?:[2][5][0-5]|[1]?[1-9]{1,2}|0)(?:\.|$)){4}} $ip]} {  puthelp "PRIVMSG $chan :Invalid IP Address: $ip"  return 0 } putquick "PRIVMSG $chan :Connecting to \037$address\037 requested by \002$nick\002" portscan "$address" "$chan"}</code></pre></div> source: <a href="http://wiki.tcl.tk/989" class="postlink">regexp</a> <a href="http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html" class="postlink">stripcodes</a>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"> not tested, good luck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Jan 20, 2011 7:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tablarock]]></name></author>
		<updated>2011-01-20T14:49:50-04:00</updated>

		<published>2011-01-20T14:49:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95738#p95738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95738#p95738"/>
		<title type="html"><![CDATA[ip filter format help port scan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95738#p95738"><![CDATA[
I have a problem with this script tcl<br>Could someone tell me if possible, the bot detects whether text or number<br>example:<br><br>&lt;user&gt; !scan asdasdasdas<br>&lt;bot&gt; this is not an ip<br><br>also I have this problem with colors and antiflood<br>&lt;user&gt; !scan <strong class="text-strong"><span style="color:red">123.123.123.123</span></strong><br>&lt;bot&gt; Connecting to <strong class="text-strong"><span style="color:red">123.123.123.123</span></strong> requested by user<br>&lt;bot&gt; Connection to <strong class="text-strong"><span style="color:red">123.123.123.123</span></strong> has timed out<br><br>bot could scan the color?<br>&lt;user&gt; !scan <strong class="text-strong"><span style="color:red">123.123.123.123</span></strong><br>&lt;bot&gt; Connecting to 123.123.123.123<br>&lt;bot&gt; Connection to \ 123.123.123.123:2300 accepted. (Port is Open) <br>&lt;bot&gt; Connection to \ 123.123.123.123:47624 accepted. (Port is Open) <br><br>You can do something about the flood<br>&lt;user&gt; !scan <strong class="text-strong"><span style="color:red">123.123.123.123</span></strong><br>&lt;user&gt; !scan <strong class="text-strong"><span style="color:red">123.123.123.123</span></strong><br>&lt;user&gt; !scan <strong class="text-strong"><span style="color:red">123.123.123.123</span></strong><br>&lt;bot&gt; Ignore for 1 min<br><br>Would be very grateful if someone assists me<br><br>here the code done by:TCL_no_TK<div class="codebox"><p>Code: </p><pre><code>set scanports "2300 47624"bind pub -|- !portscan pub:portscanproc pub:portscan {nick uhost hand chan text} { set address [lindex [split $text] 0] putquick "PRIVMSG $chan :Connecting to \037$address\037 requested by \002$nick\002" portscan "$address" "$chan"}proc portscan {address chan} { global scanports  foreach f $scanports {   if {[catch {set sock [socket -async $address $f]} error]} {    puthelp "PRIVMSG $chan :Connection to \037$address\002:\002$f\037 was \002refused\002"   } else {    set id [utimer 15 [list portscan_timeout $chan $sock $address $f]]    fileevent $sock writable [list portscan_connected $chan $sock $address $f $id]   }  }}proc portscan_timeout {chan sock address port} { close $sock  puthelp "PRIVMSG $chan :Connection to \037$address\002:\002$port\037 has \002timed out\002."}proc portscan_connected {chan sock address port id} { killutimer $id set eor [fconfigure $sock -error] if {$eor != ""} {  close $sock  puthelp "PRIVMSG $chan :Connection to \037$address\002:\002$port\037 \002failed\002."  foreach e [split $eor "\n"] {   puts " * $e"  } } else {  puthelp "PRIVMSG $chan :Connection to \037$address\002:\002$port\037 \002accepted\002. (Port is \002Open\002)"  close $sock }} putlog "by:TCL_no_TK"</code></pre></div><span style="color:brown"></span><strong class="text-strong"><span style="color:red"></span></strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11449">tablarock</a> — Thu Jan 20, 2011 2:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
