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

	<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>2010-12-22T18:48:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demetrius_reis]]></name></author>
		<updated>2010-12-22T18:48:19-04:00</updated>

		<published>2010-12-22T18:48:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95449#p95449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95449#p95449"/>
		<title type="html"><![CDATA[please someone help me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95449#p95449"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>###################################################################### Descrição ## Esta tcl foi retirada do Site egghelp.            ################# Assim ela tinha uma variável "Flag +E", então só  ################# poderia ser usado publica usuários com a flag +E. ################# Removi esta flag, e agora ela funciona Geral.     ###################################################################### ############################################################ DCC ## .portcheck &lt;host/ip&gt; &lt;port&gt; (Can be changed)  #### DCC ## !portcheck &lt;host/ip&gt; &lt;port&gt; (Can be changed)  ########### Checks weather or not the specified port is  ########### open on the specified host or ip.  ########### --------------------------------------------- ########### .chanset &lt;channel&gt; +portcheck  ########### Enables on-join port checking for a channel.  ############################################################## PUB ## !portcheck &lt;host/ip&gt; &lt;port&gt; (Can be changed)  ########### Checks weather or not the specified port is  ########### open on the specified host or ip.  ############################################################set portcheck_setting(flag) "-|-"set portcheck_setting(cmd_pub) "!portcheck"set portcheck_setting(cmd_dcc) "portcheck"set portcheck_setting(read) 1######################################################################### Enable on-join scanning? (If you don't wish to enable it, ignore any ## further settings) Scanning for a channel is enabled via .chanset     ## &lt;channel&gt; +portcheck.        #########################################################################set portcheck_setting(onjoin) 0########################################################################## Set the open ports to scan for when a user joins a monitored channel. ##########################################################################set portcheck_setting(ports) "2300 2400 28800 29000 47624 22 80" ###################################################################### Set the flag that makes a user exempt from on-join scanning here. ####################################################################### FLAG +E - REMOVIDA# set portcheck_setting(exemptflag) "+E"##################################################################### Place a server ban when on a user that joins a monitored channel ## if a banned port is found?    #####################################################################set portcheck_setting(autoban_svr) 0################################################################# Place a ban on the bot's banlist when on a user that joins a ## monitored channel if a banned port is found?       #################################################################set portcheck_setting(autoban_list) 0######################### Make the ban global? #########################set portcheck_setting(global) 0################################################################# Set the time to ban users for here. Set to 0 for a perm ban. #################################################################set portcheck_setting(bantime) 5############################################################# Send an op notice when a banned port is found on a user? #############################################################set portcheck_setting(onotice) 1#################################### Enable use of bold in DCC chat? ####################################set portcheck_setting(bold) 1############################################## Prefix "PORTCHECK:" in DCC chat messages? ##############################################set portcheck_setting(PORTCHECK:) 1##################### Code begins here #####################if {![string match 1.6.* $version]} {putlog "\002PORTCHECK:\002 \002ERRO CRÍTICO\002 PortCheck.tcl por REIS__"die "\002PORTCHECK:\002 \002ERRO CRÍTICO\002 PortCheck.tcl por REIS__"}bind 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 portcheckproc portcheck_dopre {} {global portcheck_settingif {!$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_chansif {($portcheck_setting(onjoin)) &amp;&amp; ($portcheck_setting(ports) != "")} {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_settingset host [lindex $text 0]set port [lindex $text 1]if {$port == ""} {putquick "PRIVMSG :Usage: $portcheck_setting(cmd_pub) &lt;seu-ip&gt; &lt;porta&gt;"} else {if {[catch {set sock [socket -async $host $port]} error]} {putquick "PRIVMSG $chan :O IP $host está com a porta \($port\) FECHADA! Ou o jogo não está criado"} 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_settingset host [lindex $text 0]set port [lindex $text 1]if {$port == ""} {putdcc $idx "[portcheck_dopre]Usage: .$portcheck_setting(cmd_dcc) &lt;seu-ip&gt; &lt;porta&gt;"} else {if {[catch {set sock [socket -async $host $port]} error]} {putdcc $idx "[portcheck_dopre]O IP $host está com a porta \($port\) FECHADA! Ou o jogo não está criado"} 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 $timeridif {[set error [fconfigure $sock -error]] != ""} {close $sockputdcc $idx "[portcheck_dopre]Conexão ao $host \($port\) Falhou. \([string totitle $error]\)"} else {fileevent $sock writable {}fileevent $sock readable [list portcheck_read $idx $sock $host $port]putdcc $idx "[portcheck_dopre]O IP $host está com a porta \($port\) ABERTA normalmente. Pronto para jogar!"}}proc portcheck_timeout {idx sock host port} {close $sockputdcc $idx "[portcheck_dopre]Conexão ao $host \($port\) Falhou."}proc portcheck_read {idx sock host port} {global portcheck_settingif {$portcheck_setting(read)} {if {[gets $sock read] == -1} {putdcc $idx "[portcheck_dopre]O IP $host está com a porta \($port\) FECHADA! Ou o jogo não está criado"close $sock} else {putdcc $idx "[portcheck_dopre]$host \($port\) &gt; $read"}} else {close $sock}}proc portcheck_connected_pub {chan sock host port timerid} {killutimer $timeridif {[set error [fconfigure $sock -error]] != ""} {close $sockputquick "PRIVMSG $chan :O IP $host está com a porta \($port\) FECHADA! Ou o jogo não está criado \([string totitle $error]\)"} else {fileevent $sock writable {}fileevent $sock readable [list portcheck_read_pub $chan $sock $host $port]putquick "PRIVMSG $chan :O IP $host está com a porta \($port\) ABERTA normalmente. Pronto para jogar!"}}proc portcheck_timeout_pub {chan sock host port} {close $sockputquick "PRIVMSG $chan :O IP $host está com a porta \($port\) FECHADA! Ou o jogo não está criado"}proc portcheck_connected_join {nick chan sock host port timerid} {global portcheck_setting botnickkillutimer $timeridif {[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 "PRIVMSG $i :A Porta $port foi encontrada aberta $nick's. \($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_settingif {!$portcheck_setting(read)} {close $sock} elseif {[gets $sock read] == -1} {putquick "PRIVMSG $chan :Conexão ao Falhada ao $host \($port\). Socket Closed."close $sock}}proc portcheck_unsvrban {chan host} {putserv "MODE $chan -b *!*@$host"}putlog "\002PORTCHECK:\002 PortCheck.tcl Version 2.0 by REIS__ carregada."</code></pre></div><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11312">demetrius_reis</a> — Wed Dec 22, 2010 6:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tablarock]]></name></author>
		<updated>2010-12-22T14:36:08-04:00</updated>

		<published>2010-12-22T14:36:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95447#p95447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95447#p95447"/>
		<title type="html"><![CDATA[please someone help me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95447#p95447"><![CDATA[
Thank you very much you always so attentive to this forum.<br>Is that tcl, but the syntax of the tcl is d like this:<br>!porcheck  IP &lt;PORT&gt; | that's the problem<br> I would be so nice if you modify this tcl for this syntax:<br>!PortCheck IP | and this will automatically check the ports: 2300 and 47624<br><br>This would be fine if not for the onjoin<blockquote class="uncited"><div>######################################################################### <br># Set the open ports to scan for when a user joins a monitored channel. # <br>######################################################################### <br><br>set portcheck_setting(ports) "1080 21 23"</div></blockquote><br>Please. I try to modify the tcl my means but my knowledge and little understanding of English is impossible[/quote]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11449">tablarock</a> — Wed Dec 22, 2010 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-12-22T04:13:31-04:00</updated>

		<published>2010-12-22T04:13:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95440#p95440</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95440#p95440"/>
		<title type="html"><![CDATA[please someone help me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95440#p95440"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"> Firstly, I would strongly recommend against messages people on the forum for a response on posts.<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_exclaim.gif" width="15" height="15" alt=":!:" title="Exclamation"> Secondly, I find these type of scripts to be easily miss-used and don't know of any of any shell provider yet that allows these things to be run on them.<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_idea.gif" width="15" height="15" alt=":idea:" title="Idea"> Lastly, the only help I can offer on this post. Is their is already a Port Scan.tcl script, for eggdrop1.6 You can find it here <a href="ftp://ftp.eggheads.org/pub/eggdrop/scripts/1.6/PortCheck2.2.tar.gz" class="postlink">PortCheck2.2.tar.gz (VIA: eggheads.org FTP)</a> The description file <a href="ftp://ftp.eggheads.org/pub/eggdrop/scripts/1.6/PortCheck.info.dawg" class="postlink">source (VIA: eggheads.org FTP)</a> says: <blockquote class="uncited"><div>Information:<br>This script checks the status of a port on a host. Returns either Accepted, Refused, Failed,<br>or Timeout. It also portscans users on join and can ban the user and/or send an op notice if<br>a banned port is open.</div></blockquote> You can set it to scan the above ports like so <div class="codebox"><p>Code: </p><pre><code>########################################################################## Set the open ports to scan for when a user joins a monitored channel. ##########################################################################set portcheck_setting(ports) "1080 21 23"</code></pre></div> <span style="color:blue">Read the Script for the full list of settings/options available</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Wed Dec 22, 2010 4:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tablarock]]></name></author>
		<updated>2010-12-20T22:52:55-04:00</updated>

		<published>2010-12-20T22:52:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95431#p95431</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95431#p95431"/>
		<title type="html"><![CDATA[please someone help me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95431#p95431"><![CDATA[
The user wants my channel<br>to see if the port 2300 and 47624 are open or closed<br><br>in this way:<blockquote class="uncited"><div>&lt;user1&gt; !scan 1.20.3.4<br>&lt;bot&gt; scanning ip 1.20.3.4 the &lt;user1&gt;<br>&lt;bot&gt; you port: 2300 is open<br>&lt;bot&gt; you port: 47624 is closed<br>&lt;user2&gt; !scan 3.24.64.4<br>&lt;bot&gt; scanning ip 3.24.64.4 the &lt;user2&gt;<br>&lt;bot&gt; you port: 2300 is closed<br>&lt;bot&gt; you port: 47624 is closed</div></blockquote>I know of the existence of checkport. tcl<br>I am desperate to get this tcl, sorry my bad inglish<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11449">tablarock</a> — Mon Dec 20, 2010 10:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
