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

	<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>2022-05-18T21:30:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-18T21:30:04-04:00</updated>

		<published>2022-05-18T21:30:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111119#p111119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111119#p111119"/>
		<title type="html"><![CDATA[PortChek !portCheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111119#p111119"><![CDATA[
if im not mistaken  i believe HOPM checks ports as well perhaps thats a better option as it can handle a lot of connecting clients thats what is was designed for<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed May 18, 2022 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Spartan]]></name></author>
		<updated>2022-05-18T03:15:54-04:00</updated>

		<published>2022-05-18T03:15:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111115#p111115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111115#p111115"/>
		<title type="html"><![CDATA[Hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111115#p111115"><![CDATA[
this script is possible to be on connect to match nick ip and port from list port.txt and to send report on channel and is find 1 Ip matched with 1 port of list port.txt to stop and watch next Ip on connect when script si off to send report in channel<br><br><br>eanble/disable<br>!port on/off  <br><br>exempt full ip or range ip <br>!lisport / !addport/!delport 79.103.*  | 79.103.23.104<br><br>chanreport<br>Open-Port : Tommy with IP: 34.34.34.34 matched as open port: 35467 (http/https/sock4/sock5)<br><br> <br>action-ban <br>and to gzline ip reason Your Ip seems to be Proxy<br><br>the original code here:<div class="codebox"><p>Code: </p><pre><code>######################################## DCC .portchk &lt;host/ip&gt; &lt;port&gt;    #### PUB !port &lt;host/ip&gt; &lt;port&gt;       ####.chanset &lt;channel&gt; +portchk       ########################################set portchk_setting(flag) ""set portchk_setting(cmd_pub) "!port"set portchk_setting(cmd_dcc) "portchk"set portchk_setting(read) 1set portchk_setting(onjoin) 1set portchk_setting(ports) "21 22 23 25 53 80 81 110 113 135 137 138 139 143 443 445 1080 3128 3306 5900 6660 6661 6662 6663 6665 6666 6667 6668 6669 7000 8080 10000 31337 64501 65500 65501"set portchk_setting(autoban_svr) 0set portchk_setting(autoban_list) 0set portchk_setting(global) 0set portchk_setting(bantime) 5set portchk_setting(onotice) 1set portchk_setting(bold) 1set portchk_setting(portchk:) 1#############################################################################   PLEASE DO NOT EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING   ############################### Script Begin #################################if {![string match 1.8.* $version]} {#putlog "\002portchk:\002 \002CRITICAL ERROR\002 portchk.tcl requires eggdrop 1.6.x to run."#die "\002portchk:\002 \002CRITICAL ERROR\002 portchk.tcl requires eggdrop 1.6.x to run."#}bind pub $portchk_setting(flag) $portchk_setting(cmd_pub) portchk_scan_pubbind dcc $portchk_setting(flag) $portchk_setting(cmd_dcc) portchk_scan_dccbind join - * portchk_onjoin_scansetudef flag portchkproc portchk_dopre {} {global portchk_settingif {!$portchk_setting(portchk:)} {return ""} elseif {!$portchk_setting(bold)} {return "portchk: "} else {return "\002portchk:\002 "}}proc portchk_onjoin_scan {nick uhost hand chan} {global portchk_settingif {($portchk_setting(onjoin)) &amp;&amp; ($portchk_setting(ports) != "")} {foreach i [channel info $chan] {if {([string match "+portchk" $i]) &amp;&amp; ([botisop $chan])} {set host [lindex [split $uhost @] 1]foreach p $portchk_setting(ports) {if {![catch {set sock [socket -async $host $p]} error]} {set timerid [utimer 15 [list portchk_timeout_join $sock]]fileevent $sock writable [list portchk_connected_join $nick $chan $sock $host $p $timerid]}}break}}}}proc portchk_scan_pub {nick uhost hand chan text} {global portchk_settingset host [lindex [split $text] 0]set port [lindex [split $text] 1]if {$port == ""} {putquick "NOTICE $nick :Usage: $portchk_setting(cmd_pub) &lt;host&gt; &lt;port&gt;"} else {if {[catch {set sock [socket -async $host $port]} error]} {putquick "PRIVMSG $chan :15\[portchk4!15\] Connection to $host \($port\) was refused."} else {set timerid [utimer 15 [list portchk_timeout_pub $chan $sock $host $port]]fileevent $sock writable [list portchk_connected_pub $chan $sock $host $port $timerid]}}}proc portchk_scan_dcc {hand idx text} {global portchk_settingset host [lindex [split $text] 0]set port [lindex [split $text] 1]if {$port == ""} {putdcc $idx "[portchk_dopre]Usage: .$portchk_setting(cmd_dcc) &lt;host&gt; &lt;port&gt;"} else {if {[catch {set sock [socket -async $host $port]} error]} {putdcc $idx "[portchk_dopre]Connection to $host \($port\) was refused."} else {set timerid [utimer 15 [list portchk_timeout $idx $sock $host $port]]fileevent $sock writable [list portchk_connected $idx $sock $host $port $timerid]}}}proc portchk_connected {idx sock host port timerid} {killutimer $timeridset error [fconfigure $sock -error]if {$error != ""} {close $sockputdcc $idx "[portchk_dopre]Connection to $host \($port\) failed. \([string totitle $error]\)"} else {fileevent $sock writable {}fileevent $sock readable [list portchk_read $idx $sock $host $port]putdcc $idx "[portchk_dopre]Connection to $host \($port\) accepted."}}proc portchk_timeout {idx sock host port} {close $sockputdcc $idx "[portchk_dopre]Connection to $host \($port\) timed out."}proc portchk_read {idx sock host port} {global portchk_settingif {$portchk_setting(read)} {if {[gets $sock read] == -1} {putdcc $idx "[portchk_dopre]EOF On Connection To $host \($port\). Socket Closed."close $sock} else {putdcc $idx "[portchk_dopre]$host \($port\) &gt; $read"}} else {close $sock}}proc portchk_connected_pub {chan sock host port timerid} {killutimer $timeridset error [fconfigure $sock -error]if {$error != ""} {close $sockputquick "PRIVMSG $chan :15\[portchk4!15\] Connection to $host \($port\) failed. \([string totitle $error]\)"} else {fileevent $sock writable {}fileevent $sock readable [list portchk_read_pub $chan $sock $host $port]putquick "PRIVMSG $chan :15\[portchk4!15\] Connection to $host \($port\) accepted."}}proc portchk_timeout_pub {chan sock host port} {close $sockputquick "PRIVMSG $chan :15\[portchk4!15\] Connection to $host \($port\) timed out."}proc portchk_connected_join {nick chan sock host port timerid} {global portchk_setting botnickkillutimer $timeridset error [fconfigure $sock -error]if {$error != ""} {close $sock} else {fileevent $sock writable {}fileevent $sock readable [list portchk_read_join $sock]if {$portchk_setting(onotice)} {foreach i [chanlist $chan] {if {([isop $i $chan]) &amp;&amp; ($i != $botnick)} {putserv "NOTICE $i :Port $port was found open on $nick's host. \($host\)"}}}if {$portchk_setting(autoban_svr)} {putserv "MODE $chan +b *!*@$host"putserv "KICK $chan $nick :One of the ports open on your host is banned."timer $portchk_setting(bantime) [list portchk_unsvrban $chan $host]} elseif {$portchk_setting(autoban_list)} {if {$portchk_setting(global)} {newban *!*@$host portchk "One of the ports open on your machine is banned." $portchk_setting(bantime)} else {newchanban $chan *!*@$host portchk "One of the ports open on your machine is banned." $portchk_setting(bantime)}}}}proc portchk_timeout_join {sock} {close $sock}proc portchk_read_join {sock} {close $sock}proc portchk_read_pub {sock} {global portchk_settingif {!$portchk_setting(read)} {close $sock} elseif {[gets $sock read] == -1} {putquick "PRIVMSG $chan :EOF On Connection To $host \($port\). Socket Closed."close $sock}}proc portchk_unsvrban {chan host} {putserv "MODE $chan -b *!*@$host"}putlog "Portchk Addon TCL Modifed By MoBi ? Succesfully Loaded..."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12970">Spartan</a> — Wed May 18, 2022 3:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-07-23T00:50:01-04:00</updated>

		<published>2021-07-23T00:50:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110141#p110141</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110141#p110141"/>
		<title type="html"><![CDATA[PortChek !portCheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110141#p110141"><![CDATA[
Have you tried turning on the on-join function of that script?<div class="codebox"><p>Code: </p><pre><code>set portcheck_setting(onjoin) 1</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jul 23, 2021 12:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RoKiTo]]></name></author>
		<updated>2021-07-23T00:02:20-04:00</updated>

		<published>2021-07-23T00:02:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110140#p110140</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110140#p110140"/>
		<title type="html"><![CDATA[PortChek !portCheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110140#p110140"><![CDATA[
It's like this ... but of course it doesn't have the rest. but it does it in join and it is automatic .. but not manual. what good to contribute in this case, I can not ask for miracles. thanks for your help.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br><br><br><br><br><br><div class="codebox"><p>Code: </p><pre><code>set portcheck_setting(flag) "-|-"set portcheck_setting(cmd_pub) ".port"set portcheck_setting(cmd_dcc) "portcheck"set portcheck_setting(read) 1set portcheck_setting(onjoin) 0set portcheck_setting(ports) "1080 21 23"set portcheck_setting(exemptflag) "+E"set portcheck_setting(autoban_svr) 0set portcheck_setting(autoban_list) 0set portcheck_setting(global) 0set portcheck_setting(bantime) 5set portcheck_setting(onotice) 1set portcheck_setting(bold) 1set portcheck_setting(PORTCHECK:) 1bind pub $portcheck_setting(flag) $portcheck_setting(cmd_pub) portcheck_scan_pubbind dcc $portcheck_setting(flag) $portcheck_setting(cmd_dcc) portcheck_scan_dccbind join - * portcheck_onjoin_scansetudef flag portcheck proc portcheck_dopre {} {    global portcheck_setting    if {!$portcheck_setting(PORTCHECK:)} {        return ""    } elseif {!$portcheck_setting(bold)} {        return "PORTCHECK: "    } else {        return "\002PORTCHECK:\002 "    }}proc portcheck_onjoin_scan {nick uhost hand chan} {    global portcheck_setting portcheck_chans    if {($portcheck_setting(onjoin)) &amp;&amp; ($portcheck_setting(ports) != "") &amp;&amp; (![matchattr $hand $portcheck_setting(exemptflag)])} {        foreach i [channel info $chan] {            if {([string match "+portcheck" $i]) &amp;&amp; ([botisop $chan])} {                set host [lindex [split $uhost @] 1]                foreach p $portcheck_setting(ports) {                    if {![catch {set sock [socket -async $host $p]} error]} {                        set timerid [utimer 15 [list portcheck_timeout_join $sock]]                        fileevent $sock writable [list portcheck_connected_join $nick $chan $sock $host $p $timerid]                    }                }                break            }        }    }}proc portcheck_scan_pub {nick uhost hand chan text} {    global portcheck_setting    set host [lindex $text 0]    set port [lindex $text 1]    if {$port == ""} {#       putquick "NOTICE $nick :Usage: $portcheck_setting(cmd_pub) &lt;host&gt; &lt;port&gt;"        putquick "PRIVMSG $chan :Usage: $portcheck_setting(cmd_pub) &lt;host&gt; &lt;port&gt;"    } else {        if {[catch {set sock [socket -async $host $port]} error]} {            putquick "PRIVMSG $chan :\002(\002Port\002)\002: Connection to $host:$port was motherfucking refused "        } else {            set timerid [utimer 15 [list portcheck_timeout_pub $chan $sock $host $port]]            fileevent $sock writable [list portcheck_connected_pub $chan $sock $host $port $timerid]        }    }}proc portcheck_scan_dcc {hand idx text} {    global portcheck_setting    set host [lindex $text 0]    set port [lindex $text 1]    if {$port == ""} {        putdcc $idx "[portcheck_dopre]Usage: .$portcheck_setting(cmd_dcc) &lt;host&gt; &lt;port&gt;"    } else {        if {[catch {set sock [socket -async $host $port]} error]} {            putdcc $idx "[portcheck_dopre]Connection to $host \($port\) was refused "        } else {            set timerid [utimer 15 [list portcheck_timeout $idx $sock $host $port]]            fileevent $sock writable [list portcheck_connected $idx $sock $host $port $timerid]        }    }}proc portcheck_connected {idx sock host port timerid} {    killutimer $timerid    if {[set error [fconfigure $sock -error]] != ""} {        close $sock        putdcc $idx "[portcheck_dopre]Connection to $host \($port\) failed \([string totitle $error]\)"    } else {        fileevent $sock writable {}        fileevent $sock readable [list portcheck_read $idx $sock $host $port]        putdcc $idx "[portcheck_dopre]Connection to $host \($port\) accepted "    }}proc portcheck_timeout {idx sock host port} {    close $sock    putdcc $idx "[portcheck_dopre]Connection to $host \($port\) timed out "}proc portcheck_read {idx sock host port} {    global portcheck_setting    if {$portcheck_setting(read)} {        if {[gets $sock read] == -1} {            putdcc $idx "[portcheck_dopre]EOF On Connection To $host \($port\). Socket Closed."            close $sock        } else {            putdcc $idx "[portcheck_dopre]$host \($port\) &gt; $read"        }    } else {        close $sock    }}proc portcheck_connected_pub {chan sock host port timerid} {    killutimer $timerid    if {[set error [fconfigure $sock -error]] != ""} {        close $sock        putquick "PRIVMSG $chan :\002(\002Port\002)\002: Connection to $host:$port motherfucking failed. \([string totitle $error]\)"    } else {        fileevent $sock writable {}        fileevent $sock readable [list portcheck_read_pub $chan $sock $host $port]        putquick "PRIVMSG $chan :\002(\002Port\002)\002: Connection to $host:$port accepted. :D "    }}proc portcheck_timeout_pub {chan sock host port} {    close $sock    putquick "PRIVMSG $chan :\002(\002Port\002)\002: Connection to $host:$port timed out. :-( "}proc portcheck_connected_join {nick chan sock host port timerid} {    global portcheck_setting botnick    killutimer $timerid    if {[set error [fconfigure $sock -error]] != ""} {        close $sock    } else {        fileevent $sock writable {}        fileevent $sock readable [list portcheck_read_join $sock]        if {$portcheck_setting(onotice)} {            foreach i [chanlist $chan] {                if {([isop $i $chan]) &amp;&amp; ($i != $botnick)} {                    putserv "NOTICE $i :Port $port was found open on $nick's host. \($host\)"                }            }        }        if {$portcheck_setting(autoban_svr)} {            putserv "MODE $chan +b *!*@$host"            putserv "KICK $chan $nick :One of the ports open on your host is banned."            timer $portcheck_setting(bantime) [list portcheck_unsvrban $chan $host]        } elseif {$portcheck_setting(autoban_list)} {            if {$portcheck_setting(global)} {                newban *!*@$host PortCheck "One of the ports open on your machine is banned." $portcheck_setting(bantime)            } else {                newchanban $chan *!*@$host PortCheck "One of the ports open on your machine is banned." $portcheck_setting(bantime)            }        }    }}proc portcheck_timeout_join {sock} {    close $sock}proc portcheck_read_join {sock} {    close $sock}proc portcheck_read_pub {sock} {    global portcheck_setting    if {!$portcheck_setting(read)} {        close $sock    } elseif {[gets $sock read] == -1} {        putquick "PRIVMSG $chan :\002(\002Port\002)\002: EOF On Connection To $host:$port. Socket Closed."        close $sock    }}proc portcheck_unsvrban {chan host} {    putserv "MODE $chan -b *!*@$host"}putlog "port.tcl loaded."  </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12930">RoKiTo</a> — Fri Jul 23, 2021 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-07-22T18:07:15-04:00</updated>

		<published>2021-07-22T18:07:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110139#p110139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110139#p110139"/>
		<title type="html"><![CDATA[PortChek !portCheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110139#p110139"><![CDATA[
Without source code, we cannot help you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Jul 22, 2021 6:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[RoKiTo]]></name></author>
		<updated>2021-07-22T15:22:16-04:00</updated>

		<published>2021-07-22T15:22:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110138#p110138</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110138#p110138"/>
		<title type="html"><![CDATA[PortChek !portCheck]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110138#p110138"><![CDATA[
<strong class="text-strong">Sorry for the translation, but I can't find this type of tcl anywhere, except for one that is manual, but the join does that job of looking for it, as I'm not an expert in this, I hope TCL gods help me</strong><div class="codebox"><p>Code: </p><pre><code>9:03:58&lt;Slup23&gt;!portcheck 200.33.188.159:03:58&lt;remote&gt;wait...9:04:01&lt;remote&gt;Found [IP: 200.33.188.15 /Ports Open: 21(ftp) - 80(http)]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12930">RoKiTo</a> — Thu Jul 22, 2021 3:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
