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

	<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>2013-09-09T09:34:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2013-09-09T09:34:37-04:00</updated>

		<published>2013-09-09T09:34:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102031#p102031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102031#p102031"/>
		<title type="html"><![CDATA[whoisinfo.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102031#p102031"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>telnet&gt; open whois.arin.net 43Trying 199.71.0.48...Connected to whois.arin.net.Escape character is '^]'.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Mon Sep 09, 2013 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2013-09-09T09:31:57-04:00</updated>

		<published>2013-09-09T09:31:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102030#p102030</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102030#p102030"/>
		<title type="html"><![CDATA[whoisinfo.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102030#p102030"><![CDATA[
It seems you cannot join the arin server.<br><br>Did you try to telnet it (on port 43) from you shell ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 09, 2013 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2013-09-09T09:15:19-04:00</updated>

		<published>2013-09-09T09:15:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102029#p102029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102029#p102029"/>
		<title type="html"><![CDATA[whoisinfo.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102029#p102029"><![CDATA[
I just tried the IP you tried<br><blockquote class="uncited"><div>[16:13:27] &lt;@spithash&gt; !ipwhois 93.24.58.127<br>[16:13:42] &lt;@nagger&gt; [<strong class="text-strong">Whois</strong>] Error?</div></blockquote>here's the party line<br><div class="codebox"><p>Code: </p><pre><code>[16:13] Whois: whois.arin.net:43 -&gt; 93.24.58.127</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Mon Sep 09, 2013 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2013-09-09T09:11:13-04:00</updated>

		<published>2013-09-09T09:11:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102028#p102028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102028#p102028"/>
		<title type="html"><![CDATA[whoisinfo.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102028#p102028"><![CDATA[
And what in party-line ?<br>And what's the IP you tried ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 09, 2013 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2013-09-09T08:58:04-04:00</updated>

		<published>2013-09-09T08:58:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102027#p102027</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102027#p102027"/>
		<title type="html"><![CDATA[whoisinfo.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102027#p102027"><![CDATA[
the error I get is just <br><div class="codebox"><p>Code: </p><pre><code>&lt;@nagger&gt; Error</code></pre></div><blockquote class="uncited"><div> My name is nagger and I am running eggdrop v1.8.0+preinit, on Linux 3.11.0.</div></blockquote>But I've tried it on v1.6.21 too with the same error...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Mon Sep 09, 2013 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2013-09-09T08:53:40-04:00</updated>

		<published>2013-09-09T08:53:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102026#p102026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102026#p102026"/>
		<title type="html"><![CDATA[whoisinfo.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102026#p102026"><![CDATA[
I'd just copy/paste your source in a file, loaded it and tryed:<blockquote class="uncited"><div>14:51:30 &lt;@CrazyCat&gt; !ip 93.24.58.127<br>14:51:31 &lt;@Artus&gt; [IP Whois] Range: 93.24.0.0 - 93.27.255.255, Netname: N9UF-DYN-DSL, Organisation: Dynamic pools, Country: FR</div></blockquote>Artus is eggdrop 1.6.21<br><br>What's the error you get ? On wich eggdrop version ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Sep 09, 2013 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2013-09-08T13:12:00-04:00</updated>

		<published>2013-09-08T13:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102023#p102023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102023#p102023"/>
		<title type="html"><![CDATA[whoisinfo.tcl help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102023#p102023"><![CDATA[
I am having an "<strong class="text-strong">Error</strong>" in both of my bots (running from the same machine when I try to trigger this script, could someone help around? or if anyone has a similar script, that would be very very useful to me...<br><div class="codebox"><p>Code: </p><pre><code>############################### whoisinfo.tcl v0.1############################################################# SETTINGS############################### versionset whoisinfo(version) "0.1"# triggerset whoisinfo(trigger) "!ip"# whois portset whoisinfo(port) 43# ripe serverset whoisinfo(ripe) "whois.ripe.net"# arin serverset whoisinfo(arin) "whois.arin.net"# apnic serverset whoisinfo(apnic) "whois.apnic.net"# lacnic serverset whoisinfo(lacnic) "whois.lacnic.net"# afrinic serverset whoisinfo(afrinic) "whois.afrinic.net"############################### BINDS##############################bind pub - $whoisinfo(trigger) pub_whoisinfo############################### CODE##############################proc whoisinfo_setarray {} {global queryset query(netname) "(none)"set query(country) "(none)"set query(orgname) "(none)"set query(orgid) "(none)"set query(range) "(none)"}proc whoisinfo_display { chan } {global queryputlog "Firstline: $query(firstline)"puthelp "PRIVMSG $chan :\[\002IP Whois\002\] Range: $query(range), Netname: $query(netname), Organisation: $query(orgname), Country: $query(country)"}proc pub_whoisinfo {nick uhost handle chan search} {global whoisinfoglobal querywhoisinfo_setarray if {[whoisinfo_whois $whoisinfo(arin) $search]==1} {if {[string compare [string toupper $query(orgid)] "RIPE"]==0} {if {[whoisinfo_whois $whoisinfo(ripe) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "APNIC"]==0} {if {[whoisinfo_whois $whoisinfo(apnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "LACNIC"]==0} {if {[whoisinfo_whois $whoisinfo(lacnic) $search]==1} {whoisinfo_display $chan} } elseif {[string compare [string toupper $query(orgid)] "AFRINIC"]==0} {if {[whoisinfo_whois $whoisinfo(afrinic) $search]==1} {whoisinfo_display $chan} } else {whoisinfo_display $chan}} else {if { [info exist query(firstline)] } {puthelp "PRIVMSG $chan :\[\002Whois\002\] Firstline: $query(firstline)"} else {puthelp "PRIVMSG $chan :\[\002Whois\002\] Error?"}}}proc whoisinfo_whois {server search} {global whoisinfoglobal queryset desccount 0set firstline 0set reply 0putlog "Whois: $server:$whoisinfo(port) -&gt; $search"if {[catch {set sock [socket -async $server $whoisinfo(port)]} sockerr]} {      puthelp "PRIVMSG $chan :\[\002Whois\002\] Error: $sockerr. Try again later."      close $sockreturn 0    }puts $sock $searchflush $sockwhile {[gets $sock whoisline]&gt;=0} {putlog "Whois: $whoisline"if {[string index $whoisline 0]!="#" &amp;&amp; [string index $whoisline 0]!="%" &amp;&amp; $firstline==0} {if {[string trim $whoisline]!=""} {set query(firstline) [string trim $whoisline]set firstline 1}}if {[regexp -nocase {netname:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner-c:(.*)} $whoisline all item]} {set query(netname) [string trim $item]set reply 1 } elseif {[regexp -nocase {country:(.*)} $whoisline all item]} {set query(country) [string trim $item]set reply 1} elseif {[regexp -nocase {descr:(.*)} $whoisline all item] &amp;&amp; $desccount==0} {set query(orgname) [string trim $item]set desccount 1set reply 1} elseif {[regexp -nocase {orgname:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {owner:(.*)} $whoisline all item]} {set query(orgname) [string trim $item]set reply 1} elseif {[regexp -nocase {orgid:(.*)} $whoisline all item]} {set query(orgid) [string trim $item]set reply 1} elseif {[regexp -nocase {inetnum:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1} elseif {[regexp -nocase {netrange:(.*)} $whoisline all item]} {set query(range) [string trim $item]set reply 1}}close $sockreturn $reply}putlog "whoisinfo.tcl v$whoisinfo(version) by JeFFOsZ: loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Sun Sep 08, 2013 1:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
