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

	<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>2024-04-20T14:39:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-04-20T14:39:05-04:00</updated>

		<published>2024-04-20T14:39:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112750#p112750</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112750#p112750"/>
		<title type="html"><![CDATA[Re: Double whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112750#p112750"><![CDATA[
I usually use whois nick nick as well wich gets more info from lot of ircds, glad you found a working solution.<br><br>Btw as network administrator you don't see connections from remote servers? That's odd you would expect a network administrator to see such information using proper snomasks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Apr 20, 2024 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2024-04-20T10:35:30-04:00</updated>

		<published>2024-04-20T10:35:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112749#p112749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112749#p112749"/>
		<title type="html"><![CDATA[Re: Double whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112749#p112749"><![CDATA[
putserv "whois $target_nick $target_nick" did the trick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br>Thanks CrazyCat. <br>Simo +cC its not sutable because not all connection comes from my ircd. I am linked to other hub. Anyway with double target_nick everything is good 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=8470">FmX</a> — Sat Apr 20, 2024 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-18T02:19:22-04:00</updated>

		<published>2024-04-18T02:19:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112748#p112748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112748#p112748"/>
		<title type="html"><![CDATA[Re: Double whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112748#p112748"><![CDATA[
<blockquote class="uncited"><div>Proc is this:<div class="codebox"><p>Code: </p><pre><code>proc getip {nick uhost handle chan text} {    bind raw - 338 ip_from_whois    putserv "whois [lindex [split $text] 0 ]"    utimer 10 [list unbind raw - 338 ip_from_whois ]}</code></pre></div></div></blockquote>Well, I'll do that:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">proc getip {nick uhost handle chan text} {    set target [lindex [split $text] 0 ]    incr ::whois($target)    bind raw - 338 ip_from_whois    putserv "whois $target"    utimer 10 [list unbind raw - 338 ip_from_whois ]}proc ip_from_whois {from kw text} {   # manage your $text as you want to extract $target    incr ::whois($target)   if {[string match "*spoofed*" $text] &amp;&amp; $::whois($target)&lt;3} {      getip $::botnick [getchanhost $::botnick] $::botnick #here $target   }}</code></pre></div> <strong>script</strong> Note: this is an example, calling a pub proc from an internal one is a bad idea, splitting getip in two parts (pub part and active proc) might be better, depends on how your script works<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Apr 18, 2024 2:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-04-18T05:48:00-04:00</updated>

		<published>2024-04-17T18:08:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112738#p112738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112738#p112738"/>
		<title type="html"><![CDATA[Re: Double whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112738#p112738"><![CDATA[
If u get real ip from the server notice on connect it saves lot of whois I haven't used ratbox myselve used other ircds tho wich allow to retrieve real ip from server notice on connect of nick.<br>After research i found on ratbox ircd ircops use snomask +c or +C to see connections perhaps you could paste the notice you get from connecting nicks so we can extract nick and real ip from it to output in channel of choice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Apr 17, 2024 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2024-04-17T12:22:23-04:00</updated>

		<published>2024-04-17T12:22:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112736#p112736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112736#p112736"/>
		<title type="html"><![CDATA[Re: Double whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112736#p112736"><![CDATA[
Proc is this:<div class="codebox"><p>Code: </p><pre><code>proc getip {nick uhost handle chan text} {    bind raw - 338 ip_from_whois    putserv "whois [lindex [split $text] 0 ]"    utimer 10 [list unbind raw - 338 ip_from_whois ]}</code></pre></div>Spoofed whois:<div class="codebox"><p>Code: </p><pre><code>:irc.xxx.xxx 338 Marty John :logged from (spoofed)</code></pre></div>Non-spoofed double whois:<div class="codebox"><p>Code: </p><pre><code>:irc.xxx.xxx 338 Marty John :logged on from (1.2.3.4)</code></pre></div>IRCD is ratbox. Only server administrators can see real IP, so BOT is Administrator now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8470">FmX</a> — Wed Apr 17, 2024 12:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-17T12:09:35-04:00</updated>

		<published>2024-04-17T12:09:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112735#p112735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112735#p112735"/>
		<title type="html"><![CDATA[Re: Double whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112735#p112735"><![CDATA[
Depend on the reply you get: if it contains the nick and an information that the ip is spoofed, you can relaunch a /whois.<br><br>The danger is that you may flood the server with /whois commands if you don't get the real IP. You should probably add a counter (who($nick)) and stop if you did more than 2 /whois on $nick.<br><br>Can you give the raw responses to the /whois (spoofed one and real one) ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Apr 17, 2024 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FmX]]></name></author>
		<updated>2024-04-17T11:48:45-04:00</updated>

		<published>2024-04-17T11:48:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112734#p112734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112734#p112734"/>
		<title type="html"><![CDATA[Double whois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112734#p112734"><![CDATA[
Hello, guys i am using tcl script who make whois to someone and extract IP to channel. If i make whois to someone who is connected from my server there is no problem, but if want to somebody else from different server there is (spoofed) response instead of real IP. If i make double whois with my mirc client i can see real ip, but if i only use /whois NICK i also receive (spoofed). <br>My question is how to make tcl to use double whois to see the IP instead of spoofed. <br>Here is example with ordinary whois:<br>[18:43:05] John logged from (spoofed)<br>and double whois:<br>John logged from (1.2.3.4)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8470">FmX</a> — Wed Apr 17, 2024 11:48 am</p><hr />
]]></content>
	</entry>
	</feed>
